diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..8d7c53fbfd77c5b2580802b83f08e281840f89c6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +static/505error.gif filter=lfs diff=lfs merge=lfs -text diff --git a/app.py b/app.py new file mode 100644 index 0000000000000000000000000000000000000000..2f41fb65ab041669fa22f76d1901470be2cbc8a0 --- /dev/null +++ b/app.py @@ -0,0 +1,1137 @@ +from flask import Flask, render_template, request, redirect, url_for, session +from nltk.sentiment.vader import SentimentIntensityAnalyzer +from flask_mysqldb import MySQL +import nltk +import io +import bcrypt +import datetime +import json +from flask_mail import * +import random +import smtplib, ssl +from email.message import EmailMessage +import secrets +import string +import time + +nltk.download('vader_lexicon') + +class SmileCheckApp: + def __init__(self): + self.app = Flask(__name__) + self.app.static_folder = 'static' + self.app.static_url_path = '/static' + + self.app.secret_key = "smilecheck-abhi-2023" + + self.app.config['MYSQL_HOST'] = 'localhost' + self.app.config['MYSQL_USER'] = 'root' + self.app.config['MYSQL_PASSWORD'] = '' + self.app.config['MYSQL_CURSORCLASS'] = 'DictCursor' + self.app.config['MYSQL_PORT'] = 3306 + + mysql = MySQL(self.app) + + # @app.before_request + # def before_request(): + # if request.path != '/logout' and 'email' in session: + # session.permanent = True + # app.permanent_session_lifetime = datetime.timedelta(minutes=1) + # + # @app.teardown_request + # def teardown_request(exception=None): + # if not session.permanent and 'email' in session: return redirect(url_for('logout')) + + @self.app.route('/') + def index(): + return render_template("index.html") + + + @self.app.route('/home', methods=["GET", "POST"]) + def home(): + if request.method == 'GET': + if 'email' in session: + self.app.config['MYSQL_DB'] = session['database'] + curh = mysql.connection.cursor() + if session['usertype'] == 0: + curh.execute("SELECT `assessid`, `name` FROM assessments") + typedata = curh.fetchall() + + curh.execute("SELECT `id`, `type` FROM custom WHERE id=%s", (session['id'],)) + given = curh.fetchall() + isdone = [] + for give in given: + isdone.append(give['type']) + + typesgiven = [] + for type in typedata: + typesgiven.append(type['assessid']) + + curh.execute("SELECT `name`, `happy`, `datetime` FROM `custom`, `assessments` WHERE custom.type = assessments.assessId AND id=%s", (session['id'],)) + previous = curh.fetchall() + + return render_template("home.html", typedata=typedata, given=isdone, previous=previous) + + elif session['usertype'] == 1: + return redirect(url_for('admin')) + mysql.connection.commit() + curh.close() + else: + return redirect(url_for('login')) + + if request.method == 'POST': + if 'email' in session: + self.app.config['MYSQL_DB'] = session['database'] + + curh = mysql.connection.cursor() + + if 'fname' in request.form: + fname = request.form['fname'] + femail = request.form['femail'] + feedback = request.form['feedback'] + curh.execute("INSERT INTO `feedbacks`(`name`, `email`, `feedback`) VALUES (%s, %s, %s)", (fname, femail, feedback,)) + mysql.connection.commit() + curh.close() + session['feed'] = 1 + return redirect(url_for('home')) + + curh.execute("SELECT * FROM users WHERE email=%s", (session['email'],)) + user = curh.fetchone() + + session['type'] = request.form['type'] + + curh.execute("SELECT `id`, `type` FROM custom WHERE id=%s AND type=%s", (session['id'], session['type'],)) + given = curh.fetchone() + mysql.connection.commit() + curh.close() + + if given == None: + return redirect(url_for('form')) + else: + return redirect(url_for('result')) + + else: + return redirect(url_for('login')) + + return render_template("home.html") + + + @self.app.route('/register', methods=["GET", "POST"]) + def register(): + now = datetime.datetime.now() + if request.method == 'GET': + return render_template("register.html", error_code=999, message_code=999) + + if request.method == 'POST': + database = request.form['database'] + if database == 'database1': + self.app.config['MYSQL_DB'] = 'test' + session['database'] = self.app.config['MYSQL_DB'] + elif database == 'database2': + self.app.config['MYSQL_DB'] = 'test2' + session['database'] = self.app.config['MYSQL_DB'] + + name = request.form['name'] + email = request.form['email'] + cur = mysql.connection.cursor() + cur.execute("SELECT * FROM users WHERE email = %s", (email,)) + user = cur.fetchone() + mysql.connection.commit() + cur.close() + + if user: + error = 'Email address already in use. Please use a different email address.' + return render_template('register.html', error=error, error_code=550, message_code=569) + else: + session['name'] = name + session['email'] = email + usertype = 'student' + session['pretype'] = usertype + password = request.form['password'].encode('utf-8') + hash_password = bcrypt.hashpw(password, bcrypt.gensalt()) + session['hash'] = hash_password + + msg = EmailMessage() + + # otp = random.randint(100000, 999999) + alphabet = string.ascii_letters + string.digits + otp = 'smilecheck-user-'+''.join(secrets.choice(alphabet) for i in range(30)) + session['otp'] = otp + # with open('static\email.html?name={name}&otp={otp}', 'rb') as f: + # html_content = f.read().decode('utf-8') + # msg.set_content(html_content, subtype='html') + + # msg.set_content("The body of the email is here") + msg["Subject"] = "SmileCheck Verification" + msg["From"] = "smilecheck100@gmail.com" + msg["To"] = email + link = f"http://127.0.0.1:5000/verify/{otp}" + + html_content = render_template('email.html', name=name, link=link) + msg.set_content(html_content, subtype='html') + + context = ssl.create_default_context() + + with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp: + smtp.login('smilecheck23@gmail.com', 'dczcfrdkthwcfoqu') + smtp.send_message(msg) + + return render_template('register.html', message='An Verification Email has been sent to your email address.', message_code=560, error_code=568) + + return redirect(url_for('home')) + + # def getmail(): + # if request.method=="POST": + # email = request.form['email'] + # code = hashlib.md5(str(random.randint(0, 1000000)).encode()).hexdigest() + # session['code'] = code + # link = f"http://127.0.0.1:5000/verify/{code}" + # send_email(email, link) + # return "A verification email has been sent to your email address. Please click the link in the email to verify your email." + + @self.app.route('/verify/') + def verify(otp): + now = datetime.datetime.now() + if str(session['otp']) == otp: + self.app.config['MYSQL_DB'] = session['database'] + + cur = mysql.connection.cursor() + cur.execute("INSERT INTO users (name, email, password) VALUES (%s,%s,%s)", (session['name'], session['email'], session['hash'],)) + + if session['pretype'] == 'student': + cur.execute("UPDATE `users` SET `usertype` = %s WHERE `email`=%s", (0, session['email'],)) + session['usertype'] = 0 + elif session['pretype'] == 'admin': + cur.execute("UPDATE `users` SET `usertype` = %s WHERE `email`=%s", (1, session['email'],)) + session['usertype'] = 1 + + # cur.execute("SELECT `id` FROM users WHERE email = %s", (session['email'],)) + # uid = cur.fetchone() + # session['id'] = uid['id'] + # cur.execute("INSERT INTO session (id, email, action, actionC, datetime) VALUES (%s, %s, %s, %s, %s)", (session['id'], session['email'], 'Logged In - Session Started', 1, now,)) + mysql.connection.commit() + cur.close() + + #destroy session['otp'] and session['hash'] + session.clear() + + redi = 'login' + return render_template('verify.html', message=111, redirect_url=redi) + + else: + redi = 'register' + return render_template('verify.html', message=999, redirect_url=redi) + + # def send_email(email, link): + # subject = "Verify Your Email" + # body = f"Please click the following link to verify your email: {link}" + # message = f"Subject: {subject}\n\n{body}" + # sender_email = 'legendVI001@gmail.com' # replace with your email + # sender_password = 'ABC321VI01' # replace with your password + # + # with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp: + # smtp.login(sender_email, sender_password) + # smtp.sendmail(sender_email, email, message) + + @self.app.route('/login', methods=["GET", "POST"]) + def login(): + if request.method == 'GET': + return render_template("login.html", error_code=999) + + if request.method == 'POST': + now = datetime.datetime.now() + database = request.form['database'] + if database == 'database1': + self.app.config['MYSQL_DB'] = 'test' + elif database == 'database2': + self.app.config['MYSQL_DB'] = 'test2' + + email = request.form['email'] + password = request.form['password'].encode('utf-8') + + curl = mysql.connection.cursor() + curl.execute("SELECT * FROM users WHERE email=%s", (email,)) + user = curl.fetchone() + + if user != None: + if bcrypt.hashpw(password, user["password"].encode('utf-8')) == user["password"].encode('utf-8'): + + curl.execute("SELECT * FROM session WHERE email=%s ORDER BY `datetime` DESC LIMIT 1", (email,)) + userses = curl.fetchone() + + if userses == None or userses['actionC']==0: + session['id'] = user['id'] + session['name'] = user['name'] + session['email'] = user['email'] + session['database'] = self.app.config['MYSQL_DB'] + + curl.execute("INSERT INTO session (id, email, action, actionC, datetime) VALUES (%s, %s, %s, %s, %s)", (session['id'], session['email'], 'Logged In - Session Started', 1, now,)) + mysql.connection.commit() + curl.close() + + if user['usertype'] == 0: + session['usertype'] = 0 + return redirect(url_for('home')) + elif user['usertype'] == 1: + session['usertype'] = 1 + return redirect(url_for('admin')) + + elif userses['actionC'] == 1: + return render_template("login.html", error="Error: Session already in use.", error_code=450) + + else: + return render_template("login.html", error="Error: Password or Email are incorrect.", error_code=451) + + else: + return render_template("login.html", error="Error: User not found. Please register.", error_code=452) + + mysql.connection.commit() + curl.close() + else: + return render_template("login.html") + + + @self.app.route('/forgot', methods=["GET", "POST"]) + def forgot(): + if request.method == 'GET': + return render_template("forgot.html") + + if request.method == 'POST': + now = datetime.datetime.now() + self.app.config['MYSQL_DB'] = 'test' + + email = request.form['email'] + session['email'] = email + + curl = mysql.connection.cursor() + curl.execute("SELECT * FROM users WHERE email=%s", (email,)) + user = curl.fetchone() + + mysql.connection.commit() + curl.close() + + if user != None: + msg = EmailMessage() + + name= user['name'] + + alphabet = string.ascii_letters + string.digits + otp = 'smilecheck-pass-' + ''.join(secrets.choice(alphabet) for i in range(30)) + session['otp'] = otp + msg["Subject"] = "SmileCheck Verification" + msg["From"] = "smilecheck100@gmail.com" + msg["To"] = email + link = f"http://127.0.0.1:5000/password/{otp}" + + html_content = render_template('pass.html', name=name, link=link) + msg.set_content(html_content, subtype='html') + + context = ssl.create_default_context() + + with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp: + smtp.login('smilecheck23@gmail.com', 'dczcfrdkthwcfoqu') + smtp.send_message(msg) + + return render_template('register.html', message='An Verification Email has been sent to your email address.', message_code=560, error_code=568) + + else: + return render_template("forgot.html", mess="No such User Found.") + + + @self.app.route('/password/', methods=["GET", "POST"]) + def password(otp): + now = datetime.datetime.now() + if str(session['otp']) == otp: + redi = 'change' + return render_template('password.html', message=111, redirect_url=redi) + else: + redi = 'login' + return render_template('password.html', message=999, redirect_url=redi) + + + @self.app.route('/change', methods=["GET", "POST"]) + def change(): + if request.method == 'GET': + return render_template("change.html") + + if request.method == 'POST': + self.app.config['MYSQL_DB'] = 'test' + + password = request.form['password'].encode('utf-8') + hash_password = bcrypt.hashpw(password, bcrypt.gensalt()) + + curl = mysql.connection.cursor() + curl.execute("UPDATE `users` SET `password`=%s WHERE email=%s", (hash_password, session['email'],)) + user = curl.fetchone() + + mysql.connection.commit() + curl.close() + + session.clear() + + return redirect(url_for('login')) + + + @self.app.route('/admin', methods=["GET", "POST"]) + def admin(): + if 'email' in session: + if session['usertype'] == 0: + return redirect(url_for('home')) + else: + return redirect(url_for('login')) + + if request.method == 'GET': + if 'email' in session: + self.app.config['MYSQL_DB'] = session['database'] + cura = mysql.connection.cursor() + cura.execute("SELECT `assessid`, `name` FROM assessments") + typedata = cura.fetchall() + cura.execute("SELECT `id`, `type` FROM custom") + given = cura.fetchall() + + isdone = [] + for give in given: + isdone.append(give['type']) + + cura.execute("SELECT `id`, `name`, `email`, `isdone` FROM `users` WHERE `usertype` = 0") + res = cura.fetchall() + + cura.execute("SELECT `assessId`, `name`, `description`, `Questions`, `average` FROM `assessments`") + que = cura.fetchall() + + cura.execute("SELECT `id`, `type`, `name` FROM `custom`, `assessments` WHERE custom.type = assessments.assessId") + abc = cura.fetchall() + + ahi = 0.0 + for assess in que: + if assess['assessId'] == 101: + ahi = assess['average'] + + ts = len(res) + tas = len(isdone) + + cura.execute("SELECT `name`, `email`, `feedback` FROM `feedbacks`") + feeds = cura.fetchall() + + mysql.connection.commit() + cura.close() + + return render_template("admin.html", typedata=typedata, given=given, result=res, assess=que, abc=abc, ts=ts, ahi=ahi, tas=tas, feeds= feeds) + + if request.method == "POST": + self.app.config['MYSQL_DB'] = session['database'] + + if 'resid' in request.form: + resid = request.form.get('resid') + types = request.form.get('type') + + session['id'] = resid + session['type'] = types + + return redirect(url_for('result')) + + elif 'delete' in request.form: + cura = mysql.connection.cursor() + deleteId = request.form['delete'] + cura.execute("DELETE FROM `assessments` WHERE `assessId`= %s", (deleteId,)) + mysql.connection.commit() + cura.close() + return redirect(url_for('admin')) + + # cura = mysql.connection.cursor() + # cura.execute("SELECT * FROM `result` WHERE `id` = %s", (resid,)) + # chart = cura.fetchone() + # + # cura.execute("SELECT * FROM `assessments` WHERE `assessid` = %s", (type,)) + # chart = cura.fetchone() + # mysql.connection.commit() + # cura.close() + # + # return render_template('result.html') + + return render_template('admin.html') + + + @self.app.route('/form', methods=["GET", "POST"]) + def form(): + if 'email' not in session: + return redirect(url_for('login')) + + if request.method == "GET": + self.app.config['MYSQL_DB'] = session['database'] + typeid = session['type'] + curf = mysql.connection.cursor() + curf.execute("SELECT `name`, `description`, `Questions`, `types` FROM assessments WHERE assessid = %s", (typeid,)) + questions = curf.fetchone() + mysql.connection.commit() + curf.close() + + return render_template("form.html", questions=questions) + + if request.method == "POST": + self.app.config['MYSQL_DB'] = session['database'] + + email = session["email"] + + '''Sentiment analysis for each response...''' + + data = request.form.to_dict() + + length = len(request.form) + inp = [] + for i in range(0, length): + inp.append(data['inp' + str(i + 1) + '']) + + sid_obj = SentimentIntensityAnalyzer() + + compound = [] + for i in range(0, length): + # locals()[f"sentiment_dict{i}"] = sid_obj.polarity_scores(data['inp'+ (i+1) +'']) + compound.append(sid_obj.polarity_scores(data['inp' + str(i + 1) + ''])['compound'] * 100) + + '''SQL Queries for data storing in database...''' + + now = datetime.datetime.now() + cur = mysql.connection.cursor() + + query = "INSERT INTO `custom` (`Id`, `type`, `response`, `result`, `datetime`) VALUES (%s, %s, %s, %s, %s)" + cur.execute(query, (session['id'], session['type'], json.dumps(inp), json.dumps(compound), now,)) + + query = "UPDATE `users` SET `isdone`=%s WHERE `id`=%s" + cur.execute(query, (1, session['id'],)) + + cur.execute("SELECT * FROM `custom` WHERE id=%s AND type=%s", (session['id'], session['type'],)) + res = cur.fetchone() + + cur.execute("SELECT qval FROM `assessments` WHERE assessId=%s", (session['type'],)) + qval = cur.fetchone() + + happy = [] + multi = [] + multi = eval(qval['qval']) + happy = eval(res['result']) + for j in range(len(happy)): + happy[j] = happy[j] * multi[j] + + min_value = min(compound) + max_value = max(compound) + scaled_values = [(value - min_value) / (max_value - min_value) * 5 for value in compound] + + happy_index = round(sum(scaled_values) / len(scaled_values), 2) + # happy_score = round(sum(happy) / len(happy), 4) + + query = "UPDATE `custom` SET `happy`=%s WHERE `id`=%s AND `type`=%s" + cur.execute(query, (happy_index, session['id'], session['type'],)) + + cur.execute("SELECT `happy` FROM `custom` WHERE type=%s", (session['type'],)) + avg_dict = cur.fetchall() + + avg_list = [d['happy'] for d in avg_dict if isinstance(d['happy'], float)] + [item for d in avg_dict if isinstance(d['happy'], (list, tuple)) for item in d['happy']] + + avg_score = round(sum(avg_list)/len(avg_list), 2) + + query = "UPDATE `assessments` SET `average`=%s WHERE `assessId`=%s" + cur.execute(query, (avg_score, session['type'],)) + + mysql.connection.commit() + cur.close() + + '''Re-render template...''' + + return redirect(url_for('result')) + + #*********************************************** Further optimization.... + # form_data = request.form.to_dict() + #*********************************************** + # + # inp1 = request.form.get("inp1") + # inp2 = request.form.get("inp2") + # inp3 = request.form.get("inp3") + # inp4 = request.form.get("inp4") + # inp5 = request.form.get("inp5") + # inp6 = request.form.get("inp6") + # inp7 = request.form.get("inp7") + # inp8 = request.form.get("inp8") + # inp9 = request.form.get("inp9") + # inp10 = request.form.get("inp10") + # + # sid_obj = SentimentIntensityAnalyzer() + # + # sentiment_dict1 = sid_obj.polarity_scores(inp1) + # sentiment_dict2 = sid_obj.polarity_scores(inp2) + # sentiment_dict3 = sid_obj.polarity_scores(inp3) + # sentiment_dict4 = sid_obj.polarity_scores(inp4) + # sentiment_dict5 = sid_obj.polarity_scores(inp5) + # sentiment_dict6 = sid_obj.polarity_scores(inp6) + # sentiment_dict7 = sid_obj.polarity_scores(inp7) + # sentiment_dict8 = sid_obj.polarity_scores(inp8) + # sentiment_dict9 = sid_obj.polarity_scores(inp9) + # sentiment_dict10 = sid_obj.polarity_scores(inp10) + # # negative = sentiment_dict['neg'] + # # neutral = sentiment_dict['neu'] + # # positive = sentiment_dict['pos'] + # compound1 = sentiment_dict1['compound'] * 100 + # compound2 = sentiment_dict2['compound'] * 100 + # compound3 = sentiment_dict3['compound'] * 100 + # compound4 = sentiment_dict4['compound'] * 100 + # compound5 = sentiment_dict5['compound'] * 100 + # compound6 = sentiment_dict6['compound'] * 100 + # compound7 = sentiment_dict7['compound'] * 100 + # compound8 = sentiment_dict8['compound'] * 100 + # compound9 = sentiment_dict9['compound'] * 100 + # compound10 = sentiment_dict10['compound'] * 100 + # + # # _________________________________________________________________________________________________________# + # + # '''Matlab Plots...''' + # + # x = ["Q1", "Q2", "Q3", "Q4", "Q5", "Q6", "Q7", "Q8", "Q9", "Q10"] + # y = [compound1, compound2, compound3, compound4, compound5, compound6, compound7, compound8, compound9, compound10] + # fig, ax = plt.subplots() + # plt.bar(x, y) + # fig.set_size_inches(10, 6) + # img_name = str(session['id']) + # fig.savefig('' + img_name + '.png', dpi=384, transparent=True) + # with open('' + img_name + '.png', 'rb') as f: + # img = f.read() + # + # # _________________________________________________________________________________________________________# + # + # '''SQL Queries for data storing in database...''' + # + # now = datetime.datetime.now() + # cur = mysql.connection.cursor() + # + # query = "INSERT INTO `testy` (`Id`, `Q1`, `Q2`, `Q3`, `Q4`, `Q5`, `Q6`, `Q7`, `Q8`, `Q9`, `Q10`, `datetime`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" + # cur.execute(query, (session['id'], inp1, inp2, inp3, inp4, inp5, inp6, inp7, inp8, inp9, inp10, now)) + # + # query = "INSERT INTO `result` (`id`, `R1`, `R2`, `R3`, `R4`, `R5`, `R6`, `R7`, `R8`, `R9`, `R10`, `image`, `datetime`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" + # cur.execute(query, (session['id'], compound1, compound2, compound3, compound4, compound5, compound6, compound7, compound8, compound9, compound10, img, now)) + # + # query = "UPDATE `users` SET `isdone`=%s WHERE `id`=%s" + # cur.execute(query, (1, session['id'],)) + # + # mysql.connection.commit() + # cur.close() + + # '''Retrival of data...''' + # query = "SELECT Image FROM testy WHERE Id = %s" + # cur.execute(query, (103)) + # row = cur.fetchone() + # img = Image.open(io.BytesIO(row[0])) + # cur.close() + # + # plt.imshow(img) + # plt.show() + + # _________________________________________________________________________________________________________# + return redirect(url_for('result')) + # def index(): + # if request.method == "POST": + # + # '''Matlab Plots...''' + # x = ["a", "b", "c", "d"] + # y = [85,90,70,75] + # fig, ax = plt.subplots() + # plt.bar(x, y) + # fig.set_size_inches(10, 6) + # fig.savefig('foo.png', dpi=384, transparent=True) + # with open('foo.png', 'rb') as f: + # img = f.read() + # # _________________________________________________________________________________________________________# + # + # '''SQL Queries for data storing in database...''' + # cur = mysql.connection.cursor() + # query = "INSERT INTO `testy` (`Id`, `Q1`, `Q2`, `Q3`, `Image`) VALUES (%s, %s, %s, %s, %s)" + # cur.execute(query, (103, 2, 3, 1, img)) + # mysql.connection.commit() + # + # query = "SELECT Image FROM testy WHERE Id = %s" + # cur.execute(query, (103,)) + # row = cur.fetchone() + # img = Image.open(io.BytesIO(row[0])) + # cur.close() + # + # plt.imshow(img) + # plt.show() + # # _________________________________________________________________________________________________________# + # + # + # '''Sentiment analysis for each response...''' + # inp = request.form.get("inp1") + # name = request.form.get("name") + # sid_obj = SentimentIntensityAnalyzer() + # # score = sid.polarity_scores(inp) + # # if score["neg"] > 0: + # # return render_template('home.html', message="Negative") + # # if score["neg"] == 0: + # # return render_template('home.html', message="Neutral") + # # else: + # # return render_template('home.html', message="Positive") + # + # sentiment_dict = sid_obj.polarity_scores(inp) + # negative = sentiment_dict['neg'] + # neutral = sentiment_dict['neu'] + # positive = sentiment_dict['pos'] + # compound = sentiment_dict['compound'] + # + # return render_template('home.html', message=sentiment_dict['compound'], names=name) + # + # # if sentiment_dict['compound'] >= 0.05: + # # return render_template('home.html', message="Positive") + # # + # # elif sentiment_dict['compound'] <= - 0.05: + # # return render_template('home.html', message="Negative") + # # + # # else: + # # return render_template('home.html', message="Neutral") + # + # # _________________________________________________________________________________________________________# + # + # return render_template('home.html') + + + @self.app.route('/custom', methods=["GET", "POST"]) + def custom(): + if 'email' not in session: + return redirect(url_for('login')) + + if request.method == "GET": + if session['usertype'] == 0: + return redirect(url_for('home')) + + return render_template('custom.html') + + if request.method == "POST": + self.app.config['MYSQL_DB'] = session['database'] + email = session["email"] + + '''Sentiment analysis for each response...''' + + data = request.form.to_dict() + + length = len(request.form) + inp = [] + for i in range(0, int((length - 3)/2)): + inp.append(data['inpt' + str(i + 1) + '']) + + sid_obj = SentimentIntensityAnalyzer() + + compound = [] + for i in range(0, int((length - 3)/2)): + compound.append(sid_obj.polarity_scores(data['inpt' + str(i + 1) + ''])['compound'] * 100) + + types = [] + for i in range(0, int((length - 3) / 2)): + types.append(int(data['select' + str(i + 1) + ''])) + + for i in range(len(compound)): + if compound[i] < 0: + compound[i] = -1 + elif compound[i] >= 0: + compound[i] = 1 + + name = request.form['name'] + describ = request.form['describ'] + + '''SQL Queries for data storing in database...''' + + now = datetime.datetime.now() + cur = mysql.connection.cursor() + + query = "INSERT INTO `assessments` (`name`, `description`, `Questions`, `types`, `qval`) VALUES (%s, %s, %s, %s, %s)" + cur.execute(query, (name, describ, json.dumps(inp), json.dumps(types), json.dumps(compound),)) + + mysql.connection.commit() + cur.close() + + return redirect(url_for('admin')) + + return render_template("custom.html") + + + @self.app.route('/result') + def result(): + if 'email' not in session: + return redirect(url_for('home')) + + self.app.config['MYSQL_DB'] = session['database'] + curr = mysql.connection.cursor() + + curr.execute("SELECT * FROM `custom` WHERE id=%s AND type=%s", (session['id'], session['type'],)) + res = curr.fetchone() + + curr.execute("SELECT result FROM `custom` WHERE type=%s", (session['type'],)) + avg = curr.fetchall() + + # curr.execute("SELECT qval FROM `assessments` WHERE assessId=%s", (session['type'],)) + # qval = curr.fetchone() + + dynamic = [list(eval(d['result'])) for d in avg] + + # Personal Average per questions will be compared.... + # average = [] + # multi = [] + # multi = eval(qval['qval']) + # for i in range(len(avg)): + # temp = eval(avg[i]['result']) + # for j in range(len(temp)): + # temp[j] = temp[j] * multi[j] + # average.append(sum(temp) / len(temp)) + + #Compute Happiness Index + # happy = [] + # multi = [] + # multi = eval(qval['qval']) + # happy = eval(res['result']) + # for j in range(len(happy)): + # happy[j] = happy[j] * multi[j] + # happy_score = round(sum(happy) / len(happy), 4) + + dyna = [] + i = 0 + for i in range(len(dynamic[i])): + temp2 = 0 + for j in range(len(dynamic)): + temp2 = temp2 + dynamic[j][i] + dyna.append(temp2 / len(dynamic)) + + + ques = [] + for i in range(1, len(dyna)+1): + ques.append("Question " + str(i) + "") + + curr.execute("SELECT * FROM assessments WHERE assessid = %s", (session['type'],)) + questions = curr.fetchone() + + curr.execute("SELECT * FROM suggestions") + suggests = curr.fetchall() + response = [] + mapper = eval(questions['types']) + score = eval(res['result']) + + score_dict = {} + for i in range(len(mapper)): + if mapper[i] not in score_dict: + score_dict[mapper[i]] = [] + score_dict[mapper[i]].append(score[i]) + + result_dict = {} + + for key, value in score_dict.items(): + temp_score = sum(value) / len(value) + avg_score = round(((temp_score + 100) / 200) * (90 - 10) + 10, 2) + if key == 1101: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Psychological well being", "description": "Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1101]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Psychological well being", "description": "Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1101]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Psychological well being", "description": "Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1101]} + + elif key == 1102: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Health aspects", "description": "Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1102]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Health aspects", "description": "Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1102]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Health aspects", "description": "Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1102]} + + elif key == 1103: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Time management", "description": "Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1103]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Time management", "description": "Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1103]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Time management", "description": "Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1103]} + + elif key == 1104: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Educational standards", "description": "Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1104]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Educational standards", "description": "Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1104]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Educational standards", "description": "Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1104]} + + elif key == 1105: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Cultural diversity", "description": "Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1105]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Cultural diversity", "description": "Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1105]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Cultural diversity", "description": "Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1105]} + + elif key == 1106: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Social well-being", "description": "Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1106]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Social well-being", "description": "Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1106]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Social well-being", "description": "Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1106]} + + elif key == 1107: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Good governance", "description": "Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1107]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Good governance", "description": "Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1107]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Good governance", "description": "Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1107]} + + elif key == 1108: + if avg_score >= 66: + result_dict[key] = {"average_score": avg_score, "name": "Community vitality", "description": "Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.", "suggestions_text": [list(eval(d['good'])) for d in suggests if d['idtype'] == 1108]} + elif avg_score >= 30: + result_dict[key] = {"average_score": avg_score, "name": "Community vitality", "description": "Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.", "suggestions_text": [list(eval(d['average'])) for d in suggests if d['idtype'] == 1108]} + elif avg_score < 30: + result_dict[key] = {"average_score": avg_score, "name": "Community vitality", "description": "Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.", "suggestions_text": [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1108]} + + suggest_dict = dict(sorted(result_dict.items())) + + # for i in range(len(score)): + # if score[i] == 999: + # response.append({'none'}) + # + # elif score[i] >= 66: + # if mapper[i] == 1101: + # new_dict = { + # 'domain': 'Psychological well being', + # 'describ': 'Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1101] + # } + # elif mapper[i] == 1102: + # new_dict = { + # 'domain': 'Health aspects', + # 'describ': 'Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1102] + # } + # elif mapper[i] == 1103: + # new_dict = { + # 'domain': 'Time management', + # 'describ': 'Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1103] + # } + # elif mapper[i] == 1104: + # new_dict = { + # 'domain': 'Educational standards', + # 'describ': 'Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1104] + # } + # elif mapper[i] == 1105: + # new_dict = { + # 'domain': 'Cultural diversity', + # 'describ': 'Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1105] + # } + # elif mapper[i] == 1106: + # new_dict = { + # 'domain': 'Social well-being', + # 'describ': 'Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1106] + # } + # elif mapper[i] == 1107: + # new_dict = { + # 'domain': 'Good governance', + # 'describ': 'Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1107] + # } + # elif mapper[i] == 1108: + # new_dict = { + # 'domain': 'Community vitality', + # 'describ': 'Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.', + # 'suggest': [list(eval(d['good'])) for d in suggests if d['idtype'] == 1108] + # } + # response.append(new_dict) + # + # elif score[i] >= 40: + # if mapper[i] == 1101: + # new_dict = { + # 'domain': 'Psychological well being', + # 'describ': 'Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1101] + # } + # elif mapper[i] == 1102: + # new_dict = { + # 'domain': 'Health aspects', + # 'describ': 'Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1102] + # } + # elif mapper[i] == 1103: + # new_dict = { + # 'domain': 'Time management', + # 'describ': 'Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1103] + # } + # elif mapper[i] == 1104: + # new_dict = { + # 'domain': 'Educational standards', + # 'describ': 'Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1104] + # } + # elif mapper[i] == 1105: + # new_dict = { + # 'domain': 'Cultural diversity', + # 'describ': 'Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1105] + # } + # elif mapper[i] == 1106: + # new_dict = { + # 'domain': 'Social well-being', + # 'describ': 'Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1106] + # } + # elif mapper[i] == 1107: + # new_dict = { + # 'domain': 'Good governance', + # 'describ': 'Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1107] + # } + # elif mapper[i] == 1108: + # new_dict = { + # 'domain': 'Community vitality', + # 'describ': 'Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.', + # 'suggest': [list(eval(d['average'])) for d in suggests if d['idtype'] == 1108] + # } + # response.append(new_dict) + # + # elif score[i] < 40: + # if mapper[i] == 1101: + # new_dict = { + # 'domain': 'Psychological well being', + # 'describ': 'Refers to an individual`s mental state and overall happiness, including feelings of fulfillment, purpose, and contentment.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1101] + # } + # elif mapper[i] == 1102: + # new_dict = { + # 'domain': 'Health aspects', + # 'describ': 'Refers to an individual`s physical health, including factors such as nutrition, exercise, and access to medical care.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1102] + # } + # elif mapper[i] == 1103: + # new_dict = { + # 'domain': 'Time management', + # 'describ': 'Refers to an individual`s ability to effectively manage their time and prioritize tasks to maximize productivity and reduce stress.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1103] + # } + # elif mapper[i] == 1104: + # new_dict = { + # 'domain': 'Educational standards', + # 'describ': 'Refers to the quality of education provided in a given community, including factors such as curriculum, teaching quality, and access to resources.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1104] + # } + # elif mapper[i] == 1105: + # new_dict = { + # 'domain': 'Cultural diversity', + # 'describ': 'Refers to the range of cultures, beliefs, and practices within a given community, and the level of acceptance and celebration of diversity.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1105] + # } + # elif mapper[i] == 1106: + # new_dict = { + # 'domain': 'Social well-being', + # 'describ': 'Social well-being refers to the quality of an individual`s social interactions, relationships, and sense of community belonging.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1106] + # } + # elif mapper[i] == 1107: + # new_dict = { + # 'domain': 'Good governance', + # 'describ': 'Refers to the effectiveness and transparency of governing systems and institutions in promoting the well-being of all members of a community.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1107] + # } + # elif mapper[i] == 1108: + # new_dict = { + # 'domain': 'Community vitality', + # 'describ': 'Refers to the health and vibrancy of a community, including factors such as social cohesion, civic engagement, and access to resources.', + # 'suggest': [list(eval(d['bad'])) for d in suggests if d['idtype'] == 1108] + # } + # response.append(new_dict) + + curr.execute("SELECT `Questions`,`response`, `result`, `datetime` FROM `custom`, `assessments` WHERE `id`=%s AND `type`=%s AND custom.type = assessments.assessId", (session['id'], session['type'],)) + details = curr.fetchone() + + mysql.connection.commit() + curr.close() + + return render_template("result.html", ques=ques, res1=res['response'], res2=res['result'], res3=res['datetime'], res4=res['happy'], res5=dyna, res6=response, res7=suggest_dict, res8=questions, res9=details) + + # @app.route('/customresult') + # def customresult(): + # app.config['MYSQL_DB'] = session['database'] + # curr = mysql.connection.cursor() + # curr.execute("SELECT * FROM `custom` WHERE id=%s", (session['id'],)) + # res = curr.fetchone() + # mysql.connection.commit() + # curr.close() + # + # ques = [] + # for i in range(1, len(res)): + # ques.append("Q"+ str(i) +"") + # + # return render_template("customresult.html", ques=ques, res1=res['response'], res2=res['result'], res3=res['datetime']) + + @self.app.route('/logout') + def logout(): + self.app.config['MYSQL_DB'] = session['database'] + now = datetime.datetime.now() + curo = mysql.connection.cursor() + if 'id' in session: + curo.execute("INSERT INTO session (id, email, action, actionC, datetime) VALUES (%s, %s, %s, %s, %s)", (session['id'], session['email'], 'Logged Out - Session Terminated', 0, now,)) + else: + curo.execute("INSERT INTO session (email, action, actionC, datetime) VALUES (%s, %s, %s, %s)", (session['email'], 'Logged Out - Session Terminated', 0, now,)) + + mysql.connection.commit() + curo.close() + session.clear() + return redirect(url_for("home")) + + + @self.app.errorhandler(Exception) + def handle_error(error): + self.app.logger.error(error) + error_name = error.__class__.__name__ + message = f"{error_name}: {str(error)}" + return render_template('error.html', message=message), 500 + + +if __name__=='__main__': + my_app = SmileCheckApp() + my_app.app.run(debug=True) + # app.run(debug=True) + + +""" +python -m flask run + +Vader +VADER (Valence Aware Dictionary and Sentiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically designed to detect sentiments expressed in social media. + +It's disheartening to see so much suffering and injustice in the world. From poverty and inequality to violence and discrimination, there are so many deep-rooted problems that seem almost insurmountable. It can be hard to maintain hope and optimism when faced with so much negativity, and it's all too easy to feel powerless in the face of such overwhelming challenges. The daily news cycle can be overwhelming, with constant reports of tragedy and heartbreak, and it's easy to feel as though the world is an increasingly dangerous and hopeless place. Despite all this, however, we must continue to work towards a better future and hold onto the belief that change is possible. + +@app.route('/submit', methods=['POST']) +def handle_submit(): + if 'form1' in request.form: + # Handle form1 submission code here + return 'Form 1 submitted successfully' + elif 'form2' in request.form: + # Handle form2 submission code here + return 'Form 2 submitted successfully' + else: + # Handle case where neither form1 nor form2 were submitted + return 'Invalid form submission' + + +
+ + +
+ +
+ + +
+ + +if there are two forms in my html template i want run two different flask codes with post request from each form + +no within a single app route but with two different forms + + +""" \ No newline at end of file diff --git a/static/505error.gif b/static/505error.gif new file mode 100644 index 0000000000000000000000000000000000000000..455d5d8bcc10e16679dcb563d667da87a502e8a6 --- /dev/null +++ b/static/505error.gif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:974aade8c7afe61ff53afabaf425a8618244b80b4ca6e1405e5d2d3ddfb15388 +size 4059680 diff --git a/static/back-index.svg b/static/back-index.svg new file mode 100644 index 0000000000000000000000000000000000000000..fe56df5a00398c47429b1da68e29c70ad93f826d --- /dev/null +++ b/static/back-index.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/background.svg b/static/background.svg new file mode 100644 index 0000000000000000000000000000000000000000..c38b91c84ecbd953c1cbec48e1f7d264c5294332 --- /dev/null +++ b/static/background.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/bin.png b/static/bin.png new file mode 100644 index 0000000000000000000000000000000000000000..26198164b86ec4b39559bf0c6e98fb46e7d1ffad Binary files /dev/null and b/static/bin.png differ diff --git a/static/chat.png b/static/chat.png new file mode 100644 index 0000000000000000000000000000000000000000..2dd11cf248ca84c60fbd4afce36116f2e709d387 Binary files /dev/null and b/static/chat.png differ diff --git a/static/check-mark.png b/static/check-mark.png new file mode 100644 index 0000000000000000000000000000000000000000..6aa84d911ea86244b082619662cd024bd38f30ca Binary files /dev/null and b/static/check-mark.png differ diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000000000000000000000000000000000000..669f9f1a0773fa243d284277f00ef621178f3887 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,2827 @@ +/*============ Google fonts ============*/ +@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); + +/*======= CSS variables =======*/ +:root { + --white-color: #000; + --dark-color: #fff; + --body-bg-color: #fff; + --section-bg-color: #fff; + --navigation-item-hover-color: #ff9900; + + --text-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); + --box-shadow: 0 5px 25px rgb(0 0 0 / 20%); + + --scroll-bar-color: #fff; + --scroll-thumb-color: #ff9100; + --scroll-thumb-hover-color: #ff6800; +} + +/*======= Scroll bar =======*/ +::-webkit-scrollbar{ + width: 11px; + background: var(--scroll-bar-color); +} + +::-webkit-scrollbar-thumb{ + width: 100%; + background: var(--scroll-thumb-color); + border-radius: 2em; +} + +::-webkit-scrollbar-thumb:hover{ + background: var(--scroll-thumb-hover-color); +} + +/*======= Main CSS =======*/ +*{ + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; +} + +body{ + background: var(--body-bg-color); +} +html { + scroll-behavior: smooth; +} +section{ + position: relative; +} + +.section{ + color: var(--white-color); + background: var(--section-bg-color); + padding: 35px 200px; + transition: 0.3s ease; +} + +/*======= Header =======*/ +header{ + z-index: 999; + position: fixed; + width: 100%; + height: calc(5rem + 1rem); + top: 0; + left: 0; + display: flex; + justify-content: center; + transition: 0.5s ease; + transition-property: height, background; +} + +header.sticky{ + height: calc(2.5rem + 1rem); + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(20px); + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} + +header .nav-bar{ + position: relative; + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 200px; + transition: 0.3s ease; +} + +.nav-close-btn, .nav-menu-btn{ + display: none; +} + +.nav-bar .logo{ + color: var(--white-color); + font-size: 1.8em; + font-weight: 600; + letter-spacing: 2px; + text-transform: uppercase; + text-decoration: none; + text-shadow: var(--text-shadow); +} + +.navigation .nav-items a{ + color: var(--white-color); + font-size: 1em; + text-decoration: none; + text-shadow: var(--text-shadow); + position: relative; +} + +.navigation .nav-items a i{ + display: none; +} + +.navigation .nav-items a:not(:last-child){ + margin-right: 45px; +} + +.navigation .nav-items a .svgContainer { + position: absolute; + top : -50%; + left: 100%; + width: 50px; + height: 50px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; +} + +.navigation .nav-items a .svgContainer div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.navigation .nav-items a .svgContainer .mySVG { + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; +} + +.profile { + position: relative; +} + +.floating-div { + position: absolute; + display: none; + top: 80px; + right: 10%; + padding: 10px; + background-color: #fff; + border-radius: 10px; + border: 1px solid #333; +} + +.floating-div .svgContainer { + position: relative; + width: 100px; + height: 100px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; +} + +.floating-div .svgContainer div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.floating-div .svgContainer .mySVG { + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; +} + +.flex-div { + padding: 10px; + margin:10px auto; +} + +.flex-div a{ + color:black; + line-height:400%; +} + +.flex-div .svgContainer { + position: relative; + width: 100px; + height: 100px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; +} + +.flex-div .svgContainer div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.flex-div .svgContainer .mySVG { + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; +} + +/*======= Home =======*/ +.home{ + min-height: 100vh; +} + +.home:before{ + z-index: 888; + content: ''; + position: absolute; + width: 100%; + height: 50px; + bottom: 0; + left: 0; + background: linear-gradient(transparent, var(--section-bg-color)); +} + +/*======= Background slider =======*/ +.bg-slider{ + z-index: 777; + position: relative; + width: 100%; + min-height: 100vh; +} + +.bg-slider .swiper-slide{ + background-image: url('/static/index-backed.svg'); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; + position: relative; + width: 100%; + height: 100vh; +} + +.bg-slider .swiper-slide img{ + width: 100%; + height: 100vh; + object-fit: cover; + background-position: center; + background-size: cover; + pointer-events: none; +} + +@media screen and (max-width: 700px){ + .bg-slider .swiper-slide img { + width: 100%; + height: 50vh; + } + +} + +.swiper-slide .text-content{ + position: absolute; + top: 25%; + color: var(--white-color); + margin: 0 200px; + transition: 0.3s ease; +} + +.swiper-slide .text-content .title{ + font-size: 4em; + font-weight: 700; + text-shadow: var(--text-shadow); + margin-bottom: 20px; + transform: translateY(-50px); + opacity: 0; +} + +.swiper-slide-active .text-content .title{ + transform: translateY(0); + opacity: 1; + transition: 1s ease; + transition-delay: 0.3s; + transition-property: transform, opacity; +} + +.swiper-slide .text-content .title span{ + font-size: 0.3em; + font-weight: 300; +} + +.swiper-slide .text-content p{ + max-width: 700px; + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + text-shadow: var(--text-shadow); + padding: 20px; + border-radius: 10px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: var(--box-shadow); + transform: translateX(-80px); + opacity: 0; +} + +.swiper-slide-active .text-content p{ + transform: translateX(0); + opacity: 1; + transition: 1s ease; + transition-delay: 0.3s; + transition-property: transform, opacity; +} + +.swiper-slide .text-content .read-btn{ + border: none; + outline: none; + background: var(--white-color); + color: var(--dark-color); + font-size: 1em; + font-weight: 500; + padding: 8px 25px; + display: flex; + align-items: center; + margin-top: 40px; + border-radius: 10px; + cursor: pointer; + transform: translateX(50px); + opacity: 0; +} + +.swiper-slide-active .text-content .read-btn{ + transform: translateX(0); + opacity: 1; + transition: 1s ease; + transition-delay: 0.3s; + transition-property: transform, opacity; +} + +.swiper-slide .text-content .read-btn i{ + font-size: 1.6em; + transition: 0.3s ease; +} + +.swiper-slide .text-content .read-btn:hover i{ + transform: translateX(5px); +} + +.dark-layer:before{ + content: ''; + position: absolute; + width: 100%; + height: 100vh; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.1); +} + +.bg-slider-thumbs{ + z-index: 777; + position: absolute; + bottom: 7em; + left: 50%; + transform: translateX(-50%); + transition: 0.3s ease; +} + +.thumbs-container{ + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + padding: 10px 3px; + border-radius: 10px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: var(--box-shadow); +} + +.thumbs-container img{ + width: 50px; + height: 35px; + margin: 0 5px; + border-radius: 5px; + cursor: pointer; +} + +.swiper-slide-thumb-active{ + border: 1px solid var(--white-color); +} + +#visual { + width:100%; + height:100%; + animation: spin 30s linear infinite; +} + +@keyframes spin { + 100% { + transform: rotate(360deg); + } +} + +#visual2 { + width:100%; + height:100%; + animation: spin2 30s linear infinite; +} + +@keyframes spin2 { + 100% { + transform: rotate(-360deg); + } +} + +/*======= Media icons =======*/ +.media-icons{ + z-index: 999; + position: absolute; + display: flex; + flex-direction: column; + top: 50%; + transform: translateY(-50%); + margin-left: 90px; +} + +.media-icons a{ + color: var(--white-color); + font-size: 1.7em; + margin: 10px 0; +} + +/*======= About section =======*/ +.about h2{ + font-size: 3em; + font-weight: 600; +} + +.about p{ + margin: 25px 0; +} + +/*======= Media queries (max-width: 1100px) =======*/ +@media screen and (max-width: 1100px){ + header .nav-bar{ + padding: 0 50px; + } + + .section{ + padding: 25px 50px; + } + + .media-icons{ + right: 0; + margin-right: 50px; + } + + .swiper-slide .text-content{ + margin: 0 120px 0 50px; + } + + .bg-slider-thumbs{ + bottom: 3em; + } +} + +/*======= Media queries (max-width: 900px) =======*/ +@media screen and (max-width: 900px){ + header .nav-bar{ + padding: 25px 20px; + } + + .section{ + padding: 25px 20px; + } + + .media-icons{ + margin-right: 20px; + } + + .media-icons a{ + font-size: 1.5em; + } + + .swiper-slide .text-content{ + margin: 0 70px 0 20px; + } + + .swiper-slide .text-content .title{ + font-size: 2em; + } + + .swiper-slide .text-content .title span{ + font-size: 0.35em; + } + + .swiper-slide .text-content p{ + font-size: 0.7em; + } + + /*======= Navigation menu =======*/ + .nav-menu-btn{ + display: block; + color: var(--white-color); + font-size: 1.5em; + cursor: pointer; + } + + .nav-close-btn{ + display: block; + color: var(--white-color); + position: absolute; + top: 0; + right: 0; + font-size: 1.3em; + margin: 10px; + cursor: pointer; + transition: 0.3s ease; + } + + .navigation{ + z-index: 99999; + position: fixed; + width: 100%; + height: 100vh; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.25); + display: flex; + justify-content: center; + align-items: center; + visibility: hidden; + opacity: 0; + transition: 0.3s ease; + } + + .navigation.active{ + visibility: visible; + opacity: 1; + } + + .navigation .nav-items{ + position: relative; + background: var(--dark-color); + width: 400px; + max-width: 400px; + display: grid; + place-content: center; + margin: 20px; + padding: 40px; + border-radius: 20px; + box-shadow: var(--box-shadow); + transform: translateY(-200px); + transition: 0.3s ease; + } + + .navigation.active .nav-items{ + transform: translateY(0); + } + + .navigation .nav-items a{ + color: var(--white-color); + font-size: 1em; + margin: 15px 50px; + transition: 0.3s ease; + } + + .navigation .nav-items a:hover{ + color: var(--navigation-item-hover-color); + } + + .navigation .nav-items > a > i{ + display: inline-block; + font-size: 1.3em; + margin-right: 5px; + } + + .swiper-slide .text-content .read-btn{ + font-size: 0.9em; + padding: 5px 15px; + } + + /*======= About section =======*/ + .about h2{ + font-size: 2.5em; + } + + .about p{ + font-size: 0.9em; + } +} + + /*======= Features section =======*/ +#features { + background-image: url('/static/feature-back.svg'); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; + width:100%; +} + +.flex-container { + display: flex; + justify-content: space-around; + align-items: center; +} + +.flex-item1, +.flex-item4, +.flex-item5, +.flex-item8 { + border: 2px; + border-radius: 15px; + margin:20px; + padding: 20px; + text-align: justify; + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + text-shadow: var(--text-shadow); + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: var(--box-shadow); +} + +.flex-item2, +.flex-item3, +.flex-item6, +.flex-item7 { + margin:20px; + width:40%; + flex-basis: 50%; + padding: 10px; + text-align: center; +} +/* +.flex-item-line{ + width: 25%; + height: 50px; + position: absolute; + border-bottom: 3px solid grey +}*/ + +.numbers { + margin:10px auto; + border-radius:50%; + height:150px; + width:150px; + text-align:center; + justify-content:center; + padding:30px; + font-size:40px; + background: rgb(255,153,0); + background: linear-gradient(45deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + box-shadow: var(--box-shadow); +} + +.marker { + display:none; +} + +@media screen and (max-width: 900px) { + .marker { + display: block; + } + .flex-item2, + .flex-item3, + .flex-item6, + .flex-item7 { + display: none; + } + .flex-item1, + .flex-item4, + .flex-item5, + .flex-item8 { + flex-basis: 75%; + font-size:0.8em; + width:100%; + } +} + + +/* ============== Footer ================ */ +.footer-flex { + display: flex; + flex-direction:row; + justify-content: space-around; + align-items: flex-end; + padding:20px; + font-weight:bold; +} +.logo-foot { + padding:20px; + margin:10px auto; +} +.copyright { + padding:20px; + margin:10px auto; +} +.follow { + padding:20px; + margin:10px auto; +} + +.flex { /*Flexbox for containers*/ + display: flex; + justify-content: center; + align-items: center; + text-align: center; +} + +.waves { + position:relative; + width: 100%; + height:auto; + margin-bottom:-7px; /*Fix for safari gap*/ + min-height:100px; + max-height:150px; +} + +.content { + position:relative; + height:20vh; + text-align:center; + background-color: rgba(255, 157, 0, 1); +} + +/* Animation */ + +.parallax > use { + animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite; +} +.parallax > use:nth-child(1) { + animation-delay: -2s; + animation-duration: 7s; +} +.parallax > use:nth-child(2) { + animation-delay: -3s; + animation-duration: 10s; +} +.parallax > use:nth-child(3) { + animation-delay: -4s; + animation-duration: 13s; +} +.parallax > use:nth-child(4) { + animation-delay: -5s; + animation-duration: 20s; +} +@keyframes move-forever { + 0% { + transform: translate3d(-90px,0,0); + } + 100% { + transform: translate3d(85px,0,0); + } +} +/*Shrinking for mobile*/ +@media (max-width: 768px) { + .waves { + height:40px; + min-height:40px; + } + .content { + height:30vh; + } + h1 { + font-size:24px; + } + .footer-flex { + flex-direction:column; + } + .logo-foot { + padding:10px; + margin:5px auto; + } + .copyright { + padding:10px; + margin:5px auto; + } + .follow { + padding:10px; + margin:5px auto; + } + .content { + height:45vh; + } +} + +.contact-items a{ + color: var(--white-color); + font-size: 1em; + text-decoration:none; + text-shadow: var(--text-shadow); +} + +.loader { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #fff; + margin:auto; + justify-content: center; + align-items: center; + transition: opacity 0.5s ease-in-out; + opacity: 1; +} + +.loader.hide { + opacity: 0.15; +} + +.loader3{ + position: relative; + width: 150px; + height: 20px; + top: 45%; + top: -webkit-calc(50% - 10px); + top: calc(50% - 10px); + left: 25%; + left: -webkit-calc(50% - 75px); + left: calc(50% - 75px); +} + +.loader3:after{ + content: "LOADING ..."; + color: #000; + font-weight: 200; + font-size: 16px; + position: absolute; + width: 100%; + height: 20px; + line-height: 20px; + left: 0; + top: 0; + background-color: #fff; + z-index: 1; +} + +.loader3:before{ + content: ""; + position: absolute; + background: linear-gradient(to right, #FF416C, #FFA63E); + top: -5px; + left: 0px; + height: 30px; + width: 0px; + z-index: 0; + opacity: 1; + -webkit-transform-origin: 100% 0%; + transform-origin: 100% 0% ; + -webkit-animation: loader3 3s ease-in-out infinite; + animation: loader3 3s ease-in-out infinite; +} + +@-webkit-keyframes loader3{ + 0%{width: 0px;} + 70%{width: 100%; opacity: 1;} + 90%{opacity: 0; width: 100%;} + 100%{opacity: 0;width: 0px;} +} + +@keyframes loader3{ + 0%{width: 0px;} + 70%{width: 100%; opacity: 1;} + 90%{opacity: 0; width: 100%;} + 100%{opacity: 0;width: 0px;} +} + +/*===== Admin Table ====*/ +.accordion { + background-color: #eee; + color: #444; + cursor: pointer; + padding: 10px; + margin:10px; + margin-left:30px; + width: 95%; + border: none; + text-align: left; + outline: none; + font-size: 20px; + transition: 0.4s; +} + +.active, .accordion:hover { + background-color: #ccc; +} + +.accordion:after { + content: '\002B'; + color: #777; + font-weight: bold; + float: right; + margin-left: 5px; +} + +.active:after { + content: "\2212"; +} + +.panel { + padding: 0 18px; + background-color: white; + max-height: 0; + font-size:14px; + overflow: hidden; + transition: max-height 0.2s ease-out; +} + +.my-div { + padding: 20px; + margin: 0 auto; + max-width: 100%; + text-align: center; + font-size: 14px; + color: #333; +} + +.flexbox { + display:flex; + flex-direction:row; + align-items:stretch; +} + +.flexbox1 { + width:25%; + margin:20px auto; +} + +.flexbox1 button { + background:white; + padding:5px; + width:100%; + align-items:left; + text-align:left; + font-weight:bold; + border-radius:10px; + border:none; + margin:10px; + cursor: pointer; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.flexbox2 { + width:80%; + margin:20px auto; +} + +.feed { + text-align: center; + padding:5px; + width:80%; + margin:10px auto; + line-height:300%; + border-radius: 30px; + border:solid green; + background: rgba(0, 255, 21, 0.3); + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.forminfo-admin { + display: flex; + flex-direction: column; + justify-content: start; + align-items: stretch; + align-content: stretch; + text-align: justify; + padding: 10px; + margin: 10px auto; + width:80%; + height: 85vh; + font-size: 15px; + border-radius: 20px; + background: #ffeab0; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); + position: -webkit-sticky; + position: sticky; + top: 80px; +} + +.flex-container { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-around; + align-items: center; + align-content: center; + font-size:1em; + padding:30px; +} + +.flex-items:nth-child(1) { + display: block; + flex-grow: 0; + flex-shrink: 1; + flex-basis: auto; + align-self: auto; + order: 0; + border: 2px; + border-radius: 10px; + background: linear-gradient(45deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + color:black; + width:20%; + padding: 5px; + text-align: center; + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.flex-items:nth-child(2) { + display: block; + flex-grow: 0; + flex-shrink: 1; + flex-basis: auto; + align-self: auto; + order: 0; + border: 2px; + border-radius: 10px; + background: linear-gradient(45deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + color:black; + width:20%; + padding: 5px; + text-align: center; + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.flex-items:nth-child(3) { + display: block; + flex-grow: 0; + flex-shrink: 1; + flex-basis: auto; + align-self: auto; + order: 0; + border: 2px; + border-radius: 10px; + background: linear-gradient(45deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + color:black; + width:25%; + padding: 5px; + text-align: center; + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.create { + border: none; + outline: none; + background: var(--white-color); + color: var(--dark-color); + font-size: 1.1em; + font-weight: 500; + display: flex; + align-items: center; + align-content: center; + margin: 10px auto; + padding: 10px; + border-radius: 10px; + cursor: pointer; + transform: scale(1); + transition: transform 0.3s ease-in-out; + text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.but1, +.but2, +.but3 { + margin:20px; + padding:10px; + width:100%; + text-decoration: none; +} + +.but1:hover { + transform: scale(1.1); +} +.but2:hover { + transform: scale(1.1); +} +.but3:hover { + transform: scale(1.1); +} +.but4:hover { + transform: scale(1.1); +} + +.create:hover { + transform: scale(1.1); + opacity: 1; +} + +.arrow { + transform: scale(1.5); + transition: transform 0.3s ease-out; +} + +.arrow:hover { + transform: scale(2); +} + +.flexsub { + display:flex; + flex-direction:row; + justify-content:space-between; + align-items: space-between; + font-size:0.8em; + padding-left:70px; + padding-right:100px; +} + +.navsub1 p { + margin:20px; + margin-bottom:5px; + top:500; + padding:5px; + text-align:center; + width:100%; + border-radius:20px; + border:solid; + border-color:#ffbb00; + font-weight:bold; + text-decoration: none; + opacity:0.7; +} + +.sub1 { + margin:20px; + margin-bottom:5px; + padding:10px; + width:100%; + border-radius:20px; + border:none; + font-weight:bold; + text-decoration: none; + background:#fff9cc; + transform: scale(1); + transition: transform 0.3s ease-in-out; +} + +.sub1:hover { + transform: scale(1.1); +} + +.qres { + display:flex; + flex-direction:row; + padding:20px; + margin:10px; + border:solid; + border-color:#ffbb00; + border-radius: 6px; +} +.qflex1 { + flex-basis:15%; +} +.qflex2 { + flex-basis:85%; +} + +.response { + padding:10px; + margin:5px; + border-radius:5px; + background:#fff9cc; +} + +.progressdiv { + width: 20%; + height: 100px; + border: 1px solid black; + border-radius: 5px; + background: linear-gradient(to top,#ffbb00 75%,white 50%,white 100%); +} + + +.flex-container-result { + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + font-size:0.9em; +} + +.flex-item1-result { + border: 2px; + border-radius: 10px; + background-color: #ff9900; + color:black; + margin:10px; + width:30%; + padding: 5px; + text-align: justify; + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.flex-item1-result a { + color:black; + text-decoration: none; +} + +.flex-item2-result { + border: 2px; + border-radius: 15px; + background-color: #00db21; + margin: 20px; + padding: 20px; + width: 30%; + text-align: justify; + box-shadow: 0 5px 25px rgb(0 0 0 / 50%); +} + +.flex-item2-result a { + color:black; + text-decoration: none; +} + +@media screen and (max-width: 768px) { + .flex-container-result { + flex-direction:column; + } + .flex-item1-result, + .flex-item2-result { + width:90%; + } + .flex-container { + flex-direction: column; + } + .flex-items:nth-child(1), + .flex-items:nth-child(2), + .flex-items:nth-child(3) { + width:80%; + } + + .flexbox { + flex-direction: column; + } + + .flexbox1 { + width:90%; + margin:10px auto; + } + + .flexbox2 { + width:100%; + margin:10px auto; + } + + .forminfo-admin { + padding: 10px; + margin: 10px auto; + margin-bottom:100px; + width:100%; + height: 100%; + font-size: 13px; + border-radius: 10px; + position:relative; + top: 80px; + } +} + +.flex-container-previous { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: center; + background: #ffeab0; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); + margin:30px; + border-radius:30px; +} + + .flex-item1-previous { + border: 2px; + border-radius: 15px; + background-color: light-gray; + color:black; + margin:10px; + padding: 20px; + text-align: center; +} + + .flex-item2-previous { + border: 2px; + border-radius: 15px; + background-color: light-gray; + color:black; + margin: 0px 30px; + padding:30px; + text-align: center; + } + +.flex-item1-previous a, +.flex-item2-previous a { + color:black; + text-decoration: none; +} + +@media screen and (max-width: 768px) { + .flex-item1-previous .flex-item2-previous { + flex-basis: 75%; + } +} + +/* Media query to adjust the div for smaller screens */ +@media screen and (max-width: 600px) { + .my-div { + max-width: 100%; + padding: 10px; + font-size: 14px; + } +} + +/* ================== Custom Assessment Form ======================== */ +/*.form-group { + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: stretch; + align-content: stretch; + margin: 20px; +} + +.form-group label { + padding:20px; + width: auto; +} + +.form-group textarea { + padding:20px; + width: 70%; + margin:30px auto; +}*/ +.add-btn { + margin:20px; + width:50px; + height:50px; + border-radius:50%; + background:linear-gradient(45deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + font-size:24px; + font-weight:bold; + border:none; + transform: scale(1); +} +.add-btn:hover { + transform: scale(1.1); +} + +.sub-btn { + margin:20px; + padding:10px; + background:rgba(0, 255, 0, 0.6); + font-size:20px; + font-weight:bold; + border:none; + border-radius: 10px; + transform: scale(1); +} +.sub-btn:hover { + transform: scale(1.1); +} + +.rst-btn { + margin:20px; + padding:10px; + border-radius:10px; + background:yellow; + font-size:20px; + font-weight:bold; + border:none; + transform: scale(1); +} +.rst-btn:hover { + transform: scale(1.1); +} + +.rel-btn { + margin:20px; + padding:10px; + border-radius:10px; + background: #ffa200; + font-size:20px; + font-weight:bold; + border:none; + transform: scale(1); +} +.rel-btn:hover { + transform: scale(1.1); +} + +.remove-button { + padding:10px; + background:rgba(255, 0, 0, 0.6); + border:solid red; + font-weight:bold; + border-radius:10px; + transform: scale(0.9); + box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); +} + +.remove-button:hover { + transform: scale(1); +} + +#inputContainer select { + padding:5px; + margin:20px auto; + font-size:0.8em; + font-weight: 700; + text-indent: 5px; + max-width:250px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + width: 90%; + color: #353538; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + +#inputContainer option { + background: white; + text-indent: 5px; + spacing:20px; + font-size:1em; + font-weight: 700; +} + +.form-group { + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: stretch; + align-content: stretch; + text-align: justify; + margin: 20px auto; + border-radius: 30px; + padding:20px; +} + +.form-group label { + padding:30px; + width: auto; /* adjust as needed */ +} + +.form-group textarea { + padding:10px; + width: 80%; + margin:10px auto; + border-radius:10px; +} + +@media (max-width: 785px) { + .form-group { + margin:5px; + flex-wrap: wrap; + } + + label { + width: 100%; + margin-bottom: 5px; + } + + textarea { + width: 100%; + } +} + + +.formdiv { + padding: 20px; + margin: 10px auto; + max-width: 100%; + font-size: 18px; + color: #333; +} + +@media (max-width: 785px) { + .formdiv { + padding: 20px; + margin: 0 auto; + font-size: 14px; + } +} +.forminfo { + display: flex; + flex-direction: column; + justify-content: start; + align-items: stretch; + align-content: stretch; + text-align: justify; + padding: 20px; + margin:20px; + width:30%; + height: 80vh; + font-size: 14px; + border-radius: 20px; + background: #ffeab0; + position: -webkit-sticky; + position: sticky; + top: 80px; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.forminfo input { + margin:20px auto; +} +.forminfo label { + padding:10px; + margin:10px; + width: auto; +} +.forminfo textarea { + padding:10px; + width: 70%; + margin:10px auto; + margin-top:30px; +} + +.form-ques { + width:80%; +} +.form-ques label { + padding:10px; + margin:10px auto; + width: auto; /* adjust as needed */ +} + +.form-ques textarea { + padding:10px; + width: 50%; + margin:20px auto; + padding:10px; + border-radius:10px; + background: #ffebb5; +} + +.container { + display: flex; + justify-content: space-around; + flex-direction: row; + padding:20px; + margin:20px; +} + +.namearea { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: normal; + align-items: center; + align-content: stretch; +} + +.labelarea { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: normal; + align-items: center; + align-content: stretch; +} + + +@media (max-width: 785px) { + .forminfo { + padding: 10px; + margin: 0 auto; + font-size: 12px; + } + .forminfo input { + margin:5px auto; + } + .forminfo label { + padding:5px; + margin:5px; + width: auto; + } + .forminfo textarea { + padding:5px; + width: 70%; + margin:0px auto; + margin-top:15px; + } + .form-ques { + width:90%; + margin:5px auto; + } + + .forminfo { + padding: 10px; + margin: 10px auto; + margin-bottom:100px; + width:100%; + height: 100%; + font-size: 13px; + border-radius: 10px; + position:relative; + top: 80px; + } +} + +.drag { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + border-radius: 10px; + border:solid; + border-color:#ffbb00; + cursor: move; + transition: transform 0.2s ease-in-out; + background-size: 50% auto; + margin:15px auto; + padding:5px; + position: relative; + width:100%; + box-shadow: 0 5px 25px rgb(0 0 0 / 10%); +} +.drag::before { + content: ""; + display: block; + position: absolute; + top: 0; + left: 0; + width: 30%; + height: 100%; + background-color: transparent; /* set the color of the transparent portion */ +} + +.drag-enter { + opacity: 0; + transform: translateY(-100%); + transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; +} + +.drag-leave { + opacity: 1; + transform: scale(1) translateY(0); + transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; +} + +.drag-leave.zoom-out { + opacity: 0; + transform: scale(0.8) translateY(-20px); +} + +.drag:hover { + box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); +} + +.dragging { + opacity: 0.5; + transform: scale(1.05); +} +@media (max-width: 785px) { + .drag { + flex-direction: column; + } +} + + +/* ============ Verify Homepage link ======================= */ + +.homelink { + border: none; + outline: none; + background: var(--white-color); + color: var(--dark-color); + font-size: 1.1em; + font-weight: 500; + padding: 8px 25px; + display: flex; + align-items: center; + margin-top: 40px; + border-radius: 10px; + cursor: pointer; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +.homelink:hover { + transform: scale(1); + opacity: 1; +} + +#success { + display:none; + text-align: center; +} + +#failure { + display:none; + text-align: center; +} + +#success-svg{ + width: 500px; + height: 400px; + margin: 0 auto; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +#success-svg:hover { + transform: scale(1); + opacity: 1; +} + +svg { + width: 100%; + height: 100%; +} + +#failure-svg{ + width: 400px; + height: 400px; + margin: 0 auto; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +#failure-svg:hover { + transform: scale(1); + opacity: 1; +} + +@media (max-width: 785px) { + .homelink { + font-size: 1em; + } +} + + + +/* ================= Error Page ======================= */ +#notfound { + display:none; + text-align: center; + background-color: rgba(255, 0, 0, 0.7); + display:flex-center; + width:100%; + height:auto; + margin:auto; + max-height:500px; + max-width:500px; + margin:10px auto; + border-radius:50%; + text-align:center; +} + +#server { + display:none; + margin: 10px auto; + padding:20px; + max-height:400px; + max-width:700px; + text-align:center; +} + +#server p { + font-size: 45px; + text-align:center; +} + +@media (max-width: 785px) { + #server p { + font-size: 24px; + text-align:center; + } +} + +.checkdetail { + border: none; + outline: none; + background: var(--white-color); + color: var(--dark-color); + font-size: 1.1em; + font-weight: 500; + padding: 8px 25px; + display: flex; + align-items: center; + margin-top: 40px; + border-radius: 10px; + cursor: pointer; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +.checkdetail:hover { + transform: scale(1); + opacity: 1; +} + + +/* ================ Home Page ====================== */ +.body { + width:100%; + height:90vh; + background-image: url('/static/back-index.svg'); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; +} + +.radio-container { + display: flex; + flex-direction: column; + align-items: left; + justify-content: left; + padding-left:30%; + padding-right:30%; + gap: 10px; +} + +.radio-label { + border:solid; + border-color:#ff9900; + padding:10px; + display: flex; + align-items: center; + gap: 5px; + border-radius:10px; + cursor: pointer; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.radio-input { + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; + height: 20px; + width: 20px; + border-radius: 50%; + border: 2px solid #f1c40f; + outline: none; + cursor: pointer; +} + +@media (max-width: 785px) { + .radio-container { + padding-left:5%; + padding-right:5%; + } +} + +.radio-input:checked { + background-color: #f1c40f; +} + +.radio-input:focus { + box-shadow: 0 0 0 2px #f1c40f; +} + +.radio-label:hover .radio-input { + border-color: #f39c12; +} + +.radio-label:hover .radio-input:checked { + background-color: #f39c12; +} + +.radio-label:hover .radio-input:focus { + box-shadow: 0 0 0 2px #f39c12; +} + +.radio-label:hover .radio-text { + color: #f39c12; +} + +.radio-text { + font-size: 16px; + font-weight: bold; + color: #f1c40f; +} + + +#select-wrapper select { + padding:15px; + margin:20px auto; + font-size:1em; + font-weight: 700; + text-indent: 5px; + width:90%; + max-width:450px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + width: 90%; + color: #353538; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + +#select-wrapper option { + background: white; + text-indent: 5px; + spacing:20px; + font-size:1em; + font-weight: 700; +} + +.takecheck { + border: none; + outline: none; + background: var(--white-color); + color: var(--dark-color); + font-size: 1.1em; + font-weight: 500; + display: flex; + justify-content:center; + align-items: center; + margin: 10px auto; + padding: 20px; + border-radius: 10px; + cursor: pointer; + transform: scale(1); + transition: transform 0.3s ease-in-out; +} + +.takecheck:hover { + transform: scale(1.1); + opacity: 1; +} + +.arrow { + display: inline-block; + transform: scale(1.5); + transition: transform 0.3s ease-out; +} + +.arrow:hover { + transform: scale(2); +} + +.check-mark { + color: green; +} + +#selector { + padding:30px; + margin:20px auto; +} + +#startContent { + padding:30px; + margin:20px auto; + font-size:1em; +} + +#startContent p { + padding:30px; + text-align:justify; + text-indent:10%; +} + +#select-wrapper { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + align-content: center; + margin: 20px; +} + +@media (max-width: 800px) { + #select-wrapper { + flex-direction: column; + justify-content: space-between; + } + #startContent { + padding:20px; + margin:20px auto; + font-size:0.8em; + } + #startContent p { + padding:20px; + } +} +/* =====================Feedback Form ================*/ +.feedback { + border: 2px; + border-radius: 15px; + margin:20px; + padding: 20px; + text-align: justify; + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + text-shadow: var(--text-shadow); + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: var(--box-shadow); +} +.feedback h2 { + font-size: 36px; + color: #222; + text-align: center; + margin: 50px 0; +} +.feedback form { + max-width: 600px; + margin: 0 auto; + padding: 20px; + background-color: #fff; + border-radius: 10px; + box-shadow: 0px 2px 10px rgba(0,0,0,0.1); +} +.feedback input[type=text], input[type=email], textarea { + width: 100%; + padding: 12px; + border: 1px solid #ccc; + border-radius: 4px; + resize: vertical; +} +.feedback label { + display: block; + margin-bottom: 10px; + font-size: 18px; + color: #555; +} +.feedback button[type=submit] { + background-color: #ffcc00; + color: #fff; + border: none; + margin:10px auto; + border-radius: 4px; + padding: 12px 20px; + cursor: pointer; + font-size: 18px; + margin-top: 20px; + transition: background-color 0.2s; +} +.feedback button[type=submit]:hover { + background-color: #f5b800; +} + +/* ====================== Form Page ==================== */ +.container { + display: flex; + justify-content: space-around; + flex-direction: row; + padding:20px; + margin:20px; +} + +.forminfo-form { + text-align: justify; + padding: 10px; + margin: 10px auto; + width:40%; + height: 85vh; + font-size: 14px; + border-radius: 10px; + background: #ffeab0; + position: -webkit-sticky; + position: sticky; + top: 80px; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.forminfo-form input { + margin:20px auto; +} +.forminfo-form label { + padding:10px; + margin:10px; + width: auto; +} +.forminfo-form textarea { + padding:10px; + width: 70%; + margin:0px auto; + margin-top:30px; +} + +.formquestions { + width:100%; +} + +.assess-group { + text-align: justify; + margin: 10px; + border-radius: 30px; + padding:10px; + width:100%; +} + +.assess-group label { + font-size:0.9rem; + padding:20px; + width: auto; /* adjust as needed */ +} + +.assess-group textarea { + background: #fff2cf; + padding:5px; + width: 80%; + height:70px; + margin:5px auto; + border-radius:6px; +} + +.seperate { + margin:20px auto; + border-radius: 10px; + border:solid; + border-color:#ffbb00; + padding:10px; + display:flex; + flex-direction:column; + align-items: stretch; + text-indent:20px; + position: relative; + width:90%; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.ribbon { + width: 150px; + height: 150px; + position: absolute; + top: 0px; + left: 10px; + overflow: hidden; + font-weight:800; +} + +.ribbon span { + position: absolute; + width: 50px; + height: 50px; + background: rgb(255,153,0); + background: linear-gradient(90deg, rgba(255,153,0,1) 0%, rgba(255,235,0,1) 100%, rgba(0,212,255,1) 100%); + top: 10px; + left: 0px; + text-align: center; + line-height: 50px; /* should be same as heigh */ + text-indent:-5%; + color: #000; + border-radius:50%; +} + + +.submitassess { + border: none; + outline: none; + background: green; + color: var(--dark-color); + font-size: 1.1em; + font-weight: 500; + display: flex; + align-items: center; + margin: 20px auto; + padding: 20px; + border-radius: 10px; + cursor: pointer; + transform: scale(0.9); + transition: transform 0.3s ease-in-out; +} + +.submitassess:hover { + transform: scale(1); + opacity: 0.8; +} + +@media (max-width: 785px) { + .container { + flex-direction:column; + padding:5px; + margin:5px; + } + + .assess-group { + margin:5px; + padding:5px; + flex-wrap: wrap; + } + + .seperate { + margin:15px auto; + border-radius: 10px; + padding:10px; + text-indent:10px; + width:100%; + } + + .seperate label { + width: 100%; + margin-bottom: 5px; + font-size:0.9em; + } + + .seperate textarea { + width: 100%; + } + + .forminfo-form { + padding: 10px; + margin: 10px auto; + margin-bottom:100px; + width:100%; + height: 100%; + font-size: 13px; + border-radius: 10px; + position:relative; + top: 80px; + } +} + + +/* ================== Login ================ */ +.log-container { + background-image: url('/static/login-back.svg'); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; + width:100%; +} +/* +.log-container::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: inherit; + filter: blur(5px); + z-index: -1; +}*/ + +.log-form { + position: relative; + z-index: 1; + backdrop-filter: blur(40px); + width: 100%; + max-width: 500px; + margin: 0; + padding: 5px; + margin:10px auto; + box-sizing: border-box; + border: solid 1px #DDD; + border-radius: 0.5em; + font-family: "Source Sans Pro", sans-serif; + text-shadow: var(--text-shadow); + box-shadow: var(--box-shadow); +} + +@media (max-width: 785px) { + .log-form { + max-width:350px; + } + .log-container { + background-size: contain; + } +} + +.log-form .svgContainer { + position: relative; + width: 150px; + height: 150px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; + pointer-events: none; +} + +.log-form .svgContainer div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.log-form .svgContainer .mySVG { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; +} + +.log-form .svgContainer-pass { + position: relative; + width: 150px; + height: 150px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; + pointer-events: none; +} + +.log-form .svgContainer-pass div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.log-form .svgContainer-pass .mySVG { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; +} + +.log-form .inputGroup { + margin: 0 auto; + padding: 0; + position: relative; +} + +.log-form .inputGroup:last-of-type { + margin-bottom: 0; +} + +.log-form label { + margin: 0 0 0px; + font-size: 1em; + color: black; + font-weight: 500; + font-family: inherit; +} + +.log-form input[type=email], form input[type=text], form input[type=password] { + display: block; + margin: 0 auto; + padding: 5px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + -webkit-appearance: none; + box-sizing: border-box; + width: 90%; + height: 30px; + font-size: 0.8em; + color: #353538; + font-weight: 500; + font-family: inherit; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + +.log-form input[type=email]:focus, form input[type=text]:focus, form input[type=password]:focus { + outline: none; + box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); + border: solid 2px #4eb8dd; +} + +.log-form button { + cursor:pointer; + margin: 20px auto; + background-color: #ffc629; + border: none; + border-radius: 4px; + width: 50%; + height: 40px; + font-size: 1.55em; + color: #FFF; + font-weight: 600; + font-family: inherit; + transition: background-color 0.2s ease-out; + transform: scale(1); + transition: transform 0.3s ease-in-out; +} + +.log-form button:hover { + transform: scale(1.1); + opacity:0.9; +} + +.log-form select { + margin: 0 auto; + padding: 10px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + box-sizing: border-box; + width: 90%; + height: 40px; + font-size: 0.9em; + color: #353538; + font-weight: 500; + font-family: inherit; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + + + +/* ================== Register ================ */ +.reg-container { + background-image: url('/static/login-back.svg'); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; + width:100%; +} +/* +.log-container::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: inherit; + filter: blur(5px); + z-index: -1; +}*/ + +.reg-form { + position: relative; + z-index: 1; + backdrop-filter: blur(40px); + width: 100%; + max-width: 500px; + margin: 0; + padding: 2.25em; + margin:20px auto; + box-sizing: border-box; + border: solid 1px #DDD; + border-radius: 0.5em; + font-family: "Source Sans Pro", sans-serif; +} + +@media (max-width: 785px) { + .reg-form { + max-width:350px; + } + .reg-container { + background-size: contain; + } +} + +.reg-form .svgContainer { + position: relative; + width: 150px; + height: 150px; + margin: 0 auto 1em; + border-radius: 50%; + background: none; + border: solid 2.5px #3A5E77; + overflow: hidden; + pointer-events: none; +} + +.reg-form .svgContainer div { + position: relative; + width: 100%; + height: 0; + overflow: hidden; + padding-bottom: 100%; +} + +.reg-form .svgContainer .mySVG { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + pointer-events: none; +} + +.reg-form .inputGroup { + margin: 0 0 2em; + padding: 0; + position: relative; +} + +.reg-form .inputGroup:last-of-type { + margin-bottom: 0; +} + +.reg-form label { + margin: 0 0 0px; + font-size: 1em; + color: black; + font-weight: 500; + font-family: inherit; +} + +.reg-form input[type=email], form input[type=text], form input[type=password] { + display: block; + margin: 0 auto; + padding: 5px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + -webkit-appearance: none; + box-sizing: border-box; + width: 90%; + height: 30px; + font-size: 1.1em; + color: #353538; + font-weight: 500; + font-family: inherit; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + +.reg-form input[type=email]:focus, form input[type=text]:focus, form input[type=password]:focus { + outline: none; + box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); + border: solid 2px #4eb8dd; +} + +.reg-form input[type=email], form input[type=text] { +/* padding: 14px 1em 0px;*/ +} + +.reg-form button { + cursor:pointer; + margin: 0 auto; + padding: px; + background-color: #ffc629; + border: none; + border-radius: 4px; + width: 50%; + height: 40px; + font-size: 1.55em; + color: #FFF; + font-weight: 600; + font-family: inherit; + transition: background-color 0.2s ease-out; + transform: scale(1); + transition: transform 0.3s ease-in-out; +} + +.reg-form button:hover { + transform: scale(1.1); + opacity:0.9; +} + +.reg-form select { + margin: 0 auto; + padding: 10px; + background-color: #ffebb5; + border: solid 2px #217093; + border-radius: 4px; + box-sizing: border-box; + width: 90%; + height: 40px; + font-size: 0.9em; + color: #353538; + font-weight: 500; + font-family: inherit; + transition: box-shadow 0.2s linear, border-color 0.25s ease-out; +} + +/* ================== Result Page =================== */ +.domains { + padding:20px; + margin:10px; + display:flex; + flex-direction: row; + flex-wrap: wrap; +} + +.each-domain { + width:45%; + padding:20px; + margin:20px auto; + background: #FFA733; + background: linear-gradient(to top right, #FFA733 0%, #ffc370 100%); + border:none; + border-radius:15px; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.each-domain .name{ + font-size:1.5em; + font-weight:bold; + text-align:center; + margin:10px; +} + +.each-domain .description{ + text-align:justify; + font-size:1em; +} + +.each-domain .average-score{ + background: white; + margin:10px auto; + width:90%; + border-radius: 15px;x + line-height:200%; + font-size:2em; + font-weight:900; + text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); +} + +.each-domain .suggestions-text{ + font-size:1em; + line-height: 200%; +} + +@media (max-width: 785px) { + .domains { + font-size:1em; + padding:10px; + margin:5px; + flex-direction: column; + flex-wrap: wrap; + } + .each-domain { + width:90%; + padding:10px; + margin:10px auto; + } + .each-domain .name{ + font-size:0.9em; + } + .each-domain .average-score{ + font-size:1.5em; + } + .each-domain .description{ + font-size:0.8em; + } + .each-domain .suggestions-text{ + font-size: 0.8em; + } +} + +.flexContainer { + display:flex; + flex-direction:row; + align-items:stretch; +} + +.flex1 { + width:30%; + margin:20px auto; +} + +.flex2 { + width:70%; + margin:20px auto; +} + +.forminfo-result { + display: flex; + flex-direction: column; + justify-content: start; + align-items: stretch; + align-content: stretch; + text-align: justify; + padding: 10px; + margin: 10px auto; + width:80%; + height: 85vh; + font-size: 0.9em;; + border-radius: 20px; + background: #ffeab0; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); + position: -webkit-sticky; + position: sticky; + top: 80px; +} + +.chart { + padding:10px; + margin:20px auto; + width:95%; + border-radius:20px; + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.text-content1 { + padding:20px; + margin:20px auto; + text-indent:10%; +} + +.text-content-congo { + text-align: center; + padding:5px; + width:80%; + margin:10px auto; + line-height:300%; + border-radius: 30px; + border:solid green; + background: rgba(0, 255, 21, 0.3); + box-shadow: 0 5px 25px rgb(0 0 0 / 20%); +} + +.text-content-end { + border: 2px; + border-radius: 15px; + margin:20px; + padding: 20px; + text-align: center; + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + text-shadow: var(--text-shadow); + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: var(--box-shadow); +} + +.happy-score{ + border:solid green; + background: rgba(0, 255, 21, 0.3); + margin:10px auto; + width:60%; + line-height:200%; + border-radius: 15px; + text-align:center; + font-size:2.5em; + font-weight:900; + text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); +} + +.caption { + position: relative; + width: 100%; + text-align: center; + padding: 10px; + margin: 0; +} + +@media (max-width: 785px) { + .flexContainer { + flex-direction: column; + } + + .flex1 { + width:90%; + margin:10px auto; + } + + .flex2 { + width:100%; + margin:10px auto; + } + + .forminfo-result { + padding: 10px; + margin: 10px auto; + margin-bottom:100px; + width:100%; + height: 100%; + font-size: 13px; + border-radius: 10px; + position:relative; + top: 80px; + } +} + +/* =============== Forgot Password ==============*/ +.forgot1 { + width:50%; + margin:20px auto; + padding:20px; + align-content:center; + border:solid; + border-color:#ffbb00; +} + +.verify { + padding:10px; + margin:10px auto; + align-content:center; + text-align:center; + font-weight:bold; + background:lightblue; + border:none; + border-radius:10px; + transform: scale(1); + transition: transform 0.3s ease-in-out; +} + +.verify:hover { + transform: scale(1.1); +} + + +#success-svg-pass{ + width: 500px; + height: 400px; + margin: 0 auto; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +#success-svg-pass:hover { + transform: scale(1); + opacity: 1; +} + +#failure-svg-pass{ + width: 400px; + height: 400px; + margin: 0 auto; + transform: scale(0.8); + transition: transform 0.3s ease-in-out; +} + +#failure-svg-pass:hover { + transform: scale(1); + opacity: 1; +} + +.verify-pass { + width:40%; + padding:20px; + margin:20px auto; + align-content:center; + border:solid; + border-color:#ffbb00; +} \ No newline at end of file diff --git a/static/css/swiper-bundle.min.css b/static/css/swiper-bundle.min.css new file mode 100644 index 0000000000000000000000000000000000000000..bad5dabf0d2892c8dccee3784c661d9aa05ed01b --- /dev/null +++ b/static/css/swiper-bundle.min.css @@ -0,0 +1,13 @@ +/** + * Swiper 7.4.1 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * https://swiperjs.com + * + * Copyright 2014-2021 Vladimir Kharlampidi + * + * Released under the MIT License + * + * Released on: December 24, 2021 + */ + +@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;text-transform:none;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;animation:swiper-preloader-spin 1s infinite linear;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden} \ No newline at end of file diff --git a/static/email.html b/static/email.html new file mode 100644 index 0000000000000000000000000000000000000000..f35d5a23ebb1eef6fe4fb7d2a6749e09999b31e4 --- /dev/null +++ b/static/email.html @@ -0,0 +1,443 @@ + + + + + + + + + + + + Smile + + + + + + + + + + + +
SmileCheck 😄
+ + + + + + + + + + \ No newline at end of file diff --git a/static/error2.png b/static/error2.png new file mode 100644 index 0000000000000000000000000000000000000000..953e4c4a0fad4cb100544cc6f719557a517329cb Binary files /dev/null and b/static/error2.png differ diff --git a/static/error2.svg b/static/error2.svg new file mode 100644 index 0000000000000000000000000000000000000000..d1fae554e473ae4887dd2f0ac947d80290520d6d --- /dev/null +++ b/static/error2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/eye.png b/static/eye.png new file mode 100644 index 0000000000000000000000000000000000000000..f5328b0051e9fd78606c5fcd97c3945af338d8d0 Binary files /dev/null and b/static/eye.png differ diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..bbe09661a4b13a9c7926674293e4d95d865119a9 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/feature-back.svg b/static/feature-back.svg new file mode 100644 index 0000000000000000000000000000000000000000..58889c519ef3c4edbd6f3b101d8a83ab60682470 --- /dev/null +++ b/static/feature-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/footer.png b/static/footer.png new file mode 100644 index 0000000000000000000000000000000000000000..6058fe0c94d3ff3e9a5a18ebc18f6da6c4409a64 Binary files /dev/null and b/static/footer.png differ diff --git a/static/footer.svg b/static/footer.svg new file mode 100644 index 0000000000000000000000000000000000000000..28b4b5dcb819c9ce7e3a78b1853df37a828424d2 --- /dev/null +++ b/static/footer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/index-back.svg b/static/index-back.svg new file mode 100644 index 0000000000000000000000000000000000000000..031a40ee78d8f136e5b8e1989309da337f5c0fa4 --- /dev/null +++ b/static/index-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/index-backed.svg b/static/index-backed.svg new file mode 100644 index 0000000000000000000000000000000000000000..07f4cff60fb5462abff7eb55bac803fb14d1a735 --- /dev/null +++ b/static/index-backed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000000000000000000000000000000000000..0d47418dc6a47717a5033c7eb8f76892041719d7 --- /dev/null +++ b/static/js/main.js @@ -0,0 +1,84 @@ +//Swiper slider +var swiper = new Swiper(".bg-slider-thumbs", { + loop: true, + spaceBetween: 0, + slidesPerView: 0, +}); +var swiper2 = new Swiper(".bg-slider", { + loop: true, + spaceBetween: 0, + thumbs: { + swiper: swiper, + }, +}); + +//Navigation bar effects on scroll +window.addEventListener("scroll", function(){ + const header = document.querySelector("header"); + header.classList.toggle("sticky", window.scrollY > 0); +}); + +//Responsive navigation menu toggle +const menuBtn = document.querySelector(".nav-menu-btn"); +const closeBtn = document.querySelector(".nav-close-btn"); +const navigation = document.querySelector(".navigation"); + +menuBtn.addEventListener("click", () => { + navigation.classList.add("active"); +}); + +closeBtn.addEventListener("click", () => { + navigation.classList.remove("active"); +}); + +//Transition Jump anchor links +var jumpLink1 = document.getElementById("jump-link1"); + +jumpLink1.addEventListener("click", function(e) { + e.preventDefault(); + var target = document.querySelector(this.getAttribute("href")); + var targetOffset = target.offsetTop; + window.scrollTo({top: targetOffset, behavior: "smooth"}); +}); + +var jumpLink2 = document.getElementById("jump-link2"); + +jumpLink2.addEventListener("click", function(e) { + e.preventDefault(); + var target = document.querySelector(this.getAttribute("href")); + var targetOffset = target.offsetTop; + window.scrollTo({top: targetOffset, behavior: "smooth"}); +}); + +var jumpLink3 = document.getElementById("jump-link3"); + +jumpLink3.addEventListener("click", function(e) { + e.preventDefault(); + var target = document.querySelector(this.getAttribute("href")); + var targetOffset = target.offsetTop; + window.scrollTo({top: targetOffset, behavior: "smooth"}); +}); + +var jumpLink4 = document.getElementById("jump-link4"); + +jumpLink4.addEventListener("click", function(e) { + e.preventDefault(); + var target = document.querySelector(this.getAttribute("href")); + var targetOffset = target.offsetTop; + window.scrollTo({top: targetOffset, behavior: "smooth"}); +}); + +var inpt = document.getElementById("email-inpt"); + +inpt.addEventListener("focus", function() { + document.getElementById("contain-pass").style.display = "none"; + document.getElementById("contain-mail").style.display = "block"; +}); + +var pass = document.getElementById("pass-inpt"); + +pass.addEventListener("focus", function() { + document.getElementById("contain-pass").style.display = "block"; + document.getElementById("contain-mail").style.display = "none"; +}); + diff --git a/static/js/swiper-bundle.min.js b/static/js/swiper-bundle.min.js new file mode 100644 index 0000000000000000000000000000000000000000..c4bafcc529bb268d1e4b3a3e7c1013db69bdcd35 --- /dev/null +++ b/static/js/swiper-bundle.min.js @@ -0,0 +1,14 @@ +/** + * Swiper 7.4.1 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * https://swiperjs.com + * + * Copyright 2014-2021 Vladimir Kharlampidi + * + * Released under the MIT License + * + * Released on: December 24, 2021 + */ + +!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).Swiper = t() }(this, (function () { "use strict"; function e(e) { return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object } function t(s = {}, a = {}) { Object.keys(a).forEach((i => { void 0 === s[i] ? s[i] = a[i] : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]) })) } const s = { body: {}, addEventListener() { }, removeEventListener() { }, activeElement: { blur() { }, nodeName: "" }, querySelector: () => null, querySelectorAll: () => [], getElementById: () => null, createEvent: () => ({ initEvent() { } }), createElement: () => ({ children: [], childNodes: [], style: {}, setAttribute() { }, getElementsByTagName: () => [] }), createElementNS: () => ({}), importNode: () => null, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" } }; function a() { const e = "undefined" != typeof document ? document : {}; return t(e, s), e } const i = { document: s, navigator: { userAgent: "" }, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" }, history: { replaceState() { }, pushState() { }, go() { }, back() { } }, CustomEvent: function () { return this }, addEventListener() { }, removeEventListener() { }, getComputedStyle: () => ({ getPropertyValue: () => "" }), Image() { }, Date() { }, screen: {}, setTimeout() { }, clearTimeout() { }, matchMedia: () => ({}), requestAnimationFrame: e => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), cancelAnimationFrame(e) { "undefined" != typeof setTimeout && clearTimeout(e) } }; function r() { const e = "undefined" != typeof window ? window : {}; return t(e, i), e } class n extends Array { constructor(e) { super(...e || []), function (e) { const t = e.__proto__; Object.defineProperty(e, "__proto__", { get: () => t, set(e) { t.__proto__ = e } }) }(this) } } function l(e = []) { const t = []; return e.forEach((e => { Array.isArray(e) ? t.push(...l(e)) : t.push(e) })), t } function o(e, t) { return Array.prototype.filter.call(e, t) } function d(e, t) { const s = r(), i = a(); let l = []; if (!t && e instanceof n) return e; if (!e) return new n(l); if ("string" == typeof e) { const s = e.trim(); if (s.indexOf("<") >= 0 && s.indexOf(">") >= 0) { let e = "div"; 0 === s.indexOf(" e.split(" ")))); return this.forEach((e => { e.classList.add(...t) })), this }, removeClass: function (...e) { const t = l(e.map((e => e.split(" ")))); return this.forEach((e => { e.classList.remove(...t) })), this }, hasClass: function (...e) { const t = l(e.map((e => e.split(" ")))); return o(this, (e => t.filter((t => e.classList.contains(t))).length > 0)).length > 0 }, toggleClass: function (...e) { const t = l(e.map((e => e.split(" ")))); this.forEach((e => { t.forEach((t => { e.classList.toggle(t) })) })) }, attr: function (e, t) { if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; for (let s = 0; s < this.length; s += 1)if (2 === arguments.length) this[s].setAttribute(e, t); else for (const t in e) this[s][t] = e[t], this[s].setAttribute(t, e[t]); return this }, removeAttr: function (e) { for (let t = 0; t < this.length; t += 1)this[t].removeAttribute(e); return this }, transform: function (e) { for (let t = 0; t < this.length; t += 1)this[t].style.transform = e; return this }, transition: function (e) { for (let t = 0; t < this.length; t += 1)this[t].style.transitionDuration = "string" != typeof e ? `${e}ms` : e; return this }, on: function (...e) { let [t, s, a, i] = e; function r(e) { const t = e.target; if (!t) return; const i = e.target.dom7EventData || []; if (i.indexOf(e) < 0 && i.unshift(e), d(t).is(s)) a.apply(t, i); else { const e = d(t).parents(); for (let t = 0; t < e.length; t += 1)d(e[t]).is(s) && a.apply(e[t], i) } } function n(e) { const t = e && e.target && e.target.dom7EventData || []; t.indexOf(e) < 0 && t.unshift(e), a.apply(this, t) } "function" == typeof e[1] && ([t, a, i] = e, s = void 0), i || (i = !1); const l = t.split(" "); let o; for (let e = 0; e < this.length; e += 1) { const t = this[e]; if (s) for (o = 0; o < l.length; o += 1) { const e = l[o]; t.dom7LiveListeners || (t.dom7LiveListeners = {}), t.dom7LiveListeners[e] || (t.dom7LiveListeners[e] = []), t.dom7LiveListeners[e].push({ listener: a, proxyListener: r }), t.addEventListener(e, r, i) } else for (o = 0; o < l.length; o += 1) { const e = l[o]; t.dom7Listeners || (t.dom7Listeners = {}), t.dom7Listeners[e] || (t.dom7Listeners[e] = []), t.dom7Listeners[e].push({ listener: a, proxyListener: n }), t.addEventListener(e, n, i) } } return this }, off: function (...e) { let [t, s, a, i] = e; "function" == typeof e[1] && ([t, a, i] = e, s = void 0), i || (i = !1); const r = t.split(" "); for (let e = 0; e < r.length; e += 1) { const t = r[e]; for (let e = 0; e < this.length; e += 1) { const r = this[e]; let n; if (!s && r.dom7Listeners ? n = r.dom7Listeners[t] : s && r.dom7LiveListeners && (n = r.dom7LiveListeners[t]), n && n.length) for (let e = n.length - 1; e >= 0; e -= 1) { const s = n[e]; a && s.listener === a || a && s.listener && s.listener.dom7proxy && s.listener.dom7proxy === a ? (r.removeEventListener(t, s.proxyListener, i), n.splice(e, 1)) : a || (r.removeEventListener(t, s.proxyListener, i), n.splice(e, 1)) } } } return this }, trigger: function (...e) { const t = r(), s = e[0].split(" "), a = e[1]; for (let i = 0; i < s.length; i += 1) { const r = s[i]; for (let s = 0; s < this.length; s += 1) { const i = this[s]; if (t.CustomEvent) { const s = new t.CustomEvent(r, { detail: a, bubbles: !0, cancelable: !0 }); i.dom7EventData = e.filter(((e, t) => t > 0)), i.dispatchEvent(s), i.dom7EventData = [], delete i.dom7EventData } } } return this }, transitionEnd: function (e) { const t = this; return e && t.on("transitionend", (function s(a) { a.target === this && (e.call(this, a), t.off("transitionend", s)) })), this }, outerWidth: function (e) { if (this.length > 0) { if (e) { const e = this.styles(); return this[0].offsetWidth + parseFloat(e.getPropertyValue("margin-right")) + parseFloat(e.getPropertyValue("margin-left")) } return this[0].offsetWidth } return null }, outerHeight: function (e) { if (this.length > 0) { if (e) { const e = this.styles(); return this[0].offsetHeight + parseFloat(e.getPropertyValue("margin-top")) + parseFloat(e.getPropertyValue("margin-bottom")) } return this[0].offsetHeight } return null }, styles: function () { const e = r(); return this[0] ? e.getComputedStyle(this[0], null) : {} }, offset: function () { if (this.length > 0) { const e = r(), t = a(), s = this[0], i = s.getBoundingClientRect(), n = t.body, l = s.clientTop || n.clientTop || 0, o = s.clientLeft || n.clientLeft || 0, d = s === e ? e.scrollY : s.scrollTop, p = s === e ? e.scrollX : s.scrollLeft; return { top: i.top + d - l, left: i.left + p - o } } return null }, css: function (e, t) { const s = r(); let a; if (1 === arguments.length) { if ("string" != typeof e) { for (a = 0; a < this.length; a += 1)for (const t in e) this[a].style[t] = e[t]; return this } if (this[0]) return s.getComputedStyle(this[0], null).getPropertyValue(e) } if (2 === arguments.length && "string" == typeof e) { for (a = 0; a < this.length; a += 1)this[a].style[e] = t; return this } return this }, each: function (e) { return e ? (this.forEach(((t, s) => { e.apply(t, [t, s]) })), this) : this }, html: function (e) { if (void 0 === e) return this[0] ? this[0].innerHTML : null; for (let t = 0; t < this.length; t += 1)this[t].innerHTML = e; return this }, text: function (e) { if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; for (let t = 0; t < this.length; t += 1)this[t].textContent = e; return this }, is: function (e) { const t = r(), s = a(), i = this[0]; let l, o; if (!i || void 0 === e) return !1; if ("string" == typeof e) { if (i.matches) return i.matches(e); if (i.webkitMatchesSelector) return i.webkitMatchesSelector(e); if (i.msMatchesSelector) return i.msMatchesSelector(e); for (l = d(e), o = 0; o < l.length; o += 1)if (l[o] === i) return !0; return !1 } if (e === s) return i === s; if (e === t) return i === t; if (e.nodeType || e instanceof n) { for (l = e.nodeType ? [e] : e, o = 0; o < l.length; o += 1)if (l[o] === i) return !0; return !1 } return !1 }, index: function () { let e, t = this[0]; if (t) { for (e = 0; null !== (t = t.previousSibling);)1 === t.nodeType && (e += 1); return e } }, eq: function (e) { if (void 0 === e) return this; const t = this.length; if (e > t - 1) return d([]); if (e < 0) { const s = t + e; return d(s < 0 ? [] : [this[s]]) } return d([this[e]]) }, append: function (...e) { let t; const s = a(); for (let a = 0; a < e.length; a += 1) { t = e[a]; for (let e = 0; e < this.length; e += 1)if ("string" == typeof t) { const a = s.createElement("div"); for (a.innerHTML = t; a.firstChild;)this[e].appendChild(a.firstChild) } else if (t instanceof n) for (let s = 0; s < t.length; s += 1)this[e].appendChild(t[s]); else this[e].appendChild(t) } return this }, prepend: function (e) { const t = a(); let s, i; for (s = 0; s < this.length; s += 1)if ("string" == typeof e) { const a = t.createElement("div"); for (a.innerHTML = e, i = a.childNodes.length - 1; i >= 0; i -= 1)this[s].insertBefore(a.childNodes[i], this[s].childNodes[0]) } else if (e instanceof n) for (i = 0; i < e.length; i += 1)this[s].insertBefore(e[i], this[s].childNodes[0]); else this[s].insertBefore(e, this[s].childNodes[0]); return this }, next: function (e) { return this.length > 0 ? e ? this[0].nextElementSibling && d(this[0].nextElementSibling).is(e) ? d([this[0].nextElementSibling]) : d([]) : this[0].nextElementSibling ? d([this[0].nextElementSibling]) : d([]) : d([]) }, nextAll: function (e) { const t = []; let s = this[0]; if (!s) return d([]); for (; s.nextElementSibling;) { const a = s.nextElementSibling; e ? d(a).is(e) && t.push(a) : t.push(a), s = a } return d(t) }, prev: function (e) { if (this.length > 0) { const t = this[0]; return e ? t.previousElementSibling && d(t.previousElementSibling).is(e) ? d([t.previousElementSibling]) : d([]) : t.previousElementSibling ? d([t.previousElementSibling]) : d([]) } return d([]) }, prevAll: function (e) { const t = []; let s = this[0]; if (!s) return d([]); for (; s.previousElementSibling;) { const a = s.previousElementSibling; e ? d(a).is(e) && t.push(a) : t.push(a), s = a } return d(t) }, parent: function (e) { const t = []; for (let s = 0; s < this.length; s += 1)null !== this[s].parentNode && (e ? d(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode)); return d(t) }, parents: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { let a = this[s].parentNode; for (; a;)e ? d(a).is(e) && t.push(a) : t.push(a), a = a.parentNode } return d(t) }, closest: function (e) { let t = this; return void 0 === e ? d([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) }, find: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { const a = this[s].querySelectorAll(e); for (let e = 0; e < a.length; e += 1)t.push(a[e]) } return d(t) }, children: function (e) { const t = []; for (let s = 0; s < this.length; s += 1) { const a = this[s].children; for (let s = 0; s < a.length; s += 1)e && !d(a[s]).is(e) || t.push(a[s]) } return d(t) }, filter: function (e) { return d(o(this, e)) }, remove: function () { for (let e = 0; e < this.length; e += 1)this[e].parentNode && this[e].parentNode.removeChild(this[e]); return this } }; function c(e, t = 0) { return setTimeout(e, t) } function u() { return Date.now() } function h(e, t = "x") { const s = r(); let a, i, n; const l = function (e) { const t = r(); let s; return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s }(e); return s.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e => e.replace(",", "."))).join(", ")), n = new s.WebKitCSSMatrix("none" === i ? "" : i)) : (n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), a = n.toString().split(",")), "x" === t && (i = s.WebKitCSSMatrix ? n.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? n.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0 } function m(e) { return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) } function f(...e) { const t = Object(e[0]), s = ["__proto__", "constructor", "prototype"]; for (let i = 1; i < e.length; i += 1) { const r = e[i]; if (null != r && (a = r, !("undefined" != typeof window && void 0 !== window.HTMLElement ? a instanceof HTMLElement : a && (1 === a.nodeType || 11 === a.nodeType)))) { const e = Object.keys(Object(r)).filter((e => s.indexOf(e) < 0)); for (let s = 0, a = e.length; s < a; s += 1) { const a = e[s], i = Object.getOwnPropertyDescriptor(r, a); void 0 !== i && i.enumerable && (m(t[a]) && m(r[a]) ? r[a].__swiper__ ? t[a] = r[a] : f(t[a], r[a]) : !m(t[a]) && m(r[a]) ? (t[a] = {}, r[a].__swiper__ ? t[a] = r[a] : f(t[a], r[a])) : t[a] = r[a]) } } } var a; return t } function g(e, t, s) { e.style.setProperty(t, s) } function v({ swiper: e, targetPosition: t, side: s }) { const a = r(), i = -e.translate; let n, l = null; const o = e.params.speed; e.wrapperEl.style.scrollSnapType = "none", a.cancelAnimationFrame(e.cssModeFrameID); const d = t > i ? "next" : "prev", p = (e, t) => "next" === d && e >= t || "prev" === d && e <= t, c = () => { n = (new Date).getTime(), null === l && (l = n); const r = Math.max(Math.min((n - l) / o, 1), 0), d = .5 - Math.cos(r * Math.PI) / 2; let u = i + d * (t - i); if (p(u, t) && (u = t), e.wrapperEl.scrollTo({ [s]: u }), p(u, t)) return e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout((() => { e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({ [s]: u }) })), void a.cancelAnimationFrame(e.cssModeFrameID); e.cssModeFrameID = a.requestAnimationFrame(c) }; c() } let w, b, x; function y() { return w || (w = function () { const e = r(), t = a(); return { smoothScroll: t.documentElement && "scrollBehavior" in t.documentElement.style, touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch), passiveListener: function () { let t = !1; try { const s = Object.defineProperty({}, "passive", { get() { t = !0 } }); e.addEventListener("testPassiveListener", null, s) } catch (e) { } return t }(), gestures: "ongesturestart" in e } }()), w } function E(e = {}) { return b || (b = function ({ userAgent: e } = {}) { const t = y(), s = r(), a = s.navigator.platform, i = e || s.navigator.userAgent, n = { ios: !1, android: !1 }, l = s.screen.width, o = s.screen.height, d = i.match(/(Android);?[\s\/]+([\d.]+)?/); let p = i.match(/(iPad).*OS\s([\d_]+)/); const c = i.match(/(iPod)(.*OS\s([\d_]+))?/), u = !p && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = "Win32" === a; let m = "MacIntel" === a; return !p && m && t.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${l}x${o}`) >= 0 && (p = i.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), m = !1), d && !h && (n.os = "android", n.android = !0), (p || u || c) && (n.os = "ios", n.ios = !0), n }(e)), b } function T() { return x || (x = function () { const e = r(); return { isSafari: function () { const t = e.navigator.userAgent.toLowerCase(); return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0 }(), isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent) } }()), x } Object.keys(p).forEach((e => { Object.defineProperty(d.fn, e, { value: p[e], writable: !0 }) })); var C = { on(e, t, s) { const a = this; if ("function" != typeof t) return a; const i = s ? "unshift" : "push"; return e.split(" ").forEach((e => { a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t) })), a }, once(e, t, s) { const a = this; if ("function" != typeof t) return a; function i(...s) { a.off(e, i), i.__emitterProxy && delete i.__emitterProxy, t.apply(a, s) } return i.__emitterProxy = t, a.on(e, i, s) }, onAny(e, t) { const s = this; if ("function" != typeof e) return s; const a = t ? "unshift" : "push"; return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s }, offAny(e) { const t = this; if (!t.eventsAnyListeners) return t; const s = t.eventsAnyListeners.indexOf(e); return s >= 0 && t.eventsAnyListeners.splice(s, 1), t }, off(e, t) { const s = this; return s.eventsListeners ? (e.split(" ").forEach((e => { void 0 === t ? s.eventsListeners[e] = [] : s.eventsListeners[e] && s.eventsListeners[e].forEach(((a, i) => { (a === t || a.__emitterProxy && a.__emitterProxy === t) && s.eventsListeners[e].splice(i, 1) })) })), s) : s }, emit(...e) { const t = this; if (!t.eventsListeners) return t; let s, a, i; "string" == typeof e[0] || Array.isArray(e[0]) ? (s = e[0], a = e.slice(1, e.length), i = t) : (s = e[0].events, a = e[0].data, i = e[0].context || t), a.unshift(i); return (Array.isArray(s) ? s : s.split(" ")).forEach((e => { t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((t => { t.apply(i, [e, ...a]) })), t.eventsListeners && t.eventsListeners[e] && t.eventsListeners[e].forEach((e => { e.apply(i, a) })) })), t } }; function $({ swiper: e, runCallbacks: t, direction: s, step: a }) { const { activeIndex: i, previousIndex: r } = e; let n = s; if (n || (n = i > r ? "next" : i < r ? "prev" : "reset"), e.emit(`transition${a}`), t && i !== r) { if ("reset" === n) return void e.emit(`slideResetTransition${a}`); e.emit(`slideChangeTransition${a}`), "next" === n ? e.emit(`slideNextTransition${a}`) : e.emit(`slidePrevTransition${a}`) } } function S(e) { const t = this, s = a(), i = r(), n = t.touchEventsData, { params: l, touches: o, enabled: p } = t; if (!p) return; if (t.animating && l.preventInteractionOnTransition) return; !t.animating && l.cssMode && l.loop && t.loopFix(); let c = e; c.originalEvent && (c = c.originalEvent); let h = d(c.target); if ("wrapper" === l.touchEventsTarget && !h.closest(t.wrapperEl).length) return; if (n.isTouchEvent = "touchstart" === c.type, !n.isTouchEvent && "which" in c && 3 === c.which) return; if (!n.isTouchEvent && "button" in c && c.button > 0) return; if (n.isTouched && n.isMoved) return; !!l.noSwipingClass && "" !== l.noSwipingClass && c.target && c.target.shadowRoot && e.path && e.path[0] && (h = d(e.path[0])); const m = l.noSwipingSelector ? l.noSwipingSelector : `.${l.noSwipingClass}`, f = !(!c.target || !c.target.shadowRoot); if (l.noSwiping && (f ? function (e, t = this) { return function t(s) { return s && s !== a() && s !== r() ? (s.assignedSlot && (s = s.assignedSlot), s.closest(e) || t(s.getRootNode().host)) : null }(t) }(m, c.target) : h.closest(m)[0])) return void (t.allowClick = !0); if (l.swipeHandler && !h.closest(l.swipeHandler)[0]) return; o.currentX = "touchstart" === c.type ? c.targetTouches[0].pageX : c.pageX, o.currentY = "touchstart" === c.type ? c.targetTouches[0].pageY : c.pageY; const g = o.currentX, v = o.currentY, w = l.edgeSwipeDetection || l.iOSEdgeSwipeDetection, b = l.edgeSwipeThreshold || l.iOSEdgeSwipeThreshold; if (w && (g <= b || g >= i.innerWidth - b)) { if ("prevent" !== w) return; e.preventDefault() } if (Object.assign(n, { isTouched: !0, isMoved: !1, allowTouchCallbacks: !0, isScrolling: void 0, startMoving: void 0 }), o.startX = g, o.startY = v, n.touchStartTime = u(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, l.threshold > 0 && (n.allowThresholdMove = !1), "touchstart" !== c.type) { let e = !0; h.is(n.focusableElements) && (e = !1), s.activeElement && d(s.activeElement).is(n.focusableElements) && s.activeElement !== h[0] && s.activeElement.blur(); const a = e && t.allowTouchMove && l.touchStartPreventDefault; !l.touchStartForcePreventDefault && !a || h[0].isContentEditable || c.preventDefault() } t.emit("touchStart", c) } function M(e) { const t = a(), s = this, i = s.touchEventsData, { params: r, touches: n, rtlTranslate: l, enabled: o } = s; if (!o) return; let p = e; if (p.originalEvent && (p = p.originalEvent), !i.isTouched) return void (i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", p)); if (i.isTouchEvent && "touchmove" !== p.type) return; const c = "touchmove" === p.type && p.targetTouches && (p.targetTouches[0] || p.changedTouches[0]), h = "touchmove" === p.type ? c.pageX : p.pageX, m = "touchmove" === p.type ? c.pageY : p.pageY; if (p.preventedByNestedSwiper) return n.startX = h, void (n.startY = m); if (!s.allowTouchMove) return s.allowClick = !1, void (i.isTouched && (Object.assign(n, { startX: h, startY: m, currentX: h, currentY: m }), i.touchStartTime = u())); if (i.isTouchEvent && r.touchReleaseOnEdges && !r.loop) if (s.isVertical()) { if (m < n.startY && s.translate <= s.maxTranslate() || m > n.startY && s.translate >= s.minTranslate()) return i.isTouched = !1, void (i.isMoved = !1) } else if (h < n.startX && s.translate <= s.maxTranslate() || h > n.startX && s.translate >= s.minTranslate()) return; if (i.isTouchEvent && t.activeElement && p.target === t.activeElement && d(p.target).is(i.focusableElements)) return i.isMoved = !0, void (s.allowClick = !1); if (i.allowTouchCallbacks && s.emit("touchMove", p), p.targetTouches && p.targetTouches.length > 1) return; n.currentX = h, n.currentY = m; const f = n.currentX - n.startX, g = n.currentY - n.startY; if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return; if (void 0 === i.isScrolling) { let e; s.isHorizontal() && n.currentY === n.startY || s.isVertical() && n.currentX === n.startX ? i.isScrolling = !1 : f * f + g * g >= 25 && (e = 180 * Math.atan2(Math.abs(g), Math.abs(f)) / Math.PI, i.isScrolling = s.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle) } if (i.isScrolling && s.emit("touchMoveOpposite", p), void 0 === i.startMoving && (n.currentX === n.startX && n.currentY === n.startY || (i.startMoving = !0)), i.isScrolling) return void (i.isTouched = !1); if (!i.startMoving) return; s.allowClick = !1, !r.cssMode && p.cancelable && p.preventDefault(), r.touchMoveStopPropagation && !r.nested && p.stopPropagation(), i.isMoved || (r.loop && !r.cssMode && s.loopFix(), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating && s.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !r.grabCursor || !0 !== s.allowSlideNext && !0 !== s.allowSlidePrev || s.setGrabCursor(!0), s.emit("sliderFirstMove", p)), s.emit("sliderMove", p), i.isMoved = !0; let v = s.isHorizontal() ? f : g; n.diff = v, v *= r.touchRatio, l && (v = -v), s.swipeDirection = v > 0 ? "prev" : "next", i.currentTranslate = v + i.startTranslate; let w = !0, b = r.resistanceRatio; if (r.touchReleaseOnEdges && (b = 0), v > 0 && i.currentTranslate > s.minTranslate() ? (w = !1, r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** b)) : v < 0 && i.currentTranslate < s.maxTranslate() && (w = !1, r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** b)), w && (p.preventedByNestedSwiper = !0), !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), r.threshold > 0) { if (!(Math.abs(v) > r.threshold || i.allowThresholdMove)) return void (i.currentTranslate = i.startTranslate); if (!i.allowThresholdMove) return i.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, i.currentTranslate = i.startTranslate, void (n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY) } r.followFinger && !r.cssMode && ((r.freeMode && r.freeMode.enabled && s.freeMode || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), s.params.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)) } function P(e) { const t = this, s = t.touchEventsData, { params: a, touches: i, rtlTranslate: r, slidesGrid: n, enabled: l } = t; if (!l) return; let o = e; if (o.originalEvent && (o = o.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", o), s.allowTouchCallbacks = !1, !s.isTouched) return s.isMoved && a.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, void (s.startMoving = !1); a.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); const d = u(), p = d - s.touchStartTime; if (t.allowClick) { const e = o.path || o.composedPath && o.composedPath(); t.updateClickedSlide(e && e[0] || o.target), t.emit("tap click", o), p < 300 && d - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", o) } if (s.lastClickTime = u(), c((() => { t.destroyed || (t.allowClick = !0) })), !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === i.diff || s.currentTranslate === s.startTranslate) return s.isTouched = !1, s.isMoved = !1, void (s.startMoving = !1); let h; if (s.isTouched = !1, s.isMoved = !1, s.startMoving = !1, h = a.followFinger ? r ? t.translate : -t.translate : -s.currentTranslate, a.cssMode) return; if (t.params.freeMode && a.freeMode.enabled) return void t.freeMode.onTouchEnd({ currentPos: h }); let m = 0, f = t.slidesSizesGrid[0]; for (let e = 0; e < n.length; e += e < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { const t = e < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; void 0 !== n[e + t] ? h >= n[e] && h < n[e + t] && (m = e, f = n[e + t] - n[e]) : h >= n[e] && (m = e, f = n[n.length - 1] - n[n.length - 2]) } const g = (h - n[m]) / f, v = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; if (p > a.longSwipesMs) { if (!a.longSwipes) return void t.slideTo(t.activeIndex); "next" === t.swipeDirection && (g >= a.longSwipesRatio ? t.slideTo(m + v) : t.slideTo(m)), "prev" === t.swipeDirection && (g > 1 - a.longSwipesRatio ? t.slideTo(m + v) : t.slideTo(m)) } else { if (!a.shortSwipes) return void t.slideTo(t.activeIndex); t.navigation && (o.target === t.navigation.nextEl || o.target === t.navigation.prevEl) ? o.target === t.navigation.nextEl ? t.slideTo(m + v) : t.slideTo(m) : ("next" === t.swipeDirection && t.slideTo(m + v), "prev" === t.swipeDirection && t.slideTo(m)) } } function k() { const e = this, { params: t, el: s } = e; if (s && 0 === s.offsetWidth) return; t.breakpoints && e.setBreakpoint(); const { allowSlideNext: a, allowSlidePrev: i, snapGrid: r } = e; e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses(), ("auto" === t.slidesPerView || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.run(), e.allowSlidePrev = i, e.allowSlideNext = a, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow() } function z(e) { const t = this; t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))) } function O() { const e = this, { wrapperEl: t, rtlTranslate: s, enabled: a } = e; if (!a) return; let i; e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, -0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses(); const r = e.maxTranslate() - e.minTranslate(); i = 0 === r ? 0 : (e.translate - e.minTranslate()) / r, i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1) } let I = !1; function L() { } const A = (e, t) => { const s = a(), { params: i, touchEvents: r, el: n, wrapperEl: l, device: o, support: d } = e, p = !!i.nested, c = "on" === t ? "addEventListener" : "removeEventListener", u = t; if (d.touch) { const t = !("touchstart" !== r.start || !d.passiveListener || !i.passiveListeners) && { passive: !0, capture: !1 }; n[c](r.start, e.onTouchStart, t), n[c](r.move, e.onTouchMove, d.passiveListener ? { passive: !1, capture: p } : p), n[c](r.end, e.onTouchEnd, t), r.cancel && n[c](r.cancel, e.onTouchEnd, t) } else n[c](r.start, e.onTouchStart, !1), s[c](r.move, e.onTouchMove, p), s[c](r.end, e.onTouchEnd, !1); (i.preventClicks || i.preventClicksPropagation) && n[c]("click", e.onClick, !0), i.cssMode && l[c]("scroll", e.onScroll), i.updateOnWindowResize ? e[u](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", k, !0) : e[u]("observerUpdate", k, !0) }; const D = (e, t) => e.grid && t.grid && t.grid.rows > 1; var G = { init: !0, direction: "horizontal", touchEventsTarget: "wrapper", initialSlide: 0, speed: 300, cssMode: !1, updateOnWindowResize: !0, resizeObserver: !0, nested: !1, createElements: !1, enabled: !0, focusableElements: "input, select, option, textarea, button, video, label", width: null, height: null, preventInteractionOnTransition: !1, userAgent: null, url: null, edgeSwipeDetection: !1, edgeSwipeThreshold: 20, autoHeight: !1, setWrapperSize: !1, virtualTranslate: !1, effect: "slide", breakpoints: void 0, breakpointsBase: "window", spaceBetween: 0, slidesPerView: 1, slidesPerGroup: 1, slidesPerGroupSkip: 0, slidesPerGroupAuto: !1, centeredSlides: !1, centeredSlidesBounds: !1, slidesOffsetBefore: 0, slidesOffsetAfter: 0, normalizeSlideIndex: !0, centerInsufficientSlides: !1, watchOverflow: !0, roundLengths: !1, touchRatio: 1, touchAngle: 45, simulateTouch: !0, shortSwipes: !0, longSwipes: !0, longSwipesRatio: .5, longSwipesMs: 300, followFinger: !0, allowTouchMove: !0, threshold: 0, touchMoveStopPropagation: !1, touchStartPreventDefault: !0, touchStartForcePreventDefault: !1, touchReleaseOnEdges: !1, uniqueNavElements: !0, resistance: !0, resistanceRatio: .85, watchSlidesProgress: !1, grabCursor: !1, preventClicks: !0, preventClicksPropagation: !0, slideToClickedSlide: !1, preloadImages: !0, updateOnImagesReady: !0, loop: !1, loopAdditionalSlides: 0, loopedSlides: null, loopFillGroupWithBlank: !1, loopPreventsSlide: !0, rewind: !1, allowSlidePrev: !0, allowSlideNext: !0, swipeHandler: null, noSwiping: !0, noSwipingClass: "swiper-no-swiping", noSwipingSelector: null, passiveListeners: !0, containerModifierClass: "swiper-", slideClass: "swiper-slide", slideBlankClass: "swiper-slide-invisible-blank", slideActiveClass: "swiper-slide-active", slideDuplicateActiveClass: "swiper-slide-duplicate-active", slideVisibleClass: "swiper-slide-visible", slideDuplicateClass: "swiper-slide-duplicate", slideNextClass: "swiper-slide-next", slideDuplicateNextClass: "swiper-slide-duplicate-next", slidePrevClass: "swiper-slide-prev", slideDuplicatePrevClass: "swiper-slide-duplicate-prev", wrapperClass: "swiper-wrapper", runCallbacksOnInit: !0, _emitClasses: !1 }; function N(e, t) { return function (s = {}) { const a = Object.keys(s)[0], i = s[a]; "object" == typeof i && null !== i ? (["navigation", "pagination", "scrollbar"].indexOf(a) >= 0 && !0 === e[a] && (e[a] = { auto: !0 }), a in e && "enabled" in i ? (!0 === e[a] && (e[a] = { enabled: !0 }), "object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { enabled: !1 }), f(t, s)) : f(t, s)) : f(t, s) } } const B = { eventsEmitter: C, update: { updateSize: function () { const e = this; let t, s; const a = e.$el; t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a[0].clientWidth, s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a[0].clientHeight, 0 === t && e.isHorizontal() || 0 === s && e.isVertical() || (t = t - parseInt(a.css("padding-left") || 0, 10) - parseInt(a.css("padding-right") || 0, 10), s = s - parseInt(a.css("padding-top") || 0, 10) - parseInt(a.css("padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, { width: t, height: s, size: e.isHorizontal() ? t : s })) }, updateSlides: function () { const e = this; function t(t) { return e.isHorizontal() ? t : { width: "height", "margin-top": "margin-left", "margin-bottom ": "margin-right", "margin-left": "margin-top", "margin-right": "margin-bottom", "padding-left": "padding-top", "padding-right": "padding-bottom", marginRight: "marginBottom" }[t] } function s(e, s) { return parseFloat(e.getPropertyValue(t(s)) || 0) } const a = e.params, { $wrapperEl: i, size: r, rtlTranslate: n, wrongRTL: l } = e, o = e.virtual && a.virtual.enabled, d = o ? e.virtual.slides.length : e.slides.length, p = i.children(`.${e.params.slideClass}`), c = o ? e.virtual.slides.length : p.length; let u = []; const h = [], m = []; let f = a.slidesOffsetBefore; "function" == typeof f && (f = a.slidesOffsetBefore.call(e)); let v = a.slidesOffsetAfter; "function" == typeof v && (v = a.slidesOffsetAfter.call(e)); const w = e.snapGrid.length, b = e.slidesGrid.length; let x = a.spaceBetween, y = -f, E = 0, T = 0; if (void 0 === r) return; "string" == typeof x && x.indexOf("%") >= 0 && (x = parseFloat(x.replace("%", "")) / 100 * r), e.virtualSize = -x, n ? p.css({ marginLeft: "", marginBottom: "", marginTop: "" }) : p.css({ marginRight: "", marginBottom: "", marginTop: "" }), a.centeredSlides && a.cssMode && (g(e.wrapperEl, "--swiper-centered-offset-before", ""), g(e.wrapperEl, "--swiper-centered-offset-after", "")); const C = a.grid && a.grid.rows > 1 && e.grid; let $; C && e.grid.initSlides(c); const S = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter((e => void 0 !== a.breakpoints[e].slidesPerView)).length > 0; for (let i = 0; i < c; i += 1) { $ = 0; const n = p.eq(i); if (C && e.grid.updateSlide(i, n, c, t), "none" !== n.css("display")) { if ("auto" === a.slidesPerView) { S && (p[i].style[t("width")] = ""); const r = getComputedStyle(n[0]), l = n[0].style.transform, o = n[0].style.webkitTransform; if (l && (n[0].style.transform = "none"), o && (n[0].style.webkitTransform = "none"), a.roundLengths) $ = e.isHorizontal() ? n.outerWidth(!0) : n.outerHeight(!0); else { const e = s(r, "width"), t = s(r, "padding-left"), a = s(r, "padding-right"), i = s(r, "margin-left"), l = s(r, "margin-right"), o = r.getPropertyValue("box-sizing"); if (o && "border-box" === o) $ = e + i + l; else { const { clientWidth: s, offsetWidth: r } = n[0]; $ = e + t + a + i + l + (r - s) } } l && (n[0].style.transform = l), o && (n[0].style.webkitTransform = o), a.roundLengths && ($ = Math.floor($)) } else $ = (r - (a.slidesPerView - 1) * x) / a.slidesPerView, a.roundLengths && ($ = Math.floor($)), p[i] && (p[i].style[t("width")] = `${$}px`); p[i] && (p[i].swiperSlideSize = $), m.push($), a.centeredSlides ? (y = y + $ / 2 + E / 2 + x, 0 === E && 0 !== i && (y = y - r / 2 - x), 0 === i && (y = y - r / 2 - x), Math.abs(y) < .001 && (y = 0), a.roundLengths && (y = Math.floor(y)), T % a.slidesPerGroup == 0 && u.push(y), h.push(y)) : (a.roundLengths && (y = Math.floor(y)), (T - Math.min(e.params.slidesPerGroupSkip, T)) % e.params.slidesPerGroup == 0 && u.push(y), h.push(y), y = y + $ + x), e.virtualSize += $ + x, E = $, T += 1 } } if (e.virtualSize = Math.max(e.virtualSize, r) + v, n && l && ("slide" === a.effect || "coverflow" === a.effect) && i.css({ width: `${e.virtualSize + a.spaceBetween}px` }), a.setWrapperSize && i.css({ [t("width")]: `${e.virtualSize + a.spaceBetween}px` }), C && e.grid.updateWrapperSize($, u, t), !a.centeredSlides) { const t = []; for (let s = 0; s < u.length; s += 1) { let i = u[s]; a.roundLengths && (i = Math.floor(i)), u[s] <= e.virtualSize - r && t.push(i) } u = t, Math.floor(e.virtualSize - r) - Math.floor(u[u.length - 1]) > 1 && u.push(e.virtualSize - r) } if (0 === u.length && (u = [0]), 0 !== a.spaceBetween) { const s = e.isHorizontal() && n ? "marginLeft" : t("marginRight"); p.filter(((e, t) => !a.cssMode || t !== p.length - 1)).css({ [s]: `${x}px` }) } if (a.centeredSlides && a.centeredSlidesBounds) { let e = 0; m.forEach((t => { e += t + (a.spaceBetween ? a.spaceBetween : 0) })), e -= a.spaceBetween; const t = e - r; u = u.map((e => e < 0 ? -f : e > t ? t + v : e)) } if (a.centerInsufficientSlides) { let e = 0; if (m.forEach((t => { e += t + (a.spaceBetween ? a.spaceBetween : 0) })), e -= a.spaceBetween, e < r) { const t = (r - e) / 2; u.forEach(((e, s) => { u[s] = e - t })), h.forEach(((e, s) => { h[s] = e + t })) } } if (Object.assign(e, { slides: p, snapGrid: u, slidesGrid: h, slidesSizesGrid: m }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) { g(e.wrapperEl, "--swiper-centered-offset-before", -u[0] + "px"), g(e.wrapperEl, "--swiper-centered-offset-after", e.size / 2 - m[m.length - 1] / 2 + "px"); const t = -e.snapGrid[0], s = -e.slidesGrid[0]; e.snapGrid = e.snapGrid.map((e => e + t)), e.slidesGrid = e.slidesGrid.map((e => e + s)) } c !== d && e.emit("slidesLengthChange"), u.length !== w && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), h.length !== b && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset() }, updateAutoHeight: function (e) { const t = this, s = [], a = t.virtual && t.params.virtual.enabled; let i, r = 0; "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed); const n = e => a ? t.slides.filter((t => parseInt(t.getAttribute("data-swiper-slide-index"), 10) === e))[0] : t.slides.eq(e)[0]; if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) if (t.params.centeredSlides) t.visibleSlides.each((e => { s.push(e) })); else for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { const e = t.activeIndex + i; if (e > t.slides.length && !a) break; s.push(n(e)) } else s.push(n(t.activeIndex)); for (i = 0; i < s.length; i += 1)if (void 0 !== s[i]) { const e = s[i].offsetHeight; r = e > r ? e : r } (r || 0 === r) && t.$wrapperEl.css("height", `${r}px`) }, updateSlidesOffset: function () { const e = this, t = e.slides; for (let s = 0; s < t.length; s += 1)t[s].swiperSlideOffset = e.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop }, updateSlidesProgress: function (e = this && this.translate || 0) { const t = this, s = t.params, { slides: a, rtlTranslate: i, snapGrid: r } = t; if (0 === a.length) return; void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset(); let n = -e; i && (n = e), a.removeClass(s.slideVisibleClass), t.visibleSlidesIndexes = [], t.visibleSlides = []; for (let e = 0; e < a.length; e += 1) { const l = a[e]; let o = l.swiperSlideOffset; s.cssMode && s.centeredSlides && (o -= a[0].swiperSlideOffset); const d = (n + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), p = (n - r[0] + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), c = -(n - o), u = c + t.slidesSizesGrid[e]; (c >= 0 && c < t.size - 1 || u > 1 && u <= t.size || c <= 0 && u >= t.size) && (t.visibleSlides.push(l), t.visibleSlidesIndexes.push(e), a.eq(e).addClass(s.slideVisibleClass)), l.progress = i ? -d : d, l.originalProgress = i ? -p : p } t.visibleSlides = d(t.visibleSlides) }, updateProgress: function (e) { const t = this; if (void 0 === e) { const s = t.rtlTranslate ? -1 : 1; e = t && t.translate && t.translate * s || 0 } const s = t.params, a = t.maxTranslate() - t.minTranslate(); let { progress: i, isBeginning: r, isEnd: n } = t; const l = r, o = n; 0 === a ? (i = 0, r = !0, n = !0) : (i = (e - t.minTranslate()) / a, r = i <= 0, n = i >= 1), Object.assign(t, { progress: i, isBeginning: r, isEnd: n }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), r && !l && t.emit("reachBeginning toEdge"), n && !o && t.emit("reachEnd toEdge"), (l && !r || o && !n) && t.emit("fromEdge"), t.emit("progress", i) }, updateSlidesClasses: function () { const e = this, { slides: t, params: s, $wrapperEl: a, activeIndex: i, realIndex: r } = e, n = e.virtual && s.virtual.enabled; let l; t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`), l = n ? e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`) : t.eq(i), l.addClass(s.slideActiveClass), s.loop && (l.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass)); let o = l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass); s.loop && 0 === o.length && (o = t.eq(0), o.addClass(s.slideNextClass)); let d = l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass); s.loop && 0 === d.length && (d = t.eq(-1), d.addClass(s.slidePrevClass)), s.loop && (o.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass), d.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)), e.emitSlidesClasses() }, updateActiveIndex: function (e) { const t = this, s = t.rtlTranslate ? t.translate : -t.translate, { slidesGrid: a, snapGrid: i, params: r, activeIndex: n, realIndex: l, snapIndex: o } = t; let d, p = e; if (void 0 === p) { for (let e = 0; e < a.length; e += 1)void 0 !== a[e + 1] ? s >= a[e] && s < a[e + 1] - (a[e + 1] - a[e]) / 2 ? p = e : s >= a[e] && s < a[e + 1] && (p = e + 1) : s >= a[e] && (p = e); r.normalizeSlideIndex && (p < 0 || void 0 === p) && (p = 0) } if (i.indexOf(s) >= 0) d = i.indexOf(s); else { const e = Math.min(r.slidesPerGroupSkip, p); d = e + Math.floor((p - e) / r.slidesPerGroup) } if (d >= i.length && (d = i.length - 1), p === n) return void (d !== o && (t.snapIndex = d, t.emit("snapIndexChange"))); const c = parseInt(t.slides.eq(p).attr("data-swiper-slide-index") || p, 10); Object.assign(t, { snapIndex: d, realIndex: c, previousIndex: n, activeIndex: p }), t.emit("activeIndexChange"), t.emit("snapIndexChange"), l !== c && t.emit("realIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange") }, updateClickedSlide: function (e) { const t = this, s = t.params, a = d(e).closest(`.${s.slideClass}`)[0]; let i, r = !1; if (a) for (let e = 0; e < t.slides.length; e += 1)if (t.slides[e] === a) { r = !0, i = e; break } if (!a || !r) return t.clickedSlide = void 0, void (t.clickedIndex = void 0); t.clickedSlide = a, t.virtual && t.params.virtual.enabled ? t.clickedIndex = parseInt(d(a).attr("data-swiper-slide-index"), 10) : t.clickedIndex = i, s.slideToClickedSlide && void 0 !== t.clickedIndex && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide() } }, translate: { getTranslate: function (e = (this.isHorizontal() ? "x" : "y")) { const { params: t, rtlTranslate: s, translate: a, $wrapperEl: i } = this; if (t.virtualTranslate) return s ? -a : a; if (t.cssMode) return a; let r = h(i[0], e); return s && (r = -r), r || 0 }, setTranslate: function (e, t) { const s = this, { rtlTranslate: a, params: i, $wrapperEl: r, wrapperEl: n, progress: l } = s; let o, d = 0, p = 0; s.isHorizontal() ? d = a ? -e : e : p = e, i.roundLengths && (d = Math.floor(d), p = Math.floor(p)), i.cssMode ? n[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -d : -p : i.virtualTranslate || r.transform(`translate3d(${d}px, ${p}px, 0px)`), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? d : p; const c = s.maxTranslate() - s.minTranslate(); o = 0 === c ? 0 : (e - s.minTranslate()) / c, o !== l && s.updateProgress(e), s.emit("setTranslate", s.translate, t) }, minTranslate: function () { return -this.snapGrid[0] }, maxTranslate: function () { return -this.snapGrid[this.snapGrid.length - 1] }, translateTo: function (e = 0, t = this.params.speed, s = !0, a = !0, i) { const r = this, { params: n, wrapperEl: l } = r; if (r.animating && n.preventInteractionOnTransition) return !1; const o = r.minTranslate(), d = r.maxTranslate(); let p; if (p = a && e > o ? o : a && e < d ? d : e, r.updateProgress(p), n.cssMode) { const e = r.isHorizontal(); if (0 === t) l[e ? "scrollLeft" : "scrollTop"] = -p; else { if (!r.support.smoothScroll) return v({ swiper: r, targetPosition: -p, side: e ? "left" : "top" }), !0; l.scrollTo({ [e ? "left" : "top"]: -p, behavior: "smooth" }) } return !0 } return 0 === t ? (r.setTransition(0), r.setTranslate(p), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(p), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function (e) { r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, s && r.emit("transitionEnd")) }), r.$wrapperEl[0].addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd))), !0 } }, transition: { setTransition: function (e, t) { const s = this; s.params.cssMode || s.$wrapperEl.transition(e), s.emit("setTransition", e, t) }, transitionStart: function (e = !0, t) { const s = this, { params: a } = s; a.cssMode || (a.autoHeight && s.updateAutoHeight(), $({ swiper: s, runCallbacks: e, direction: t, step: "Start" })) }, transitionEnd: function (e = !0, t) { const s = this, { params: a } = s; s.animating = !1, a.cssMode || (s.setTransition(0), $({ swiper: s, runCallbacks: e, direction: t, step: "End" })) } }, slide: { slideTo: function (e = 0, t = this.params.speed, s = !0, a, i) { if ("number" != typeof e && "string" != typeof e) throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`); if ("string" == typeof e) { const t = parseInt(e, 10); if (!isFinite(t)) throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`); e = t } const r = this; let n = e; n < 0 && (n = 0); const { params: l, snapGrid: o, slidesGrid: d, previousIndex: p, activeIndex: c, rtlTranslate: u, wrapperEl: h, enabled: m } = r; if (r.animating && l.preventInteractionOnTransition || !m && !a && !i) return !1; const f = Math.min(r.params.slidesPerGroupSkip, n); let g = f + Math.floor((n - f) / r.params.slidesPerGroup); g >= o.length && (g = o.length - 1), (c || l.initialSlide || 0) === (p || 0) && s && r.emit("beforeSlideChangeStart"); const w = -o[g]; if (r.updateProgress(w), l.normalizeSlideIndex) for (let e = 0; e < d.length; e += 1) { const t = -Math.floor(100 * w), s = Math.floor(100 * d[e]), a = Math.floor(100 * d[e + 1]); void 0 !== d[e + 1] ? t >= s && t < a - (a - s) / 2 ? n = e : t >= s && t < a && (n = e + 1) : t >= s && (n = e) } if (r.initialized && n !== c) { if (!r.allowSlideNext && w < r.translate && w < r.minTranslate()) return !1; if (!r.allowSlidePrev && w > r.translate && w > r.maxTranslate() && (c || 0) !== n) return !1 } let b; if (b = n > c ? "next" : n < c ? "prev" : "reset", u && -w === r.translate || !u && w === r.translate) return r.updateActiveIndex(n), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== l.effect && r.setTranslate(w), "reset" !== b && (r.transitionStart(s, b), r.transitionEnd(s, b)), !1; if (l.cssMode) { const e = r.isHorizontal(), s = u ? w : -w; if (0 === t) { const t = r.virtual && r.params.virtual.enabled; t && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), h[e ? "scrollLeft" : "scrollTop"] = s, t && requestAnimationFrame((() => { r.wrapperEl.style.scrollSnapType = "", r._swiperImmediateVirtual = !1 })) } else { if (!r.support.smoothScroll) return v({ swiper: r, targetPosition: s, side: e ? "left" : "top" }), !0; h.scrollTo({ [e ? "left" : "top"]: s, behavior: "smooth" }) } return !0 } return r.setTransition(t), r.setTranslate(w), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(s, b), 0 === t ? r.transitionEnd(s, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function (e) { r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, b)) }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd)), !0 }, slideToLoop: function (e = 0, t = this.params.speed, s = !0, a) { const i = this; let r = e; return i.params.loop && (r += i.loopedSlides), i.slideTo(r, t, s, a) }, slideNext: function (e = this.params.speed, t = !0, s) { const a = this, { animating: i, enabled: r, params: n } = a; if (!r) return a; let l = n.slidesPerGroup; "auto" === n.slidesPerView && 1 === n.slidesPerGroup && n.slidesPerGroupAuto && (l = Math.max(a.slidesPerViewDynamic("current", !0), 1)); const o = a.activeIndex < n.slidesPerGroupSkip ? 1 : l; if (n.loop) { if (i && n.loopPreventsSlide) return !1; a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft } return n.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + o, e, t, s) }, slidePrev: function (e = this.params.speed, t = !0, s) { const a = this, { params: i, animating: r, snapGrid: n, slidesGrid: l, rtlTranslate: o, enabled: d } = a; if (!d) return a; if (i.loop) { if (r && i.loopPreventsSlide) return !1; a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft } function p(e) { return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) } const c = p(o ? a.translate : -a.translate), u = n.map((e => p(e))); let h = n[u.indexOf(c) - 1]; if (void 0 === h && i.cssMode) { let e; n.forEach(((t, s) => { c >= t && (e = s) })), void 0 !== e && (h = n[e > 0 ? e - 1 : e]) } let m = 0; return void 0 !== h && (m = l.indexOf(h), m < 0 && (m = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && (m = m - a.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && a.isBeginning ? a.slideTo(a.slides.length - 1, e, t, s) : a.slideTo(m, e, t, s) }, slideReset: function (e = this.params.speed, t = !0, s) { return this.slideTo(this.activeIndex, e, t, s) }, slideToClosest: function (e = this.params.speed, t = !0, s, a = .5) { const i = this; let r = i.activeIndex; const n = Math.min(i.params.slidesPerGroupSkip, r), l = n + Math.floor((r - n) / i.params.slidesPerGroup), o = i.rtlTranslate ? i.translate : -i.translate; if (o >= i.snapGrid[l]) { const e = i.snapGrid[l]; o - e > (i.snapGrid[l + 1] - e) * a && (r += i.params.slidesPerGroup) } else { const e = i.snapGrid[l - 1]; o - e <= (i.snapGrid[l] - e) * a && (r -= i.params.slidesPerGroup) } return r = Math.max(r, 0), r = Math.min(r, i.slidesGrid.length - 1), i.slideTo(r, e, t, s) }, slideToClickedSlide: function () { const e = this, { params: t, $wrapperEl: s } = e, a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView; let i, r = e.clickedIndex; if (t.loop) { if (e.animating) return; i = parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10), t.centeredSlides ? r < e.loopedSlides - a / 2 || r > e.slides.length - e.loopedSlides + a / 2 ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), c((() => { e.slideTo(r) }))) : e.slideTo(r) : r > e.slides.length - a ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), c((() => { e.slideTo(r) }))) : e.slideTo(r) } else e.slideTo(r) } }, loop: { loopCreate: function () { const e = this, t = a(), { params: s, $wrapperEl: i } = e, r = i.children().length > 0 ? d(i.children()[0].parentNode) : i; r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove(); let n = r.children(`.${s.slideClass}`); if (s.loopFillGroupWithBlank) { const e = s.slidesPerGroup - n.length % s.slidesPerGroup; if (e !== s.slidesPerGroup) { for (let a = 0; a < e; a += 1) { const e = d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`); r.append(e) } n = r.children(`.${s.slideClass}`) } } "auto" !== s.slidesPerView || s.loopedSlides || (s.loopedSlides = n.length), e.loopedSlides = Math.ceil(parseFloat(s.loopedSlides || s.slidesPerView, 10)), e.loopedSlides += s.loopAdditionalSlides, e.loopedSlides > n.length && (e.loopedSlides = n.length); const l = [], o = []; n.each(((t, s) => { const a = d(t); s < e.loopedSlides && o.push(t), s < n.length && s >= n.length - e.loopedSlides && l.push(t), a.attr("data-swiper-slide-index", s) })); for (let e = 0; e < o.length; e += 1)r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass)); for (let e = l.length - 1; e >= 0; e -= 1)r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass)) }, loopFix: function () { const e = this; e.emit("beforeLoopFix"); const { activeIndex: t, slides: s, loopedSlides: a, allowSlidePrev: i, allowSlideNext: r, snapGrid: n, rtlTranslate: l } = e; let o; e.allowSlidePrev = !0, e.allowSlideNext = !0; const d = -n[t] - e.getTranslate(); if (t < a) { o = s.length - 3 * a + t, o += a; e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) } else if (t >= s.length - a) { o = -s.length + t + a, o += a; e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) } e.allowSlidePrev = i, e.allowSlideNext = r, e.emit("loopFix") }, loopDestroy: function () { const { $wrapperEl: e, params: t, slides: s } = this; e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(), s.removeAttr("data-swiper-slide-index") } }, grabCursor: { setGrabCursor: function (e) { const t = this; if (t.support.touch || !t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return; const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; s.style.cursor = "move", s.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", s.style.cursor = e ? "-moz-grabbin" : "-moz-grab", s.style.cursor = e ? "grabbing" : "grab" }, unsetGrabCursor: function () { const e = this; e.support.touch || e.params.watchOverflow && e.isLocked || e.params.cssMode || (e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = "") } }, events: { attachEvents: function () { const e = this, t = a(), { params: s, support: i } = e; e.onTouchStart = S.bind(e), e.onTouchMove = M.bind(e), e.onTouchEnd = P.bind(e), s.cssMode && (e.onScroll = O.bind(e)), e.onClick = z.bind(e), i.touch && !I && (t.addEventListener("touchstart", L), I = !0), A(e, "on") }, detachEvents: function () { A(this, "off") } }, breakpoints: { setBreakpoint: function () { const e = this, { activeIndex: t, initialized: s, loopedSlides: a = 0, params: i, $el: r } = e, n = i.breakpoints; if (!n || n && 0 === Object.keys(n).length) return; const l = e.getBreakpoint(n, e.params.breakpointsBase, e.el); if (!l || e.currentBreakpoint === l) return; const o = (l in n ? n[l] : void 0) || e.originalParams, d = D(e, i), p = D(e, o), c = i.enabled; d && !p ? (r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && p && (r.addClass(`${i.containerModifierClass}grid`), (o.grid.fill && "column" === o.grid.fill || !o.grid.fill && "column" === i.grid.fill) && r.addClass(`${i.containerModifierClass}grid-column`), e.emitContainerClasses()); const u = o.direction && o.direction !== i.direction, h = i.loop && (o.slidesPerView !== i.slidesPerView || u); u && s && e.changeDirection(), f(e.params, o); const m = e.params.enabled; Object.assign(e, { allowTouchMove: e.params.allowTouchMove, allowSlideNext: e.params.allowSlideNext, allowSlidePrev: e.params.allowSlidePrev }), c && !m ? e.disable() : !c && m && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", o), h && s && (e.loopDestroy(), e.loopCreate(), e.updateSlides(), e.slideTo(t - a + e.loopedSlides, 0, !1)), e.emit("breakpoint", o) }, getBreakpoint: function (e, t = "window", s) { if (!e || "container" === t && !s) return; let a = !1; const i = r(), n = "window" === t ? i.innerHeight : s.clientHeight, l = Object.keys(e).map((e => { if ("string" == typeof e && 0 === e.indexOf("@")) { const t = parseFloat(e.substr(1)); return { value: n * t, point: e } } return { value: e, point: e } })); l.sort(((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10))); for (let e = 0; e < l.length; e += 1) { const { point: r, value: n } = l[e]; "window" === t ? i.matchMedia(`(min-width: ${n}px)`).matches && (a = r) : n <= s.clientWidth && (a = r) } return a || "max" } }, checkOverflow: { checkOverflow: function () { const e = this, { isLocked: t, params: s } = e, { slidesOffsetBefore: a } = s; if (a) { const t = e.slides.length - 1, s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a; e.isLocked = e.size > s } else e.isLocked = 1 === e.snapGrid.length; !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock") } }, classes: { addClasses: function () { const e = this, { classNames: t, params: s, rtl: a, $el: i, device: r, support: n } = e, l = function (e, t) { const s = []; return e.forEach((e => { "object" == typeof e ? Object.keys(e).forEach((a => { e[a] && s.push(t + a) })) : "string" == typeof e && s.push(t + e) })), s }(["initialized", s.direction, { "pointer-events": !n.touch }, { "free-mode": e.params.freeMode && s.freeMode.enabled }, { autoheight: s.autoHeight }, { rtl: a }, { grid: s.grid && s.grid.rows > 1 }, { "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill }, { android: r.android }, { ios: r.ios }, { "css-mode": s.cssMode }, { centered: s.cssMode && s.centeredSlides }], s.containerModifierClass); t.push(...l), i.addClass([...t].join(" ")), e.emitContainerClasses() }, removeClasses: function () { const { $el: e, classNames: t } = this; e.removeClass(t.join(" ")), this.emitContainerClasses() } }, images: { loadImage: function (e, t, s, a, i, n) { const l = r(); let o; function p() { n && n() } d(e).parent("picture")[0] || e.complete && i ? p() : t ? (o = new l.Image, o.onload = p, o.onerror = p, a && (o.sizes = a), s && (o.srcset = s), t && (o.src = t)) : p() }, preloadImages: function () { const e = this; function t() { null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) } e.imagesToLoad = e.$el.find("img"); for (let s = 0; s < e.imagesToLoad.length; s += 1) { const a = e.imagesToLoad[s]; e.loadImage(a, a.currentSrc || a.getAttribute("src"), a.srcset || a.getAttribute("srcset"), a.sizes || a.getAttribute("sizes"), !0, t) } } } }, X = {}; class H { constructor(...e) { let t, s; if (1 === e.length && e[0].constructor && "Object" === Object.prototype.toString.call(e[0]).slice(8, -1) ? s = e[0] : [t, s] = e, s || (s = {}), s = f({}, s), t && !s.el && (s.el = t), s.el && d(s.el).length > 1) { const e = []; return d(s.el).each((t => { const a = f({}, s, { el: t }); e.push(new H(a)) })), e } const a = this; a.__swiper__ = !0, a.support = y(), a.device = E({ userAgent: s.userAgent }), a.browser = T(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules); const i = {}; a.modules.forEach((e => { e({ swiper: a, extendParams: N(s, i), on: a.on.bind(a), once: a.once.bind(a), off: a.off.bind(a), emit: a.emit.bind(a) }) })); const r = f({}, G, i); return a.params = f({}, r, X, s), a.originalParams = f({}, a.params), a.passedParams = f({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((e => { a.on(e, a.params.on[e]) })), a.params && a.params.onAny && a.onAny(a.params.onAny), a.$ = d, Object.assign(a, { enabled: a.params.enabled, el: t, classNames: [], slides: d(), slidesGrid: [], snapGrid: [], slidesSizesGrid: [], isHorizontal: () => "horizontal" === a.params.direction, isVertical: () => "vertical" === a.params.direction, activeIndex: 0, realIndex: 0, isBeginning: !0, isEnd: !1, translate: 0, previousTranslate: 0, progress: 0, velocity: 0, animating: !1, allowSlideNext: a.params.allowSlideNext, allowSlidePrev: a.params.allowSlidePrev, touchEvents: function () { const e = ["touchstart", "touchmove", "touchend", "touchcancel"], t = ["pointerdown", "pointermove", "pointerup"]; return a.touchEventsTouch = { start: e[0], move: e[1], end: e[2], cancel: e[3] }, a.touchEventsDesktop = { start: t[0], move: t[1], end: t[2] }, a.support.touch || !a.params.simulateTouch ? a.touchEventsTouch : a.touchEventsDesktop }(), touchEventsData: { isTouched: void 0, isMoved: void 0, allowTouchCallbacks: void 0, touchStartTime: void 0, isScrolling: void 0, currentTranslate: void 0, startTranslate: void 0, allowThresholdMove: void 0, focusableElements: a.params.focusableElements, lastClickTime: u(), clickTimeout: void 0, velocities: [], allowMomentumBounce: void 0, isTouchEvent: void 0, startMoving: void 0 }, allowClick: !0, allowTouchMove: a.params.allowTouchMove, touches: { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0 }, imagesToLoad: [], imagesLoaded: 0 }), a.emit("_swiper"), a.params.init && a.init(), a } enable() { const e = this; e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable")) } disable() { const e = this; e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")) } setProgress(e, t) { const s = this; e = Math.min(Math.max(e, 0), 1); const a = s.minTranslate(), i = (s.maxTranslate() - a) * e + a; s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses() } emitContainerClasses() { const e = this; if (!e.params._emitClasses || !e.el) return; const t = e.el.className.split(" ").filter((t => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass))); e.emit("_containerClasses", t.join(" ")) } getSlideClasses(e) { const t = this; return e.className.split(" ").filter((e => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass))).join(" ") } emitSlidesClasses() { const e = this; if (!e.params._emitClasses || !e.el) return; const t = []; e.slides.each((s => { const a = e.getSlideClasses(s); t.push({ slideEl: s, classNames: a }), e.emit("_slideClass", s, a) })), e.emit("_slideClasses", t) } slidesPerViewDynamic(e = "current", t = !1) { const { params: s, slides: a, slidesGrid: i, slidesSizesGrid: r, size: n, activeIndex: l } = this; let o = 1; if (s.centeredSlides) { let e, t = a[l].swiperSlideSize; for (let s = l + 1; s < a.length; s += 1)a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)); for (let s = l - 1; s >= 0; s -= 1)a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)) } else if ("current" === e) for (let e = l + 1; e < a.length; e += 1) { (t ? i[e] + r[e] - i[l] < n : i[e] - i[l] < n) && (o += 1) } else for (let e = l - 1; e >= 0; e -= 1) { i[l] - i[e] < n && (o += 1) } return o } update() { const e = this; if (!e || e.destroyed) return; const { snapGrid: t, params: s } = e; function a() { const t = e.rtlTranslate ? -1 * e.translate : e.translate, s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses() } let i; s.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode && e.params.freeMode.enabled ? (a(), e.params.autoHeight && e.updateAutoHeight()) : (i = ("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), i || a()), s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") } changeDirection(e, t = !0) { const s = this, a = s.params.direction; return e || (e = "horizontal" === a ? "vertical" : "horizontal"), e === a || "horizontal" !== e && "vertical" !== e || (s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.each((t => { "vertical" === e ? t.style.width = "" : t.style.height = "" })), s.emit("changeDirection"), t && s.update()), s } mount(e) { const t = this; if (t.mounted) return !0; const s = d(e || t.params.el); if (!(e = s[0])) return !1; e.swiper = t; const i = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`; let r = (() => { if (e && e.shadowRoot && e.shadowRoot.querySelector) { const t = d(e.shadowRoot.querySelector(i())); return t.children = e => s.children(e), t } return s.children(i()) })(); if (0 === r.length && t.params.createElements) { const e = a().createElement("div"); r = d(e), e.className = t.params.wrapperClass, s.append(e), s.children(`.${t.params.slideClass}`).each((e => { r.append(e) })) } return Object.assign(t, { $el: s, el: e, $wrapperEl: r, wrapperEl: r[0], mounted: !0, rtl: "rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction"), rtlTranslate: "horizontal" === t.params.direction && ("rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction")), wrongRTL: "-webkit-box" === r.css("display") }), !0 } init(e) { const t = this; if (t.initialized) return t; return !1 === t.mount(e) || (t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.params.loop && t.loopCreate(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.preloadImages && t.preloadImages(), t.params.loop ? t.slideTo(t.params.initialSlide + t.loopedSlides, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.attachEvents(), t.initialized = !0, t.emit("init"), t.emit("afterInit")), t } destroy(e = !0, t = !0) { const s = this, { params: a, $el: i, $wrapperEl: r, slides: n } = s; return void 0 === s.params || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), t && (s.removeClasses(), i.removeAttr("style"), r.removeAttr("style"), n && n.length && n.removeClass([a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((e => { s.off(e) })), !1 !== e && (s.$el[0].swiper = null, function (e) { const t = e; Object.keys(t).forEach((e => { try { t[e] = null } catch (e) { } try { delete t[e] } catch (e) { } })) }(s)), s.destroyed = !0), null } static extendDefaults(e) { f(X, e) } static get extendedDefaults() { return X } static get defaults() { return G } static installModule(e) { H.prototype.__modules__ || (H.prototype.__modules__ = []); const t = H.prototype.__modules__; "function" == typeof e && t.indexOf(e) < 0 && t.push(e) } static use(e) { return Array.isArray(e) ? (e.forEach((e => H.installModule(e))), H) : (H.installModule(e), H) } } function Y(e, t, s, i) { const r = a(); return e.params.createElements && Object.keys(i).forEach((a => { if (!s[a] && !0 === s.auto) { let n = e.$el.children(`.${i[a]}`)[0]; n || (n = r.createElement("div"), n.className = i[a], e.$el.append(n)), s[a] = n, t[a] = n } })), s } function W(e = "") { return `.${e.trim().replace(/([\.:!\/])/g, "\\$1").replace(/ /g, ".")}` } function R(e) { const t = this, { $wrapperEl: s, params: a } = t; if (a.loop && t.loopDestroy(), "object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1)e[t] && s.append(e[t]); else s.append(e); a.loop && t.loopCreate(), a.observer || t.update() } function j(e) { const t = this, { params: s, $wrapperEl: a, activeIndex: i } = t; s.loop && t.loopDestroy(); let r = i + 1; if ("object" == typeof e && "length" in e) { for (let t = 0; t < e.length; t += 1)e[t] && a.prepend(e[t]); r = i + e.length } else a.prepend(e); s.loop && t.loopCreate(), s.observer || t.update(), t.slideTo(r, 0, !1) } function _(e, t) { const s = this, { $wrapperEl: a, params: i, activeIndex: r } = s; let n = r; i.loop && (n -= s.loopedSlides, s.loopDestroy(), s.slides = a.children(`.${i.slideClass}`)); const l = s.slides.length; if (e <= 0) return void s.prependSlide(t); if (e >= l) return void s.appendSlide(t); let o = n > e ? n + 1 : n; const d = []; for (let t = l - 1; t >= e; t -= 1) { const e = s.slides.eq(t); e.remove(), d.unshift(e) } if ("object" == typeof t && "length" in t) { for (let e = 0; e < t.length; e += 1)t[e] && a.append(t[e]); o = n > e ? n + t.length : n } else a.append(t); for (let e = 0; e < d.length; e += 1)a.append(d[e]); i.loop && s.loopCreate(), i.observer || s.update(), i.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1) } function V(e) { const t = this, { params: s, $wrapperEl: a, activeIndex: i } = t; let r = i; s.loop && (r -= t.loopedSlides, t.loopDestroy(), t.slides = a.children(`.${s.slideClass}`)); let n, l = r; if ("object" == typeof e && "length" in e) { for (let s = 0; s < e.length; s += 1)n = e[s], t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1); l = Math.max(l, 0) } else n = e, t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1), l = Math.max(l, 0); s.loop && t.loopCreate(), s.observer || t.update(), s.loop ? t.slideTo(l + t.loopedSlides, 0, !1) : t.slideTo(l, 0, !1) } function q() { const e = this, t = []; for (let s = 0; s < e.slides.length; s += 1)t.push(s); e.removeSlide(t) } function F(e) { const { effect: t, swiper: s, on: a, setTranslate: i, setTransition: r, overwriteParams: n, perspective: l } = e; a("beforeInit", (() => { if (s.params.effect !== t) return; s.classNames.push(`${s.params.containerModifierClass}${t}`), l && l() && s.classNames.push(`${s.params.containerModifierClass}3d`); const e = n ? n() : {}; Object.assign(s.params, e), Object.assign(s.originalParams, e) })), a("setTranslate", (() => { s.params.effect === t && i() })), a("setTransition", ((e, a) => { s.params.effect === t && r(a) })) } function U(e, t) { return e.transformEl ? t.find(e.transformEl).css({ "backface-visibility": "hidden", "-webkit-backface-visibility": "hidden" }) : t } function K({ swiper: e, duration: t, transformEl: s, allSlides: a }) { const { slides: i, activeIndex: r, $wrapperEl: n } = e; if (e.params.virtualTranslate && 0 !== t) { let t, l = !1; t = a ? s ? i.find(s) : i : s ? i.eq(r).find(s) : i.eq(r), t.transitionEnd((() => { if (l) return; if (!e || e.destroyed) return; l = !0, e.animating = !1; const t = ["webkitTransitionEnd", "transitionend"]; for (let e = 0; e < t.length; e += 1)n.trigger(t[e]) })) } } function Z(e, t, s) { const a = "swiper-slide-shadow" + (s ? `-${s}` : ""), i = e.transformEl ? t.find(e.transformEl) : t; let r = i.children(`.${a}`); return r.length || (r = d(`
`), i.append(r)), r } Object.keys(B).forEach((e => { Object.keys(B[e]).forEach((t => { H.prototype[t] = B[e][t] })) })), H.use([function ({ swiper: e, on: t, emit: s }) { const a = r(); let i = null; const n = () => { e && !e.destroyed && e.initialized && (s("beforeResize"), s("resize")) }, l = () => { e && !e.destroyed && e.initialized && s("orientationchange") }; t("init", (() => { e.params.resizeObserver && void 0 !== a.ResizeObserver ? e && !e.destroyed && e.initialized && (i = new ResizeObserver((t => { const { width: s, height: a } = e; let i = s, r = a; t.forEach((({ contentBoxSize: t, contentRect: s, target: a }) => { a && a !== e.el || (i = s ? s.width : (t[0] || t).inlineSize, r = s ? s.height : (t[0] || t).blockSize) })), i === s && r === a || n() })), i.observe(e.el)) : (a.addEventListener("resize", n), a.addEventListener("orientationchange", l)) })), t("destroy", (() => { i && i.unobserve && e.el && (i.unobserve(e.el), i = null), a.removeEventListener("resize", n), a.removeEventListener("orientationchange", l) })) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = [], n = r(), l = (e, t = {}) => { const s = new (n.MutationObserver || n.WebkitMutationObserver)((e => { if (1 === e.length) return void a("observerUpdate", e[0]); const t = function () { a("observerUpdate", e[0]) }; n.requestAnimationFrame ? n.requestAnimationFrame(t) : n.setTimeout(t, 0) })); s.observe(e, { attributes: void 0 === t.attributes || t.attributes, childList: void 0 === t.childList || t.childList, characterData: void 0 === t.characterData || t.characterData }), i.push(s) }; t({ observer: !1, observeParents: !1, observeSlideChildren: !1 }), s("init", (() => { if (e.params.observer) { if (e.params.observeParents) { const t = e.$el.parents(); for (let e = 0; e < t.length; e += 1)l(t[e]) } l(e.$el[0], { childList: e.params.observeSlideChildren }), l(e.$wrapperEl[0], { attributes: !1 }) } })), s("destroy", (() => { i.forEach((e => { e.disconnect() })), i.splice(0, i.length) })) }]); const J = [function ({ swiper: e, extendParams: t, on: s }) { let a; function i(t, s) { const a = e.params.virtual; if (a.cache && e.virtual.cache[s]) return e.virtual.cache[s]; const i = a.renderSlide ? d(a.renderSlide.call(e, t, s)) : d(`
${t}
`); return i.attr("data-swiper-slide-index") || i.attr("data-swiper-slide-index", s), a.cache && (e.virtual.cache[s] = i), i } function r(t) { const { slidesPerView: s, slidesPerGroup: a, centeredSlides: r } = e.params, { addSlidesBefore: n, addSlidesAfter: l } = e.params.virtual, { from: o, to: d, slides: p, slidesGrid: c, offset: u } = e.virtual; e.params.cssMode || e.updateActiveIndex(); const h = e.activeIndex || 0; let m, f, g; m = e.rtlTranslate ? "right" : e.isHorizontal() ? "left" : "top", r ? (f = Math.floor(s / 2) + a + l, g = Math.floor(s / 2) + a + n) : (f = s + (a - 1) + l, g = a + n); const v = Math.max((h || 0) - g, 0), w = Math.min((h || 0) + f, p.length - 1), b = (e.slidesGrid[v] || 0) - (e.slidesGrid[0] || 0); function x() { e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.lazy && e.params.lazy.enabled && e.lazy.load() } if (Object.assign(e.virtual, { from: v, to: w, offset: b, slidesGrid: e.slidesGrid }), o === v && d === w && !t) return e.slidesGrid !== c && b !== u && e.slides.css(m, `${b}px`), void e.updateProgress(); if (e.params.virtual.renderExternal) return e.params.virtual.renderExternal.call(e, { offset: b, from: v, to: w, slides: function () { const e = []; for (let t = v; t <= w; t += 1)e.push(p[t]); return e }() }), void (e.params.virtual.renderExternalUpdate && x()); const y = [], E = []; if (t) e.$wrapperEl.find(`.${e.params.slideClass}`).remove(); else for (let t = o; t <= d; t += 1)(t < v || t > w) && e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove(); for (let e = 0; e < p.length; e += 1)e >= v && e <= w && (void 0 === d || t ? E.push(e) : (e > d && E.push(e), e < o && y.push(e))); E.forEach((t => { e.$wrapperEl.append(i(p[t], t)) })), y.sort(((e, t) => t - e)).forEach((t => { e.$wrapperEl.prepend(i(p[t], t)) })), e.$wrapperEl.children(".swiper-slide").css(m, `${b}px`), x() } t({ virtual: { enabled: !1, slides: [], cache: !0, renderSlide: null, renderExternal: null, renderExternalUpdate: !0, addSlidesBefore: 0, addSlidesAfter: 0 } }), e.virtual = { cache: {}, from: void 0, to: void 0, slides: [], offset: 0, slidesGrid: [] }, s("beforeInit", (() => { e.params.virtual.enabled && (e.virtual.slides = e.params.virtual.slides, e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0, e.params.initialSlide || r()) })), s("setTranslate", (() => { e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(a), a = setTimeout((() => { r() }), 100)) : r()) })), s("init update resize", (() => { e.params.virtual.enabled && e.params.cssMode && g(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`) })), Object.assign(e.virtual, { appendSlide: function (t) { if ("object" == typeof t && "length" in t) for (let s = 0; s < t.length; s += 1)t[s] && e.virtual.slides.push(t[s]); else e.virtual.slides.push(t); r(!0) }, prependSlide: function (t) { const s = e.activeIndex; let a = s + 1, i = 1; if (Array.isArray(t)) { for (let s = 0; s < t.length; s += 1)t[s] && e.virtual.slides.unshift(t[s]); a = s + t.length, i = t.length } else e.virtual.slides.unshift(t); if (e.params.virtual.cache) { const t = e.virtual.cache, s = {}; Object.keys(t).forEach((e => { const a = t[e], r = a.attr("data-swiper-slide-index"); r && a.attr("data-swiper-slide-index", parseInt(r, 10) + i), s[parseInt(e, 10) + i] = a })), e.virtual.cache = s } r(!0), e.slideTo(a, 0) }, removeSlide: function (t) { if (null == t) return; let s = e.activeIndex; if (Array.isArray(t)) for (let a = t.length - 1; a >= 0; a -= 1)e.virtual.slides.splice(t[a], 1), e.params.virtual.cache && delete e.virtual.cache[t[a]], t[a] < s && (s -= 1), s = Math.max(s, 0); else e.virtual.slides.splice(t, 1), e.params.virtual.cache && delete e.virtual.cache[t], t < s && (s -= 1), s = Math.max(s, 0); r(!0), e.slideTo(s, 0) }, removeAllSlides: function () { e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), r(!0), e.slideTo(0, 0) }, update: r }) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { const n = a(), l = r(); function o(t) { if (!e.enabled) return; const { rtlTranslate: s } = e; let a = t; a.originalEvent && (a = a.originalEvent); const r = a.keyCode || a.charCode, o = e.params.keyboard.pageUpDown, d = o && 33 === r, p = o && 34 === r, c = 37 === r, u = 39 === r, h = 38 === r, m = 40 === r; if (!e.allowSlideNext && (e.isHorizontal() && u || e.isVertical() && m || p)) return !1; if (!e.allowSlidePrev && (e.isHorizontal() && c || e.isVertical() && h || d)) return !1; if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || n.activeElement && n.activeElement.nodeName && ("input" === n.activeElement.nodeName.toLowerCase() || "textarea" === n.activeElement.nodeName.toLowerCase()))) { if (e.params.keyboard.onlyInViewport && (d || p || c || u || h || m)) { let t = !1; if (e.$el.parents(`.${e.params.slideClass}`).length > 0 && 0 === e.$el.parents(`.${e.params.slideActiveClass}`).length) return; const a = e.$el, i = a[0].clientWidth, r = a[0].clientHeight, n = l.innerWidth, o = l.innerHeight, d = e.$el.offset(); s && (d.left -= e.$el[0].scrollLeft); const p = [[d.left, d.top], [d.left + i, d.top], [d.left, d.top + r], [d.left + i, d.top + r]]; for (let e = 0; e < p.length; e += 1) { const s = p[e]; if (s[0] >= 0 && s[0] <= n && s[1] >= 0 && s[1] <= o) { if (0 === s[0] && 0 === s[1]) continue; t = !0 } } if (!t) return } e.isHorizontal() ? ((d || p || c || u) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), ((p || u) && !s || (d || c) && s) && e.slideNext(), ((d || c) && !s || (p || u) && s) && e.slidePrev()) : ((d || p || h || m) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (p || m) && e.slideNext(), (d || h) && e.slidePrev()), i("keyPress", r) } } function p() { e.keyboard.enabled || (d(n).on("keydown", o), e.keyboard.enabled = !0) } function c() { e.keyboard.enabled && (d(n).off("keydown", o), e.keyboard.enabled = !1) } e.keyboard = { enabled: !1 }, t({ keyboard: { enabled: !1, onlyInViewport: !0, pageUpDown: !0 } }), s("init", (() => { e.params.keyboard.enabled && p() })), s("destroy", (() => { e.keyboard.enabled && c() })), Object.assign(e.keyboard, { enable: p, disable: c }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = r(); let n; t({ mousewheel: { enabled: !1, releaseOnEdges: !1, invert: !1, forceToAxis: !1, sensitivity: 1, eventsTarget: "container", thresholdDelta: null, thresholdTime: null } }), e.mousewheel = { enabled: !1 }; let l, o = u(); const p = []; function h() { e.enabled && (e.mouseEntered = !0) } function m() { e.enabled && (e.mouseEntered = !1) } function f(t) { return !(e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta) && (!(e.params.mousewheel.thresholdTime && u() - o < e.params.mousewheel.thresholdTime) && (t.delta >= 6 && u() - o < 60 || (t.direction < 0 ? e.isEnd && !e.params.loop || e.animating || (e.slideNext(), a("scroll", t.raw)) : e.isBeginning && !e.params.loop || e.animating || (e.slidePrev(), a("scroll", t.raw)), o = (new i.Date).getTime(), !1))) } function g(t) { let s = t, i = !0; if (!e.enabled) return; const r = e.params.mousewheel; e.params.cssMode && s.preventDefault(); let o = e.$el; if ("container" !== e.params.mousewheel.eventsTarget && (o = d(e.params.mousewheel.eventsTarget)), !e.mouseEntered && !o[0].contains(s.target) && !r.releaseOnEdges) return !0; s.originalEvent && (s = s.originalEvent); let h = 0; const m = e.rtlTranslate ? -1 : 1, g = function (e) { let t = 0, s = 0, a = 0, i = 0; return "detail" in e && (s = e.detail), "wheelDelta" in e && (s = -e.wheelDelta / 120), "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = s, s = 0), a = 10 * t, i = 10 * s, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (a = e.deltaX), e.shiftKey && !a && (a = i, i = 0), (a || i) && e.deltaMode && (1 === e.deltaMode ? (a *= 40, i *= 40) : (a *= 800, i *= 800)), a && !t && (t = a < 1 ? -1 : 1), i && !s && (s = i < 1 ? -1 : 1), { spinX: t, spinY: s, pixelX: a, pixelY: i } }(s); if (r.forceToAxis) if (e.isHorizontal()) { if (!(Math.abs(g.pixelX) > Math.abs(g.pixelY))) return !0; h = -g.pixelX * m } else { if (!(Math.abs(g.pixelY) > Math.abs(g.pixelX))) return !0; h = -g.pixelY } else h = Math.abs(g.pixelX) > Math.abs(g.pixelY) ? -g.pixelX * m : -g.pixelY; if (0 === h) return !0; r.invert && (h = -h); let v = e.getTranslate() + h * r.sensitivity; if (v >= e.minTranslate() && (v = e.minTranslate()), v <= e.maxTranslate() && (v = e.maxTranslate()), i = !!e.params.loop || !(v === e.minTranslate() || v === e.maxTranslate()), i && e.params.nested && s.stopPropagation(), e.params.freeMode && e.params.freeMode.enabled) { const t = { time: u(), delta: Math.abs(h), direction: Math.sign(h) }, i = l && t.time < l.time + 500 && t.delta <= l.delta && t.direction === l.direction; if (!i) { l = void 0, e.params.loop && e.loopFix(); let o = e.getTranslate() + h * r.sensitivity; const d = e.isBeginning, u = e.isEnd; if (o >= e.minTranslate() && (o = e.minTranslate()), o <= e.maxTranslate() && (o = e.maxTranslate()), e.setTransition(0), e.setTranslate(o), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!d && e.isBeginning || !u && e.isEnd) && e.updateSlidesClasses(), e.params.freeMode.sticky) { clearTimeout(n), n = void 0, p.length >= 15 && p.shift(); const s = p.length ? p[p.length - 1] : void 0, a = p[0]; if (p.push(t), s && (t.delta > s.delta || t.direction !== s.direction)) p.splice(0); else if (p.length >= 15 && t.time - a.time < 500 && a.delta - t.delta >= 1 && t.delta <= 6) { const s = h > 0 ? .8 : .2; l = t, p.splice(0), n = c((() => { e.slideToClosest(e.params.speed, !0, void 0, s) }), 0) } n || (n = c((() => { l = t, p.splice(0), e.slideToClosest(e.params.speed, !0, void 0, .5) }), 500)) } if (i || a("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), o === e.minTranslate() || o === e.maxTranslate()) return !0 } } else { const s = { time: u(), delta: Math.abs(h), direction: Math.sign(h), raw: t }; p.length >= 2 && p.shift(); const a = p.length ? p[p.length - 1] : void 0; if (p.push(s), a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && f(s) : f(s), function (t) { const s = e.params.mousewheel; if (t.direction < 0) { if (e.isEnd && !e.params.loop && s.releaseOnEdges) return !0 } else if (e.isBeginning && !e.params.loop && s.releaseOnEdges) return !0; return !1 }(s)) return !0 } return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1 } function v(t) { let s = e.$el; "container" !== e.params.mousewheel.eventsTarget && (s = d(e.params.mousewheel.eventsTarget)), s[t]("mouseenter", h), s[t]("mouseleave", m), s[t]("wheel", g) } function w() { return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", g), !0) : !e.mousewheel.enabled && (v("on"), e.mousewheel.enabled = !0, !0) } function b() { return e.params.cssMode ? (e.wrapperEl.addEventListener(event, g), !0) : !!e.mousewheel.enabled && (v("off"), e.mousewheel.enabled = !1, !0) } s("init", (() => { !e.params.mousewheel.enabled && e.params.cssMode && b(), e.params.mousewheel.enabled && w() })), s("destroy", (() => { e.params.cssMode && w(), e.mousewheel.enabled && b() })), Object.assign(e.mousewheel, { enable: w, disable: b }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { function i(t) { let s; return t && (s = d(t), e.params.uniqueNavElements && "string" == typeof t && s.length > 1 && 1 === e.$el.find(t).length && (s = e.$el.find(t))), s } function r(t, s) { const a = e.params.navigation; t && t.length > 0 && (t[s ? "addClass" : "removeClass"](a.disabledClass), t[0] && "BUTTON" === t[0].tagName && (t[0].disabled = s), e.params.watchOverflow && e.enabled && t[e.isLocked ? "addClass" : "removeClass"](a.lockClass)) } function n() { if (e.params.loop) return; const { $nextEl: t, $prevEl: s } = e.navigation; r(s, e.isBeginning && !e.params.rewind), r(t, e.isEnd && !e.params.rewind) } function l(t) { t.preventDefault(), (!e.isBeginning || e.params.loop || e.params.rewind) && e.slidePrev() } function o(t) { t.preventDefault(), (!e.isEnd || e.params.loop || e.params.rewind) && e.slideNext() } function p() { const t = e.params.navigation; if (e.params.navigation = Y(e, e.originalParams.navigation, e.params.navigation, { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" }), !t.nextEl && !t.prevEl) return; const s = i(t.nextEl), a = i(t.prevEl); s && s.length > 0 && s.on("click", o), a && a.length > 0 && a.on("click", l), Object.assign(e.navigation, { $nextEl: s, nextEl: s && s[0], $prevEl: a, prevEl: a && a[0] }), e.enabled || (s && s.addClass(t.lockClass), a && a.addClass(t.lockClass)) } function c() { const { $nextEl: t, $prevEl: s } = e.navigation; t && t.length && (t.off("click", o), t.removeClass(e.params.navigation.disabledClass)), s && s.length && (s.off("click", l), s.removeClass(e.params.navigation.disabledClass)) } t({ navigation: { nextEl: null, prevEl: null, hideOnClick: !1, disabledClass: "swiper-button-disabled", hiddenClass: "swiper-button-hidden", lockClass: "swiper-button-lock" } }), e.navigation = { nextEl: null, $nextEl: null, prevEl: null, $prevEl: null }, s("init", (() => { p(), n() })), s("toEdge fromEdge lock unlock", (() => { n() })), s("destroy", (() => { c() })), s("enable disable", (() => { const { $nextEl: t, $prevEl: s } = e.navigation; t && t[e.enabled ? "removeClass" : "addClass"](e.params.navigation.lockClass), s && s[e.enabled ? "removeClass" : "addClass"](e.params.navigation.lockClass) })), s("click", ((t, s) => { const { $nextEl: i, $prevEl: r } = e.navigation, n = s.target; if (e.params.navigation.hideOnClick && !d(n).is(r) && !d(n).is(i)) { if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === n || e.pagination.el.contains(n))) return; let t; i ? t = i.hasClass(e.params.navigation.hiddenClass) : r && (t = r.hasClass(e.params.navigation.hiddenClass)), a(!0 === t ? "navigationShow" : "navigationHide"), i && i.toggleClass(e.params.navigation.hiddenClass), r && r.toggleClass(e.params.navigation.hiddenClass) } })), Object.assign(e.navigation, { update: n, init: p, destroy: c }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = "swiper-pagination"; let r; t({ pagination: { el: null, bulletElement: "span", clickable: !1, hideOnClick: !1, renderBullet: null, renderProgressbar: null, renderFraction: null, renderCustom: null, progressbarOpposite: !1, type: "bullets", dynamicBullets: !1, dynamicMainBullets: 1, formatFractionCurrent: e => e, formatFractionTotal: e => e, bulletClass: `${i}-bullet`, bulletActiveClass: `${i}-bullet-active`, modifierClass: `${i}-`, currentClass: `${i}-current`, totalClass: `${i}-total`, hiddenClass: `${i}-hidden`, progressbarFillClass: `${i}-progressbar-fill`, progressbarOppositeClass: `${i}-progressbar-opposite`, clickableClass: `${i}-clickable`, lockClass: `${i}-lock`, horizontalClass: `${i}-horizontal`, verticalClass: `${i}-vertical` } }), e.pagination = { el: null, $el: null, bullets: [] }; let n = 0; function l() { return !e.params.pagination.el || !e.pagination.el || !e.pagination.$el || 0 === e.pagination.$el.length } function o(t, s) { const { bulletActiveClass: a } = e.params.pagination; t[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`) } function p() { const t = e.rtl, s = e.params.pagination; if (l()) return; const i = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, p = e.pagination.$el; let c; const u = e.params.loop ? Math.ceil((i - 2 * e.loopedSlides) / e.params.slidesPerGroup) : e.snapGrid.length; if (e.params.loop ? (c = Math.ceil((e.activeIndex - e.loopedSlides) / e.params.slidesPerGroup), c > i - 1 - 2 * e.loopedSlides && (c -= i - 2 * e.loopedSlides), c > u - 1 && (c -= u), c < 0 && "bullets" !== e.params.paginationType && (c = u + c)) : c = void 0 !== e.snapIndex ? e.snapIndex : e.activeIndex || 0, "bullets" === s.type && e.pagination.bullets && e.pagination.bullets.length > 0) { const a = e.pagination.bullets; let i, l, u; if (s.dynamicBullets && (r = a.eq(0)[e.isHorizontal() ? "outerWidth" : "outerHeight"](!0), p.css(e.isHorizontal() ? "width" : "height", r * (s.dynamicMainBullets + 4) + "px"), s.dynamicMainBullets > 1 && void 0 !== e.previousIndex && (n += c - (e.previousIndex - e.loopedSlides || 0), n > s.dynamicMainBullets - 1 ? n = s.dynamicMainBullets - 1 : n < 0 && (n = 0)), i = Math.max(c - n, 0), l = i + (Math.min(a.length, s.dynamicMainBullets) - 1), u = (l + i) / 2), a.removeClass(["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((e => `${s.bulletActiveClass}${e}`)).join(" ")), p.length > 1) a.each((e => { const t = d(e), a = t.index(); a === c && t.addClass(s.bulletActiveClass), s.dynamicBullets && (a >= i && a <= l && t.addClass(`${s.bulletActiveClass}-main`), a === i && o(t, "prev"), a === l && o(t, "next")) })); else { const t = a.eq(c), r = t.index(); if (t.addClass(s.bulletActiveClass), s.dynamicBullets) { const t = a.eq(i), n = a.eq(l); for (let e = i; e <= l; e += 1)a.eq(e).addClass(`${s.bulletActiveClass}-main`); if (e.params.loop) if (r >= a.length) { for (let e = s.dynamicMainBullets; e >= 0; e -= 1)a.eq(a.length - e).addClass(`${s.bulletActiveClass}-main`); a.eq(a.length - s.dynamicMainBullets - 1).addClass(`${s.bulletActiveClass}-prev`) } else o(t, "prev"), o(n, "next"); else o(t, "prev"), o(n, "next") } } if (s.dynamicBullets) { const i = Math.min(a.length, s.dynamicMainBullets + 4), n = (r * i - r) / 2 - u * r, l = t ? "right" : "left"; a.css(e.isHorizontal() ? l : "top", `${n}px`) } } if ("fraction" === s.type && (p.find(W(s.currentClass)).text(s.formatFractionCurrent(c + 1)), p.find(W(s.totalClass)).text(s.formatFractionTotal(u))), "progressbar" === s.type) { let t; t = s.progressbarOpposite ? e.isHorizontal() ? "vertical" : "horizontal" : e.isHorizontal() ? "horizontal" : "vertical"; const a = (c + 1) / u; let i = 1, r = 1; "horizontal" === t ? i = a : r = a, p.find(W(s.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${r})`).transition(e.params.speed) } "custom" === s.type && s.renderCustom ? (p.html(s.renderCustom(e, c + 1, u)), a("paginationRender", p[0])) : a("paginationUpdate", p[0]), e.params.watchOverflow && e.enabled && p[e.isLocked ? "addClass" : "removeClass"](s.lockClass) } function c() { const t = e.params.pagination; if (l()) return; const s = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, i = e.pagination.$el; let r = ""; if ("bullets" === t.type) { let a = e.params.loop ? Math.ceil((s - 2 * e.loopedSlides) / e.params.slidesPerGroup) : e.snapGrid.length; e.params.freeMode && e.params.freeMode.enabled && !e.params.loop && a > s && (a = s); for (let s = 0; s < a; s += 1)t.renderBullet ? r += t.renderBullet.call(e, s, t.bulletClass) : r += `<${t.bulletElement} class="${t.bulletClass}">`; i.html(r), e.pagination.bullets = i.find(W(t.bulletClass)) } "fraction" === t.type && (r = t.renderFraction ? t.renderFraction.call(e, t.currentClass, t.totalClass) : ` / `, i.html(r)), "progressbar" === t.type && (r = t.renderProgressbar ? t.renderProgressbar.call(e, t.progressbarFillClass) : ``, i.html(r)), "custom" !== t.type && a("paginationRender", e.pagination.$el[0]) } function u() { e.params.pagination = Y(e, e.originalParams.pagination, e.params.pagination, { el: "swiper-pagination" }); const t = e.params.pagination; if (!t.el) return; let s = d(t.el); 0 !== s.length && (e.params.uniqueNavElements && "string" == typeof t.el && s.length > 1 && (s = e.$el.find(t.el), s.length > 1 && (s = s.filter((t => d(t).parents(".swiper")[0] === e.el)))), "bullets" === t.type && t.clickable && s.addClass(t.clickableClass), s.addClass(t.modifierClass + t.type), s.addClass(t.modifierClass + e.params.direction), "bullets" === t.type && t.dynamicBullets && (s.addClass(`${t.modifierClass}${t.type}-dynamic`), n = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), "progressbar" === t.type && t.progressbarOpposite && s.addClass(t.progressbarOppositeClass), t.clickable && s.on("click", W(t.bulletClass), (function (t) { t.preventDefault(); let s = d(this).index() * e.params.slidesPerGroup; e.params.loop && (s += e.loopedSlides), e.slideTo(s) })), Object.assign(e.pagination, { $el: s, el: s[0] }), e.enabled || s.addClass(t.lockClass)) } function h() { const t = e.params.pagination; if (l()) return; const s = e.pagination.$el; s.removeClass(t.hiddenClass), s.removeClass(t.modifierClass + t.type), s.removeClass(t.modifierClass + e.params.direction), e.pagination.bullets && e.pagination.bullets.removeClass && e.pagination.bullets.removeClass(t.bulletActiveClass), t.clickable && s.off("click", W(t.bulletClass)) } s("init", (() => { u(), c(), p() })), s("activeIndexChange", (() => { (e.params.loop || void 0 === e.snapIndex) && p() })), s("snapIndexChange", (() => { e.params.loop || p() })), s("slidesLengthChange", (() => { e.params.loop && (c(), p()) })), s("snapGridLengthChange", (() => { e.params.loop || (c(), p()) })), s("destroy", (() => { h() })), s("enable disable", (() => { const { $el: t } = e.pagination; t && t[e.enabled ? "removeClass" : "addClass"](e.params.pagination.lockClass) })), s("lock unlock", (() => { p() })), s("click", ((t, s) => { const i = s.target, { $el: r } = e.pagination; if (e.params.pagination.el && e.params.pagination.hideOnClick && r.length > 0 && !d(i).hasClass(e.params.pagination.bulletClass)) { if (e.navigation && (e.navigation.nextEl && i === e.navigation.nextEl || e.navigation.prevEl && i === e.navigation.prevEl)) return; const t = r.hasClass(e.params.pagination.hiddenClass); a(!0 === t ? "paginationShow" : "paginationHide"), r.toggleClass(e.params.pagination.hiddenClass) } })), Object.assign(e.pagination, { render: c, update: p, init: u, destroy: h }) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { const r = a(); let n, l, o, p, u = !1, h = null, m = null; function f() { if (!e.params.scrollbar.el || !e.scrollbar.el) return; const { scrollbar: t, rtlTranslate: s, progress: a } = e, { $dragEl: i, $el: r } = t, n = e.params.scrollbar; let d = l, p = (o - l) * a; s ? (p = -p, p > 0 ? (d = l - p, p = 0) : -p + l > o && (d = o + p)) : p < 0 ? (d = l + p, p = 0) : p + l > o && (d = o - p), e.isHorizontal() ? (i.transform(`translate3d(${p}px, 0, 0)`), i[0].style.width = `${d}px`) : (i.transform(`translate3d(0px, ${p}px, 0)`), i[0].style.height = `${d}px`), n.hide && (clearTimeout(h), r[0].style.opacity = 1, h = setTimeout((() => { r[0].style.opacity = 0, r.transition(400) }), 1e3)) } function g() { if (!e.params.scrollbar.el || !e.scrollbar.el) return; const { scrollbar: t } = e, { $dragEl: s, $el: a } = t; s[0].style.width = "", s[0].style.height = "", o = e.isHorizontal() ? a[0].offsetWidth : a[0].offsetHeight, p = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), l = "auto" === e.params.scrollbar.dragSize ? o * p : parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? s[0].style.width = `${l}px` : s[0].style.height = `${l}px`, a[0].style.display = p >= 1 ? "none" : "", e.params.scrollbar.hide && (a[0].style.opacity = 0), e.params.watchOverflow && e.enabled && t.$el[e.isLocked ? "addClass" : "removeClass"](e.params.scrollbar.lockClass) } function v(t) { return e.isHorizontal() ? "touchstart" === t.type || "touchmove" === t.type ? t.targetTouches[0].clientX : t.clientX : "touchstart" === t.type || "touchmove" === t.type ? t.targetTouches[0].clientY : t.clientY } function w(t) { const { scrollbar: s, rtlTranslate: a } = e, { $el: i } = s; let r; r = (v(t) - i.offset()[e.isHorizontal() ? "left" : "top"] - (null !== n ? n : l / 2)) / (o - l), r = Math.max(Math.min(r, 1), 0), a && (r = 1 - r); const d = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * r; e.updateProgress(d), e.setTranslate(d), e.updateActiveIndex(), e.updateSlidesClasses() } function b(t) { const s = e.params.scrollbar, { scrollbar: a, $wrapperEl: r } = e, { $el: l, $dragEl: o } = a; u = !0, n = t.target === o[0] || t.target === o ? v(t) - t.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, t.preventDefault(), t.stopPropagation(), r.transition(100), o.transition(100), w(t), clearTimeout(m), l.transition(0), s.hide && l.css("opacity", 1), e.params.cssMode && e.$wrapperEl.css("scroll-snap-type", "none"), i("scrollbarDragStart", t) } function x(t) { const { scrollbar: s, $wrapperEl: a } = e, { $el: r, $dragEl: n } = s; u && (t.preventDefault ? t.preventDefault() : t.returnValue = !1, w(t), a.transition(0), r.transition(0), n.transition(0), i("scrollbarDragMove", t)) } function y(t) { const s = e.params.scrollbar, { scrollbar: a, $wrapperEl: r } = e, { $el: n } = a; u && (u = !1, e.params.cssMode && (e.$wrapperEl.css("scroll-snap-type", ""), r.transition("")), s.hide && (clearTimeout(m), m = c((() => { n.css("opacity", 0), n.transition(400) }), 1e3)), i("scrollbarDragEnd", t), s.snapOnRelease && e.slideToClosest()) } function E(t) { const { scrollbar: s, touchEventsTouch: a, touchEventsDesktop: i, params: n, support: l } = e, o = s.$el[0], d = !(!l.passiveListener || !n.passiveListeners) && { passive: !1, capture: !1 }, p = !(!l.passiveListener || !n.passiveListeners) && { passive: !0, capture: !1 }; if (!o) return; const c = "on" === t ? "addEventListener" : "removeEventListener"; l.touch ? (o[c](a.start, b, d), o[c](a.move, x, d), o[c](a.end, y, p)) : (o[c](i.start, b, d), r[c](i.move, x, d), r[c](i.end, y, p)) } function T() { const { scrollbar: t, $el: s } = e; e.params.scrollbar = Y(e, e.originalParams.scrollbar, e.params.scrollbar, { el: "swiper-scrollbar" }); const a = e.params.scrollbar; if (!a.el) return; let i = d(a.el); e.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.find(a.el).length && (i = s.find(a.el)); let r = i.find(`.${e.params.scrollbar.dragClass}`); 0 === r.length && (r = d(`
`), i.append(r)), Object.assign(t, { $el: i, el: i[0], $dragEl: r, dragEl: r[0] }), a.draggable && e.params.scrollbar.el && E("on"), i && i[e.enabled ? "removeClass" : "addClass"](e.params.scrollbar.lockClass) } function C() { e.params.scrollbar.el && E("off") } t({ scrollbar: { el: null, dragSize: "auto", hide: !1, draggable: !1, snapOnRelease: !0, lockClass: "swiper-scrollbar-lock", dragClass: "swiper-scrollbar-drag" } }), e.scrollbar = { el: null, dragEl: null, $el: null, $dragEl: null }, s("init", (() => { T(), g(), f() })), s("update resize observerUpdate lock unlock", (() => { g() })), s("setTranslate", (() => { f() })), s("setTransition", ((t, s) => { !function (t) { e.params.scrollbar.el && e.scrollbar.el && e.scrollbar.$dragEl.transition(t) }(s) })), s("enable disable", (() => { const { $el: t } = e.scrollbar; t && t[e.enabled ? "removeClass" : "addClass"](e.params.scrollbar.lockClass) })), s("destroy", (() => { C() })), Object.assign(e.scrollbar, { updateSize: g, setTranslate: f, init: T, destroy: C }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ parallax: { enabled: !1 } }); const a = (t, s) => { const { rtl: a } = e, i = d(t), r = a ? -1 : 1, n = i.attr("data-swiper-parallax") || "0"; let l = i.attr("data-swiper-parallax-x"), o = i.attr("data-swiper-parallax-y"); const p = i.attr("data-swiper-parallax-scale"), c = i.attr("data-swiper-parallax-opacity"); if (l || o ? (l = l || "0", o = o || "0") : e.isHorizontal() ? (l = n, o = "0") : (o = n, l = "0"), l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s * r + "%" : l * s * r + "px", o = o.indexOf("%") >= 0 ? parseInt(o, 10) * s + "%" : o * s + "px", null != c) { const e = c - (c - 1) * (1 - Math.abs(s)); i[0].style.opacity = e } if (null == p) i.transform(`translate3d(${l}, ${o}, 0px)`); else { const e = p - (p - 1) * (1 - Math.abs(s)); i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`) } }, i = () => { const { $el: t, slides: s, progress: i, snapGrid: r } = e; t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { a(e, i) })), s.each(((t, s) => { let n = t.progress; e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (n += Math.ceil(s / 2) - i * (r.length - 1)), n = Math.min(Math.max(n, -1), 1), d(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { a(e, n) })) })) }; s("beforeInit", (() => { e.params.parallax.enabled && (e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0) })), s("init", (() => { e.params.parallax.enabled && i() })), s("setTranslate", (() => { e.params.parallax.enabled && i() })), s("setTransition", ((t, s) => { e.params.parallax.enabled && ((t = e.params.speed) => { const { $el: s } = e; s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { const s = d(e); let a = parseInt(s.attr("data-swiper-parallax-duration"), 10) || t; 0 === t && (a = 0), s.transition(a) })) })(s) })) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { const i = r(); t({ zoom: { enabled: !1, maxRatio: 3, minRatio: 1, toggle: !0, containerClass: "swiper-zoom-container", zoomedSlideClass: "swiper-slide-zoomed" } }), e.zoom = { enabled: !1 }; let n, l, o, p = 1, c = !1; const u = { $slideEl: void 0, slideWidth: void 0, slideHeight: void 0, $imageEl: void 0, $imageWrapEl: void 0, maxRatio: 3 }, m = { isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {} }, f = { x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0 }; let g = 1; function v(e) { if (e.targetTouches.length < 2) return 1; const t = e.targetTouches[0].pageX, s = e.targetTouches[0].pageY, a = e.targetTouches[1].pageX, i = e.targetTouches[1].pageY; return Math.sqrt((a - t) ** 2 + (i - s) ** 2) } function w(t) { const s = e.support, a = e.params.zoom; if (l = !1, o = !1, !s.gestures) { if ("touchstart" !== t.type || "touchstart" === t.type && t.targetTouches.length < 2) return; l = !0, u.scaleStart = v(t) } u.$slideEl && u.$slideEl.length || (u.$slideEl = d(t.target).closest(`.${e.params.slideClass}`), 0 === u.$slideEl.length && (u.$slideEl = e.slides.eq(e.activeIndex)), u.$imageEl = u.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${a.containerClass}`), u.maxRatio = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, 0 !== u.$imageWrapEl.length) ? (u.$imageEl && u.$imageEl.transition(0), c = !0) : u.$imageEl = void 0 } function b(t) { const s = e.support, a = e.params.zoom, i = e.zoom; if (!s.gestures) { if ("touchmove" !== t.type || "touchmove" === t.type && t.targetTouches.length < 2) return; o = !0, u.scaleMove = v(t) } u.$imageEl && 0 !== u.$imageEl.length ? (s.gestures ? i.scale = t.scale * p : i.scale = u.scaleMove / u.scaleStart * p, i.scale > u.maxRatio && (i.scale = u.maxRatio - 1 + (i.scale - u.maxRatio + 1) ** .5), i.scale < a.minRatio && (i.scale = a.minRatio + 1 - (a.minRatio - i.scale + 1) ** .5), u.$imageEl.transform(`translate3d(0,0,0) scale(${i.scale})`)) : "gesturechange" === t.type && w(t) } function x(t) { const s = e.device, a = e.support, i = e.params.zoom, r = e.zoom; if (!a.gestures) { if (!l || !o) return; if ("touchend" !== t.type || "touchend" === t.type && t.changedTouches.length < 2 && !s.android) return; l = !1, o = !1 } u.$imageEl && 0 !== u.$imageEl.length && (r.scale = Math.max(Math.min(r.scale, u.maxRatio), i.minRatio), u.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`), p = r.scale, c = !1, 1 === r.scale && (u.$slideEl = void 0)) } function y(t) { const s = e.zoom; if (!u.$imageEl || 0 === u.$imageEl.length) return; if (e.allowClick = !1, !m.isTouched || !u.$slideEl) return; m.isMoved || (m.width = u.$imageEl[0].offsetWidth, m.height = u.$imageEl[0].offsetHeight, m.startX = h(u.$imageWrapEl[0], "x") || 0, m.startY = h(u.$imageWrapEl[0], "y") || 0, u.slideWidth = u.$slideEl[0].offsetWidth, u.slideHeight = u.$slideEl[0].offsetHeight, u.$imageWrapEl.transition(0)); const a = m.width * s.scale, i = m.height * s.scale; if (!(a < u.slideWidth && i < u.slideHeight)) { if (m.minX = Math.min(u.slideWidth / 2 - a / 2, 0), m.maxX = -m.minX, m.minY = Math.min(u.slideHeight / 2 - i / 2, 0), m.maxY = -m.minY, m.touchesCurrent.x = "touchmove" === t.type ? t.targetTouches[0].pageX : t.pageX, m.touchesCurrent.y = "touchmove" === t.type ? t.targetTouches[0].pageY : t.pageY, !m.isMoved && !c) { if (e.isHorizontal() && (Math.floor(m.minX) === Math.floor(m.startX) && m.touchesCurrent.x < m.touchesStart.x || Math.floor(m.maxX) === Math.floor(m.startX) && m.touchesCurrent.x > m.touchesStart.x)) return void (m.isTouched = !1); if (!e.isHorizontal() && (Math.floor(m.minY) === Math.floor(m.startY) && m.touchesCurrent.y < m.touchesStart.y || Math.floor(m.maxY) === Math.floor(m.startY) && m.touchesCurrent.y > m.touchesStart.y)) return void (m.isTouched = !1) } t.cancelable && t.preventDefault(), t.stopPropagation(), m.isMoved = !0, m.currentX = m.touchesCurrent.x - m.touchesStart.x + m.startX, m.currentY = m.touchesCurrent.y - m.touchesStart.y + m.startY, m.currentX < m.minX && (m.currentX = m.minX + 1 - (m.minX - m.currentX + 1) ** .8), m.currentX > m.maxX && (m.currentX = m.maxX - 1 + (m.currentX - m.maxX + 1) ** .8), m.currentY < m.minY && (m.currentY = m.minY + 1 - (m.minY - m.currentY + 1) ** .8), m.currentY > m.maxY && (m.currentY = m.maxY - 1 + (m.currentY - m.maxY + 1) ** .8), f.prevPositionX || (f.prevPositionX = m.touchesCurrent.x), f.prevPositionY || (f.prevPositionY = m.touchesCurrent.y), f.prevTime || (f.prevTime = Date.now()), f.x = (m.touchesCurrent.x - f.prevPositionX) / (Date.now() - f.prevTime) / 2, f.y = (m.touchesCurrent.y - f.prevPositionY) / (Date.now() - f.prevTime) / 2, Math.abs(m.touchesCurrent.x - f.prevPositionX) < 2 && (f.x = 0), Math.abs(m.touchesCurrent.y - f.prevPositionY) < 2 && (f.y = 0), f.prevPositionX = m.touchesCurrent.x, f.prevPositionY = m.touchesCurrent.y, f.prevTime = Date.now(), u.$imageWrapEl.transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`) } } function E() { const t = e.zoom; u.$slideEl && e.previousIndex !== e.activeIndex && (u.$imageEl && u.$imageEl.transform("translate3d(0,0,0) scale(1)"), u.$imageWrapEl && u.$imageWrapEl.transform("translate3d(0,0,0)"), t.scale = 1, p = 1, u.$slideEl = void 0, u.$imageEl = void 0, u.$imageWrapEl = void 0) } function T(t) { const s = e.zoom, a = e.params.zoom; if (u.$slideEl || (t && t.target && (u.$slideEl = d(t.target).closest(`.${e.params.slideClass}`)), u.$slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? u.$slideEl = e.$wrapperEl.children(`.${e.params.slideActiveClass}`) : u.$slideEl = e.slides.eq(e.activeIndex)), u.$imageEl = u.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${a.containerClass}`)), !u.$imageEl || 0 === u.$imageEl.length || !u.$imageWrapEl || 0 === u.$imageWrapEl.length) return; let r, n, l, o, c, h, f, g, v, w, b, x, y, E, T, C, $, S; e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), u.$slideEl.addClass(`${a.zoomedSlideClass}`), void 0 === m.touchesStart.x && t ? (r = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, n = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (r = m.touchesStart.x, n = m.touchesStart.y), s.scale = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, p = u.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, t ? ($ = u.$slideEl[0].offsetWidth, S = u.$slideEl[0].offsetHeight, l = u.$slideEl.offset().left + i.scrollX, o = u.$slideEl.offset().top + i.scrollY, c = l + $ / 2 - r, h = o + S / 2 - n, v = u.$imageEl[0].offsetWidth, w = u.$imageEl[0].offsetHeight, b = v * s.scale, x = w * s.scale, y = Math.min($ / 2 - b / 2, 0), E = Math.min(S / 2 - x / 2, 0), T = -y, C = -E, f = c * s.scale, g = h * s.scale, f < y && (f = y), f > T && (f = T), g < E && (g = E), g > C && (g = C)) : (f = 0, g = 0), u.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${g}px,0)`), u.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`) } function C() { const t = e.zoom, s = e.params.zoom; u.$slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? u.$slideEl = e.$wrapperEl.children(`.${e.params.slideActiveClass}`) : u.$slideEl = e.slides.eq(e.activeIndex), u.$imageEl = u.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), u.$imageWrapEl = u.$imageEl.parent(`.${s.containerClass}`)), u.$imageEl && 0 !== u.$imageEl.length && u.$imageWrapEl && 0 !== u.$imageWrapEl.length && (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), t.scale = 1, p = 1, u.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), u.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), u.$slideEl.removeClass(`${s.zoomedSlideClass}`), u.$slideEl = void 0) } function $(t) { const s = e.zoom; s.scale && 1 !== s.scale ? C() : T(t) } function S() { const t = e.support; return { passiveListener: !("touchstart" !== e.touchEvents.start || !t.passiveListener || !e.params.passiveListeners) && { passive: !0, capture: !1 }, activeListenerWithCapture: !t.passiveListener || { passive: !1, capture: !0 } } } function M() { return `.${e.params.slideClass}` } function P(t) { const { passiveListener: s } = S(), a = M(); e.$wrapperEl[t]("gesturestart", a, w, s), e.$wrapperEl[t]("gesturechange", a, b, s), e.$wrapperEl[t]("gestureend", a, x, s) } function k() { n || (n = !0, P("on")) } function z() { n && (n = !1, P("off")) } function O() { const t = e.zoom; if (t.enabled) return; t.enabled = !0; const s = e.support, { passiveListener: a, activeListenerWithCapture: i } = S(), r = M(); s.gestures ? (e.$wrapperEl.on(e.touchEvents.start, k, a), e.$wrapperEl.on(e.touchEvents.end, z, a)) : "touchstart" === e.touchEvents.start && (e.$wrapperEl.on(e.touchEvents.start, r, w, a), e.$wrapperEl.on(e.touchEvents.move, r, b, i), e.$wrapperEl.on(e.touchEvents.end, r, x, a), e.touchEvents.cancel && e.$wrapperEl.on(e.touchEvents.cancel, r, x, a)), e.$wrapperEl.on(e.touchEvents.move, `.${e.params.zoom.containerClass}`, y, i) } function I() { const t = e.zoom; if (!t.enabled) return; const s = e.support; t.enabled = !1; const { passiveListener: a, activeListenerWithCapture: i } = S(), r = M(); s.gestures ? (e.$wrapperEl.off(e.touchEvents.start, k, a), e.$wrapperEl.off(e.touchEvents.end, z, a)) : "touchstart" === e.touchEvents.start && (e.$wrapperEl.off(e.touchEvents.start, r, w, a), e.$wrapperEl.off(e.touchEvents.move, r, b, i), e.$wrapperEl.off(e.touchEvents.end, r, x, a), e.touchEvents.cancel && e.$wrapperEl.off(e.touchEvents.cancel, r, x, a)), e.$wrapperEl.off(e.touchEvents.move, `.${e.params.zoom.containerClass}`, y, i) } Object.defineProperty(e.zoom, "scale", { get: () => g, set(e) { if (g !== e) { const t = u.$imageEl ? u.$imageEl[0] : void 0, s = u.$slideEl ? u.$slideEl[0] : void 0; a("zoomChange", e, t, s) } g = e } }), s("init", (() => { e.params.zoom.enabled && O() })), s("destroy", (() => { I() })), s("touchStart", ((t, s) => { e.zoom.enabled && function (t) { const s = e.device; u.$imageEl && 0 !== u.$imageEl.length && (m.isTouched || (s.android && t.cancelable && t.preventDefault(), m.isTouched = !0, m.touchesStart.x = "touchstart" === t.type ? t.targetTouches[0].pageX : t.pageX, m.touchesStart.y = "touchstart" === t.type ? t.targetTouches[0].pageY : t.pageY)) }(s) })), s("touchEnd", ((t, s) => { e.zoom.enabled && function () { const t = e.zoom; if (!u.$imageEl || 0 === u.$imageEl.length) return; if (!m.isTouched || !m.isMoved) return m.isTouched = !1, void (m.isMoved = !1); m.isTouched = !1, m.isMoved = !1; let s = 300, a = 300; const i = f.x * s, r = m.currentX + i, n = f.y * a, l = m.currentY + n; 0 !== f.x && (s = Math.abs((r - m.currentX) / f.x)), 0 !== f.y && (a = Math.abs((l - m.currentY) / f.y)); const o = Math.max(s, a); m.currentX = r, m.currentY = l; const d = m.width * t.scale, p = m.height * t.scale; m.minX = Math.min(u.slideWidth / 2 - d / 2, 0), m.maxX = -m.minX, m.minY = Math.min(u.slideHeight / 2 - p / 2, 0), m.maxY = -m.minY, m.currentX = Math.max(Math.min(m.currentX, m.maxX), m.minX), m.currentY = Math.max(Math.min(m.currentY, m.maxY), m.minY), u.$imageWrapEl.transition(o).transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`) }() })), s("doubleTap", ((t, s) => { !e.animating && e.params.zoom.enabled && e.zoom.enabled && e.params.zoom.toggle && $(s) })), s("transitionEnd", (() => { e.zoom.enabled && e.params.zoom.enabled && E() })), s("slideChange", (() => { e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && E() })), Object.assign(e.zoom, { enable: O, disable: I, in: T, out: C, toggle: $ }) }, function ({ swiper: e, extendParams: t, on: s, emit: a }) { t({ lazy: { checkInView: !1, enabled: !1, loadPrevNext: !1, loadPrevNextAmount: 1, loadOnTransitionStart: !1, scrollingElement: "", elementClass: "swiper-lazy", loadingClass: "swiper-lazy-loading", loadedClass: "swiper-lazy-loaded", preloaderClass: "swiper-lazy-preloader" } }), e.lazy = {}; let i = !1, n = !1; function l(t, s = !0) { const i = e.params.lazy; if (void 0 === t) return; if (0 === e.slides.length) return; const r = e.virtual && e.params.virtual.enabled ? e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`) : e.slides.eq(t), n = r.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`); !r.hasClass(i.elementClass) || r.hasClass(i.loadedClass) || r.hasClass(i.loadingClass) || n.push(r[0]), 0 !== n.length && n.each((t => { const n = d(t); n.addClass(i.loadingClass); const o = n.attr("data-background"), p = n.attr("data-src"), c = n.attr("data-srcset"), u = n.attr("data-sizes"), h = n.parent("picture"); e.loadImage(n[0], p || o, c, u, !1, (() => { if (null != e && e && (!e || e.params) && !e.destroyed) { if (o ? (n.css("background-image", `url("${o}")`), n.removeAttr("data-background")) : (c && (n.attr("srcset", c), n.removeAttr("data-srcset")), u && (n.attr("sizes", u), n.removeAttr("data-sizes")), h.length && h.children("source").each((e => { const t = d(e); t.attr("data-srcset") && (t.attr("srcset", t.attr("data-srcset")), t.removeAttr("data-srcset")) })), p && (n.attr("src", p), n.removeAttr("data-src"))), n.addClass(i.loadedClass).removeClass(i.loadingClass), r.find(`.${i.preloaderClass}`).remove(), e.params.loop && s) { const t = r.attr("data-swiper-slide-index"); if (r.hasClass(e.params.slideDuplicateClass)) { l(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(), !1) } else { l(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(), !1) } } a("lazyImageReady", r[0], n[0]), e.params.autoHeight && e.updateAutoHeight() } })), a("lazyImageLoad", r[0], n[0]) })) } function o() { const { $wrapperEl: t, params: s, slides: a, activeIndex: i } = e, r = e.virtual && s.virtual.enabled, o = s.lazy; let p = s.slidesPerView; function c(e) { if (r) { if (t.children(`.${s.slideClass}[data-swiper-slide-index="${e}"]`).length) return !0 } else if (a[e]) return !0; return !1 } function u(e) { return r ? d(e).attr("data-swiper-slide-index") : d(e).index() } if ("auto" === p && (p = 0), n || (n = !0), e.params.watchSlidesProgress) t.children(`.${s.slideVisibleClass}`).each((e => { l(r ? d(e).attr("data-swiper-slide-index") : d(e).index()) })); else if (p > 1) for (let e = i; e < i + p; e += 1)c(e) && l(e); else l(i); if (o.loadPrevNext) if (p > 1 || o.loadPrevNextAmount && o.loadPrevNextAmount > 1) { const e = o.loadPrevNextAmount, t = p, s = Math.min(i + t + Math.max(e, t), a.length), r = Math.max(i - Math.max(t, e), 0); for (let e = i + p; e < s; e += 1)c(e) && l(e); for (let e = r; e < i; e += 1)c(e) && l(e) } else { const e = t.children(`.${s.slideNextClass}`); e.length > 0 && l(u(e)); const a = t.children(`.${s.slidePrevClass}`); a.length > 0 && l(u(a)) } } function p() { const t = r(); if (!e || e.destroyed) return; const s = e.params.lazy.scrollingElement ? d(e.params.lazy.scrollingElement) : d(t), a = s[0] === t, n = a ? t.innerWidth : s[0].offsetWidth, l = a ? t.innerHeight : s[0].offsetHeight, c = e.$el.offset(), { rtlTranslate: u } = e; let h = !1; u && (c.left -= e.$el[0].scrollLeft); const m = [[c.left, c.top], [c.left + e.width, c.top], [c.left, c.top + e.height], [c.left + e.width, c.top + e.height]]; for (let e = 0; e < m.length; e += 1) { const t = m[e]; if (t[0] >= 0 && t[0] <= n && t[1] >= 0 && t[1] <= l) { if (0 === t[0] && 0 === t[1]) continue; h = !0 } } const f = !("touchstart" !== e.touchEvents.start || !e.support.passiveListener || !e.params.passiveListeners) && { passive: !0, capture: !1 }; h ? (o(), s.off("scroll", p, f)) : i || (i = !0, s.on("scroll", p, f)) } s("beforeInit", (() => { e.params.lazy.enabled && e.params.preloadImages && (e.params.preloadImages = !1) })), s("init", (() => { e.params.lazy.enabled && (e.params.lazy.checkInView ? p() : o()) })), s("scroll", (() => { e.params.freeMode && e.params.freeMode.enabled && !e.params.freeMode.sticky && o() })), s("scrollbarDragMove resize _freeModeNoMomentumRelease", (() => { e.params.lazy.enabled && (e.params.lazy.checkInView ? p() : o()) })), s("transitionStart", (() => { e.params.lazy.enabled && (e.params.lazy.loadOnTransitionStart || !e.params.lazy.loadOnTransitionStart && !n) && (e.params.lazy.checkInView ? p() : o()) })), s("transitionEnd", (() => { e.params.lazy.enabled && !e.params.lazy.loadOnTransitionStart && (e.params.lazy.checkInView ? p() : o()) })), s("slideChange", (() => { const { lazy: t, cssMode: s, watchSlidesProgress: a, touchReleaseOnEdges: i, resistanceRatio: r } = e.params; t.enabled && (s || a && (i || 0 === r)) && o() })), Object.assign(e.lazy, { load: o, loadInSlide: l }) }, function ({ swiper: e, extendParams: t, on: s }) { function a(e, t) { const s = function () { let e, t, s; return (a, i) => { for (t = -1, e = a.length; e - t > 1;)s = e + t >> 1, a[s] <= i ? t = s : e = s; return e } }(); let a, i; return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { return e ? (i = s(this.x, e), a = i - 1, (e - this.x[a]) * (this.y[i] - this.y[a]) / (this.x[i] - this.x[a]) + this.y[a]) : 0 }, this } function i() { e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline) } t({ controller: { control: void 0, inverse: !1, by: "slide" } }), e.controller = { control: void 0 }, s("beforeInit", (() => { e.controller.control = e.params.controller.control })), s("update", (() => { i() })), s("resize", (() => { i() })), s("observerUpdate", (() => { i() })), s("setTranslate", ((t, s, a) => { e.controller.control && e.controller.setTranslate(s, a) })), s("setTransition", ((t, s, a) => { e.controller.control && e.controller.setTransition(s, a) })), Object.assign(e.controller, { setTranslate: function (t, s) { const i = e.controller.control; let r, n; const l = e.constructor; function o(t) { const s = e.rtlTranslate ? -e.translate : e.translate; "slide" === e.params.controller.by && (!function (t) { e.controller.spline || (e.controller.spline = e.params.loop ? new a(e.slidesGrid, t.slidesGrid) : new a(e.snapGrid, t.snapGrid)) }(t), n = -e.controller.spline.interpolate(-s)), n && "container" !== e.params.controller.by || (r = (t.maxTranslate() - t.minTranslate()) / (e.maxTranslate() - e.minTranslate()), n = (s - e.minTranslate()) * r + t.minTranslate()), e.params.controller.inverse && (n = t.maxTranslate() - n), t.updateProgress(n), t.setTranslate(n, e), t.updateActiveIndex(), t.updateSlidesClasses() } if (Array.isArray(i)) for (let e = 0; e < i.length; e += 1)i[e] !== s && i[e] instanceof l && o(i[e]); else i instanceof l && s !== i && o(i) }, setTransition: function (t, s) { const a = e.constructor, i = e.controller.control; let r; function n(s) { s.setTransition(t, e), 0 !== t && (s.transitionStart(), s.params.autoHeight && c((() => { s.updateAutoHeight() })), s.$wrapperEl.transitionEnd((() => { i && (s.params.loop && "slide" === e.params.controller.by && s.loopFix(), s.transitionEnd()) }))) } if (Array.isArray(i)) for (r = 0; r < i.length; r += 1)i[r] !== s && i[r] instanceof a && n(i[r]); else i instanceof a && s !== i && n(i) } }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ a11y: { enabled: !0, notificationClass: "swiper-notification", prevSlideMessage: "Previous slide", nextSlideMessage: "Next slide", firstSlideMessage: "This is the first slide", lastSlideMessage: "This is the last slide", paginationBulletMessage: "Go to slide {{index}}", slideLabelMessage: "{{index}} / {{slidesLength}}", containerMessage: null, containerRoleDescriptionMessage: null, itemRoleDescriptionMessage: null, slideRole: "group" } }); let a = null; function i(e) { const t = a; 0 !== t.length && (t.html(""), t.html(e)) } function r(e) { e.attr("tabIndex", "0") } function n(e) { e.attr("tabIndex", "-1") } function l(e, t) { e.attr("role", t) } function o(e, t) { e.attr("aria-roledescription", t) } function p(e, t) { e.attr("aria-label", t) } function c(e) { e.attr("aria-disabled", !0) } function u(e) { e.attr("aria-disabled", !1) } function h(t) { if (13 !== t.keyCode && 32 !== t.keyCode) return; const s = e.params.a11y, a = d(t.target); e.navigation && e.navigation.$nextEl && a.is(e.navigation.$nextEl) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? i(s.lastSlideMessage) : i(s.nextSlideMessage)), e.navigation && e.navigation.$prevEl && a.is(e.navigation.$prevEl) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? i(s.firstSlideMessage) : i(s.prevSlideMessage)), e.pagination && a.is(W(e.params.pagination.bulletClass)) && a[0].click() } function m() { if (e.params.loop || e.params.rewind || !e.navigation) return; const { $nextEl: t, $prevEl: s } = e.navigation; s && s.length > 0 && (e.isBeginning ? (c(s), n(s)) : (u(s), r(s))), t && t.length > 0 && (e.isEnd ? (c(t), n(t)) : (u(t), r(t))) } function f() { return e.pagination && e.pagination.bullets && e.pagination.bullets.length } function g() { return f() && e.params.pagination.clickable } const v = (e, t, s) => { r(e), "BUTTON" !== e[0].tagName && (l(e, "button"), e.on("keydown", h)), p(e, s), function (e, t) { e.attr("aria-controls", t) }(e, t) }; function w() { const t = e.params.a11y; e.$el.append(a); const s = e.$el; t.containerRoleDescriptionMessage && o(s, t.containerRoleDescriptionMessage), t.containerMessage && p(s, t.containerMessage); const i = e.$wrapperEl, r = i.attr("id") || `swiper-wrapper-${function (e = 16) { return "x".repeat(e).replace(/x/g, (() => Math.round(16 * Math.random()).toString(16))) }(16)}`, n = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite"; var c; c = r, i.attr("id", c), function (e, t) { e.attr("aria-live", t) }(i, n), t.itemRoleDescriptionMessage && o(d(e.slides), t.itemRoleDescriptionMessage), l(d(e.slides), t.slideRole); const u = e.params.loop ? e.slides.filter((t => !t.classList.contains(e.params.slideDuplicateClass))).length : e.slides.length; let m, f; e.slides.each(((s, a) => { const i = d(s), r = e.params.loop ? parseInt(i.attr("data-swiper-slide-index"), 10) : a; p(i, t.slideLabelMessage.replace(/\{\{index\}\}/, r + 1).replace(/\{\{slidesLength\}\}/, u)) })), e.navigation && e.navigation.$nextEl && (m = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (f = e.navigation.$prevEl), m && m.length && v(m, r, t.nextSlideMessage), f && f.length && v(f, r, t.prevSlideMessage), g() && e.pagination.$el.on("keydown", W(e.params.pagination.bulletClass), h) } s("beforeInit", (() => { a = d(``) })), s("afterInit", (() => { e.params.a11y.enabled && (w(), m()) })), s("toEdge", (() => { e.params.a11y.enabled && m() })), s("fromEdge", (() => { e.params.a11y.enabled && m() })), s("paginationUpdate", (() => { e.params.a11y.enabled && function () { const t = e.params.a11y; f() && e.pagination.bullets.each((s => { const a = d(s); e.params.pagination.clickable && (r(a), e.params.pagination.renderBullet || (l(a, "button"), p(a, t.paginationBulletMessage.replace(/\{\{index\}\}/, a.index() + 1)))), a.is(`.${e.params.pagination.bulletActiveClass}`) ? a.attr("aria-current", "true") : a.removeAttr("aria-current") })) }() })), s("destroy", (() => { e.params.a11y.enabled && function () { let t, s; a && a.length > 0 && a.remove(), e.navigation && e.navigation.$nextEl && (t = e.navigation.$nextEl), e.navigation && e.navigation.$prevEl && (s = e.navigation.$prevEl), t && t.off("keydown", h), s && s.off("keydown", h), g() && e.pagination.$el.off("keydown", W(e.params.pagination.bulletClass), h) }() })) }, function ({ swiper: e, extendParams: t, on: s }) { t({ history: { enabled: !1, root: "", replaceState: !1, key: "slides" } }); let a = !1, i = {}; const n = e => e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), l = e => { const t = r(); let s; s = e ? new URL(e) : t.location; const a = s.pathname.slice(1).split("/").filter((e => "" !== e)), i = a.length; return { key: a[i - 2], value: a[i - 1] } }, o = (t, s) => { const i = r(); if (!a || !e.params.history.enabled) return; let l; l = e.params.url ? new URL(e.params.url) : i.location; const o = e.slides.eq(s); let d = n(o.attr("data-history")); if (e.params.history.root.length > 0) { let s = e.params.history.root; "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), d = `${s}/${t}/${d}` } else l.pathname.includes(t) || (d = `${t}/${d}`); const p = i.history.state; p && p.value === d || (e.params.history.replaceState ? i.history.replaceState({ value: d }, null, d) : i.history.pushState({ value: d }, null, d)) }, d = (t, s, a) => { if (s) for (let i = 0, r = e.slides.length; i < r; i += 1) { const r = e.slides.eq(i); if (n(r.attr("data-history")) === s && !r.hasClass(e.params.slideDuplicateClass)) { const s = r.index(); e.slideTo(s, t, a) } } else e.slideTo(0, t, a) }, p = () => { i = l(e.params.url), d(e.params.speed, e.paths.value, !1) }; s("init", (() => { e.params.history.enabled && (() => { const t = r(); if (e.params.history) { if (!t.history || !t.history.pushState) return e.params.history.enabled = !1, void (e.params.hashNavigation.enabled = !0); a = !0, i = l(e.params.url), (i.key || i.value) && (d(0, i.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", p)) } })() })), s("destroy", (() => { e.params.history.enabled && (() => { const t = r(); e.params.history.replaceState || t.removeEventListener("popstate", p) })() })), s("transitionEnd _freeModeNoMomentumRelease", (() => { a && o(e.params.history.key, e.activeIndex) })), s("slideChange", (() => { a && e.params.cssMode && o(e.params.history.key, e.activeIndex) })) }, function ({ swiper: e, extendParams: t, emit: s, on: i }) { let n = !1; const l = a(), o = r(); t({ hashNavigation: { enabled: !1, replaceState: !1, watchState: !1 } }); const p = () => { s("hashChange"); const t = l.location.hash.replace("#", ""); if (t !== e.slides.eq(e.activeIndex).attr("data-hash")) { const s = e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index(); if (void 0 === s) return; e.slideTo(s) } }, c = () => { if (n && e.params.hashNavigation.enabled) if (e.params.hashNavigation.replaceState && o.history && o.history.replaceState) o.history.replaceState(null, null, `#${e.slides.eq(e.activeIndex).attr("data-hash")}` || ""), s("hashSet"); else { const t = e.slides.eq(e.activeIndex), a = t.attr("data-hash") || t.attr("data-history"); l.location.hash = a || "", s("hashSet") } }; i("init", (() => { e.params.hashNavigation.enabled && (() => { if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return; n = !0; const t = l.location.hash.replace("#", ""); if (t) { const s = 0; for (let a = 0, i = e.slides.length; a < i; a += 1) { const i = e.slides.eq(a); if ((i.attr("data-hash") || i.attr("data-history")) === t && !i.hasClass(e.params.slideDuplicateClass)) { const t = i.index(); e.slideTo(t, s, e.params.runCallbacksOnInit, !0) } } } e.params.hashNavigation.watchState && d(o).on("hashchange", p) })() })), i("destroy", (() => { e.params.hashNavigation.enabled && e.params.hashNavigation.watchState && d(o).off("hashchange", p) })), i("transitionEnd _freeModeNoMomentumRelease", (() => { n && c() })), i("slideChange", (() => { n && e.params.cssMode && c() })) }, function ({ swiper: e, extendParams: t, on: s, emit: i }) { let r; function n() { const t = e.slides.eq(e.activeIndex); let s = e.params.autoplay.delay; t.attr("data-swiper-autoplay") && (s = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), clearTimeout(r), r = c((() => { let t; e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), t = e.slidePrev(e.params.speed, !0, !0), i("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? o() : (t = e.slideTo(e.slides.length - 1, e.params.speed, !0, !0), i("autoplay")) : (t = e.slidePrev(e.params.speed, !0, !0), i("autoplay")) : e.params.loop ? (e.loopFix(), t = e.slideNext(e.params.speed, !0, !0), i("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? o() : (t = e.slideTo(0, e.params.speed, !0, !0), i("autoplay")) : (t = e.slideNext(e.params.speed, !0, !0), i("autoplay")), (e.params.cssMode && e.autoplay.running || !1 === t) && n() }), s) } function l() { return void 0 === r && (!e.autoplay.running && (e.autoplay.running = !0, i("autoplayStart"), n(), !0)) } function o() { return !!e.autoplay.running && (void 0 !== r && (r && (clearTimeout(r), r = void 0), e.autoplay.running = !1, i("autoplayStop"), !0)) } function d(t) { e.autoplay.running && (e.autoplay.paused || (r && clearTimeout(r), e.autoplay.paused = !0, 0 !== t && e.params.autoplay.waitForTransition ? ["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].addEventListener(t, u) })) : (e.autoplay.paused = !1, n()))) } function p() { const t = a(); "hidden" === t.visibilityState && e.autoplay.running && d(), "visible" === t.visibilityState && e.autoplay.paused && (n(), e.autoplay.paused = !1) } function u(t) { e && !e.destroyed && e.$wrapperEl && t.target === e.$wrapperEl[0] && (["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].removeEventListener(t, u) })), e.autoplay.paused = !1, e.autoplay.running ? n() : o()) } function h() { e.params.autoplay.disableOnInteraction ? o() : d(), ["transitionend", "webkitTransitionEnd"].forEach((t => { e.$wrapperEl[0].removeEventListener(t, u) })) } function m() { e.params.autoplay.disableOnInteraction || (e.autoplay.paused = !1, n()) } e.autoplay = { running: !1, paused: !1 }, t({ autoplay: { enabled: !1, delay: 3e3, waitForTransition: !0, disableOnInteraction: !0, stopOnLastSlide: !1, reverseDirection: !1, pauseOnMouseEnter: !1 } }), s("init", (() => { if (e.params.autoplay.enabled) { l(); a().addEventListener("visibilitychange", p), e.params.autoplay.pauseOnMouseEnter && (e.$el.on("mouseenter", h), e.$el.on("mouseleave", m)) } })), s("beforeTransitionStart", ((t, s, a) => { e.autoplay.running && (a || !e.params.autoplay.disableOnInteraction ? e.autoplay.pause(s) : o()) })), s("sliderFirstMove", (() => { e.autoplay.running && (e.params.autoplay.disableOnInteraction ? o() : d()) })), s("touchEnd", (() => { e.params.cssMode && e.autoplay.paused && !e.params.autoplay.disableOnInteraction && n() })), s("destroy", (() => { e.$el.off("mouseenter", h), e.$el.off("mouseleave", m), e.autoplay.running && o(); a().removeEventListener("visibilitychange", p) })), Object.assign(e.autoplay, { pause: d, run: n, start: l, stop: o }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ thumbs: { swiper: null, multipleActiveThumbs: !0, autoScrollOffset: 0, slideThumbActiveClass: "swiper-slide-thumb-active", thumbsContainerClass: "swiper-thumbs" } }); let a = !1, i = !1; function r() { const t = e.thumbs.swiper; if (!t) return; const s = t.clickedIndex, a = t.clickedSlide; if (a && d(a).hasClass(e.params.thumbs.slideThumbActiveClass)) return; if (null == s) return; let i; if (i = t.params.loop ? parseInt(d(t.clickedSlide).attr("data-swiper-slide-index"), 10) : s, e.params.loop) { let t = e.activeIndex; e.slides.eq(t).hasClass(e.params.slideDuplicateClass) && (e.loopFix(), e._clientLeft = e.$wrapperEl[0].clientLeft, t = e.activeIndex); const s = e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(), a = e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(); i = void 0 === s ? a : void 0 === a ? s : a - t < t - s ? a : s } e.slideTo(i) } function n() { const { thumbs: t } = e.params; if (a) return !1; a = !0; const s = e.constructor; if (t.swiper instanceof s) e.thumbs.swiper = t.swiper, Object.assign(e.thumbs.swiper.originalParams, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), Object.assign(e.thumbs.swiper.params, { watchSlidesProgress: !0, slideToClickedSlide: !1 }); else if (m(t.swiper)) { const a = Object.assign({}, t.swiper); Object.assign(a, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), e.thumbs.swiper = new s(a), i = !0 } return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", r), !0 } function l(t) { const s = e.thumbs.swiper; if (!s) return; const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView, i = e.params.thumbs.autoScrollOffset, r = i && !s.params.loop; if (e.realIndex !== s.realIndex || r) { let n, l, o = s.activeIndex; if (s.params.loop) { s.slides.eq(o).hasClass(s.params.slideDuplicateClass) && (s.loopFix(), s._clientLeft = s.$wrapperEl[0].clientLeft, o = s.activeIndex); const t = s.slides.eq(o).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(), a = s.slides.eq(o).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(); n = void 0 === t ? a : void 0 === a ? t : a - o == o - t ? s.params.slidesPerGroup > 1 ? a : o : a - o < o - t ? a : t, l = e.activeIndex > e.previousIndex ? "next" : "prev" } else n = e.realIndex, l = n > e.previousIndex ? "next" : "prev"; r && (n += "next" === l ? i : -1 * i), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(n) < 0 && (s.params.centeredSlides ? n = n > o ? n - Math.floor(a / 2) + 1 : n + Math.floor(a / 2) - 1 : n > o && s.params.slidesPerGroup, s.slideTo(n, t ? 0 : void 0)) } let n = 1; const l = e.params.thumbs.slideThumbActiveClass; if (e.params.slidesPerView > 1 && !e.params.centeredSlides && (n = e.params.slidesPerView), e.params.thumbs.multipleActiveThumbs || (n = 1), n = Math.floor(n), s.slides.removeClass(l), s.params.loop || s.params.virtual && s.params.virtual.enabled) for (let t = 0; t < n; t += 1)s.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex + t}"]`).addClass(l); else for (let t = 0; t < n; t += 1)s.slides.eq(e.realIndex + t).addClass(l) } e.thumbs = { swiper: null }, s("beforeInit", (() => { const { thumbs: t } = e.params; t && t.swiper && (n(), l(!0)) })), s("slideChange update resize observerUpdate", (() => { e.thumbs.swiper && l() })), s("setTransition", ((t, s) => { const a = e.thumbs.swiper; a && a.setTransition(s) })), s("beforeDestroy", (() => { const t = e.thumbs.swiper; t && i && t && t.destroy() })), Object.assign(e.thumbs, { init: n, update: l }) }, function ({ swiper: e, extendParams: t, emit: s, once: a }) { t({ freeMode: { enabled: !1, momentum: !0, momentumRatio: 1, momentumBounce: !0, momentumBounceRatio: 1, momentumVelocityRatio: 1, sticky: !1, minimumVelocity: .02 } }), Object.assign(e, { freeMode: { onTouchMove: function () { const { touchEventsData: t, touches: s } = e; 0 === t.velocities.length && t.velocities.push({ position: s[e.isHorizontal() ? "startX" : "startY"], time: t.touchStartTime }), t.velocities.push({ position: s[e.isHorizontal() ? "currentX" : "currentY"], time: u() }) }, onTouchEnd: function ({ currentPos: t }) { const { params: i, $wrapperEl: r, rtlTranslate: n, snapGrid: l, touchEventsData: o } = e, d = u() - o.touchStartTime; if (t < -e.minTranslate()) e.slideTo(e.activeIndex); else if (t > -e.maxTranslate()) e.slides.length < l.length ? e.slideTo(l.length - 1) : e.slideTo(e.slides.length - 1); else { if (i.freeMode.momentum) { if (o.velocities.length > 1) { const t = o.velocities.pop(), s = o.velocities.pop(), a = t.position - s.position, r = t.time - s.time; e.velocity = a / r, e.velocity /= 2, Math.abs(e.velocity) < i.freeMode.minimumVelocity && (e.velocity = 0), (r > 150 || u() - t.time > 300) && (e.velocity = 0) } else e.velocity = 0; e.velocity *= i.freeMode.momentumVelocityRatio, o.velocities.length = 0; let t = 1e3 * i.freeMode.momentumRatio; const d = e.velocity * t; let p = e.translate + d; n && (p = -p); let c, h = !1; const m = 20 * Math.abs(e.velocity) * i.freeMode.momentumBounceRatio; let f; if (p < e.maxTranslate()) i.freeMode.momentumBounce ? (p + e.maxTranslate() < -m && (p = e.maxTranslate() - m), c = e.maxTranslate(), h = !0, o.allowMomentumBounce = !0) : p = e.maxTranslate(), i.loop && i.centeredSlides && (f = !0); else if (p > e.minTranslate()) i.freeMode.momentumBounce ? (p - e.minTranslate() > m && (p = e.minTranslate() + m), c = e.minTranslate(), h = !0, o.allowMomentumBounce = !0) : p = e.minTranslate(), i.loop && i.centeredSlides && (f = !0); else if (i.freeMode.sticky) { let t; for (let e = 0; e < l.length; e += 1)if (l[e] > -p) { t = e; break } p = Math.abs(l[t] - p) < Math.abs(l[t - 1] - p) || "next" === e.swipeDirection ? l[t] : l[t - 1], p = -p } if (f && a("transitionEnd", (() => { e.loopFix() })), 0 !== e.velocity) { if (t = n ? Math.abs((-p - e.translate) / e.velocity) : Math.abs((p - e.translate) / e.velocity), i.freeMode.sticky) { const s = Math.abs((n ? -p : p) - e.translate), a = e.slidesSizesGrid[e.activeIndex]; t = s < a ? i.speed : s < 2 * a ? 1.5 * i.speed : 2.5 * i.speed } } else if (i.freeMode.sticky) return void e.slideToClosest(); i.freeMode.momentumBounce && h ? (e.updateProgress(c), e.setTransition(t), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating = !0, r.transitionEnd((() => { e && !e.destroyed && o.allowMomentumBounce && (s("momentumBounce"), e.setTransition(i.speed), setTimeout((() => { e.setTranslate(c), r.transitionEnd((() => { e && !e.destroyed && e.transitionEnd() })) }), 0)) }))) : e.velocity ? (s("_freeModeNoMomentumRelease"), e.updateProgress(p), e.setTransition(t), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, r.transitionEnd((() => { e && !e.destroyed && e.transitionEnd() })))) : e.updateProgress(p), e.updateActiveIndex(), e.updateSlidesClasses() } else { if (i.freeMode.sticky) return void e.slideToClosest(); i.freeMode && s("_freeModeNoMomentumRelease") } (!i.freeMode.momentum || d >= i.longSwipesMs) && (e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses()) } } } }) }, function ({ swiper: e, extendParams: t }) { let s, a, i; t({ grid: { rows: 1, fill: "column" } }), e.grid = { initSlides: t => { const { slidesPerView: r } = e.params, { rows: n, fill: l } = e.params.grid; a = s / n, i = Math.floor(t / n), s = Math.floor(t / n) === t / n ? t : Math.ceil(t / n) * n, "auto" !== r && "row" === l && (s = Math.max(s, r * n)) }, updateSlide: (t, r, n, l) => { const { slidesPerGroup: o, spaceBetween: d } = e.params, { rows: p, fill: c } = e.params.grid; let u, h, m; if ("row" === c && o > 1) { const e = Math.floor(t / (o * p)), a = t - p * o * e, i = 0 === e ? o : Math.min(Math.ceil((n - e * p * o) / p), o); m = Math.floor(a / i), h = a - m * i + e * o, u = h + m * s / p, r.css({ "-webkit-order": u, order: u }) } else "column" === c ? (h = Math.floor(t / p), m = t - h * p, (h > i || h === i && m === p - 1) && (m += 1, m >= p && (m = 0, h += 1))) : (m = Math.floor(t / a), h = t - m * a); r.css(l("margin-top"), 0 !== m ? d && `${d}px` : "") }, updateWrapperSize: (t, a, i) => { const { spaceBetween: r, centeredSlides: n, roundLengths: l } = e.params, { rows: o } = e.params.grid; if (e.virtualSize = (t + r) * s, e.virtualSize = Math.ceil(e.virtualSize / o) - r, e.$wrapperEl.css({ [i("width")]: `${e.virtualSize + r}px` }), n) { a.splice(0, a.length); const t = []; for (let s = 0; s < a.length; s += 1) { let i = a[s]; l && (i = Math.floor(i)), a[s] < e.virtualSize + a[0] && t.push(i) } a.push(...t) } } } }, function ({ swiper: e }) { Object.assign(e, { appendSlide: R.bind(e), prependSlide: j.bind(e), addSlide: _.bind(e), removeSlide: V.bind(e), removeAllSlides: q.bind(e) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ fadeEffect: { crossFade: !1, transformEl: null } }), F({ effect: "fade", swiper: e, on: s, setTranslate: () => { const { slides: t } = e, s = e.params.fadeEffect; for (let a = 0; a < t.length; a += 1) { const t = e.slides.eq(a); let i = -t[0].swiperSlideOffset; e.params.virtualTranslate || (i -= e.translate); let r = 0; e.isHorizontal() || (r = i, i = 0); const n = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(t[0].progress), 0) : 1 + Math.min(Math.max(t[0].progress, -1), 0); U(s, t).css({ opacity: n }).transform(`translate3d(${i}px, ${r}px, 0px)`) } }, setTransition: t => { const { transformEl: s } = e.params.fadeEffect; (s ? e.slides.find(s) : e.slides).transition(t), K({ swiper: e, duration: t, transformEl: s, allSlides: !0 }) }, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ cubeEffect: { slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: .94 } }), F({ effect: "cube", swiper: e, on: s, setTranslate: () => { const { $el: t, $wrapperEl: s, slides: a, width: i, height: r, rtlTranslate: n, size: l, browser: o } = e, p = e.params.cubeEffect, c = e.isHorizontal(), u = e.virtual && e.params.virtual.enabled; let h, m = 0; p.shadow && (c ? (h = s.find(".swiper-cube-shadow"), 0 === h.length && (h = d('
'), s.append(h)), h.css({ height: `${i}px` })) : (h = t.find(".swiper-cube-shadow"), 0 === h.length && (h = d('
'), t.append(h)))); for (let e = 0; e < a.length; e += 1) { const t = a.eq(e); let s = e; u && (s = parseInt(t.attr("data-swiper-slide-index"), 10)); let i = 90 * s, r = Math.floor(i / 360); n && (i = -i, r = Math.floor(-i / 360)); const o = Math.max(Math.min(t[0].progress, 1), -1); let h = 0, f = 0, g = 0; s % 4 == 0 ? (h = 4 * -r * l, g = 0) : (s - 1) % 4 == 0 ? (h = 0, g = 4 * -r * l) : (s - 2) % 4 == 0 ? (h = l + 4 * r * l, g = l) : (s - 3) % 4 == 0 && (h = -l, g = 3 * l + 4 * l * r), n && (h = -h), c || (f = h, h = 0); const v = `rotateX(${c ? 0 : -i}deg) rotateY(${c ? i : 0}deg) translate3d(${h}px, ${f}px, ${g}px)`; if (o <= 1 && o > -1 && (m = 90 * s + 90 * o, n && (m = 90 * -s - 90 * o)), t.transform(v), p.slideShadows) { let e = c ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), s = c ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === e.length && (e = d(`
`), t.append(e)), 0 === s.length && (s = d(`
`), t.append(s)), e.length && (e[0].style.opacity = Math.max(-o, 0)), s.length && (s[0].style.opacity = Math.max(o, 0)) } } if (s.css({ "-webkit-transform-origin": `50% 50% -${l / 2}px`, "transform-origin": `50% 50% -${l / 2}px` }), p.shadow) if (c) h.transform(`translate3d(0px, ${i / 2 + p.shadowOffset}px, ${-i / 2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`); else { const e = Math.abs(m) - 90 * Math.floor(Math.abs(m) / 90), t = 1.5 - (Math.sin(2 * e * Math.PI / 360) / 2 + Math.cos(2 * e * Math.PI / 360) / 2), s = p.shadowScale, a = p.shadowScale / t, i = p.shadowOffset; h.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${r / 2 + i}px, ${-r / 2 / a}px) rotateX(-90deg)`) } const f = o.isSafari || o.isWebView ? -l / 2 : 0; s.transform(`translate3d(0px,0,${f}px) rotateX(${e.isHorizontal() ? 0 : m}deg) rotateY(${e.isHorizontal() ? -m : 0}deg)`) }, setTransition: t => { const { $el: s, slides: a } = e; a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t), e.params.cubeEffect.shadow && !e.isHorizontal() && s.find(".swiper-cube-shadow").transition(t) }, perspective: () => !0, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, resistanceRatio: 0, spaceBetween: 0, centeredSlides: !1, virtualTranslate: !0 }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ flipEffect: { slideShadows: !0, limitRotation: !0, transformEl: null } }), F({ effect: "flip", swiper: e, on: s, setTranslate: () => { const { slides: t, rtlTranslate: s } = e, a = e.params.flipEffect; for (let i = 0; i < t.length; i += 1) { const r = t.eq(i); let n = r[0].progress; e.params.flipEffect.limitRotation && (n = Math.max(Math.min(r[0].progress, 1), -1)); const l = r[0].swiperSlideOffset; let o = -180 * n, d = 0, p = e.params.cssMode ? -l - e.translate : -l, c = 0; if (e.isHorizontal() ? s && (o = -o) : (c = p, p = 0, d = -o, o = 0), r[0].style.zIndex = -Math.abs(Math.round(n)) + t.length, a.slideShadows) { let t = e.isHorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"), s = e.isHorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom"); 0 === t.length && (t = Z(a, r, e.isHorizontal() ? "left" : "top")), 0 === s.length && (s = Z(a, r, e.isHorizontal() ? "right" : "bottom")), t.length && (t[0].style.opacity = Math.max(-n, 0)), s.length && (s[0].style.opacity = Math.max(n, 0)) } const u = `translate3d(${p}px, ${c}px, 0px) rotateX(${d}deg) rotateY(${o}deg)`; U(a, r).transform(u) } }, setTransition: t => { const { transformEl: s } = e.params.flipEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t), K({ swiper: e, duration: t, transformEl: s }) }, perspective: () => !0, overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ coverflowEffect: { rotate: 50, stretch: 0, depth: 100, scale: 1, modifier: 1, slideShadows: !0, transformEl: null } }), F({ effect: "coverflow", swiper: e, on: s, setTranslate: () => { const { width: t, height: s, slides: a, slidesSizesGrid: i } = e, r = e.params.coverflowEffect, n = e.isHorizontal(), l = e.translate, o = n ? t / 2 - l : s / 2 - l, d = n ? r.rotate : -r.rotate, p = r.depth; for (let e = 0, t = a.length; e < t; e += 1) { const t = a.eq(e), s = i[e], l = (o - t[0].swiperSlideOffset - s / 2) / s * r.modifier; let c = n ? d * l : 0, u = n ? 0 : d * l, h = -p * Math.abs(l), m = r.stretch; "string" == typeof m && -1 !== m.indexOf("%") && (m = parseFloat(r.stretch) / 100 * s); let f = n ? 0 : m * l, g = n ? m * l : 0, v = 1 - (1 - r.scale) * Math.abs(l); Math.abs(g) < .001 && (g = 0), Math.abs(f) < .001 && (f = 0), Math.abs(h) < .001 && (h = 0), Math.abs(c) < .001 && (c = 0), Math.abs(u) < .001 && (u = 0), Math.abs(v) < .001 && (v = 0); const w = `translate3d(${g}px,${f}px,${h}px) rotateX(${u}deg) rotateY(${c}deg) scale(${v})`; if (U(r, t).transform(w), t[0].style.zIndex = 1 - Math.abs(Math.round(l)), r.slideShadows) { let e = n ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), s = n ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === e.length && (e = Z(r, t, n ? "left" : "top")), 0 === s.length && (s = Z(r, t, n ? "right" : "bottom")), e.length && (e[0].style.opacity = l > 0 ? l : 0), s.length && (s[0].style.opacity = -l > 0 ? -l : 0) } } }, setTransition: t => { const { transformEl: s } = e.params.coverflowEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t) }, perspective: () => !0, overwriteParams: () => ({ watchSlidesProgress: !0 }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ creativeEffect: { transformEl: null, limitProgress: 1, shadowPerProgress: !1, progressMultiplier: 1, perspective: !0, prev: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 }, next: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 } } }); const a = e => "string" == typeof e ? e : `${e}px`; F({ effect: "creative", swiper: e, on: s, setTranslate: () => { const { slides: t, $wrapperEl: s, slidesSizesGrid: i } = e, r = e.params.creativeEffect, { progressMultiplier: n } = r, l = e.params.centeredSlides; if (l) { const t = i[0] / 2 - e.params.slidesOffsetBefore || 0; s.transform(`translateX(calc(50% - ${t}px))`) } for (let s = 0; s < t.length; s += 1) { const i = t.eq(s), o = i[0].progress, d = Math.min(Math.max(i[0].progress, -r.limitProgress), r.limitProgress); let p = d; l || (p = Math.min(Math.max(i[0].originalProgress, -r.limitProgress), r.limitProgress)); const c = i[0].swiperSlideOffset, u = [e.params.cssMode ? -c - e.translate : -c, 0, 0], h = [0, 0, 0]; let m = !1; e.isHorizontal() || (u[1] = u[0], u[0] = 0); let f = { translate: [0, 0, 0], rotate: [0, 0, 0], scale: 1, opacity: 1 }; d < 0 ? (f = r.next, m = !0) : d > 0 && (f = r.prev, m = !0), u.forEach(((e, t) => { u[t] = `calc(${e}px + (${a(f.translate[t])} * ${Math.abs(d * n)}))` })), h.forEach(((e, t) => { h[t] = f.rotate[t] * Math.abs(d * n) })), i[0].style.zIndex = -Math.abs(Math.round(o)) + t.length; const g = u.join(", "), v = `rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`, w = p < 0 ? `scale(${1 + (1 - f.scale) * p * n})` : `scale(${1 - (1 - f.scale) * p * n})`, b = p < 0 ? 1 + (1 - f.opacity) * p * n : 1 - (1 - f.opacity) * p * n, x = `translate3d(${g}) ${v} ${w}`; if (m && f.shadow || !m) { let e = i.children(".swiper-slide-shadow"); if (0 === e.length && f.shadow && (e = Z(r, i)), e.length) { const t = r.shadowPerProgress ? d * (1 / r.limitProgress) : d; e[0].style.opacity = Math.min(Math.max(Math.abs(t), 0), 1) } } const y = U(r, i); y.transform(x).css({ opacity: b }), f.origin && y.css("transform-origin", f.origin) } }, setTransition: t => { const { transformEl: s } = e.params.creativeEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow").transition(t), K({ swiper: e, duration: t, transformEl: s, allSlides: !0 }) }, perspective: () => e.params.creativeEffect.perspective, overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !e.params.cssMode }) }) }, function ({ swiper: e, extendParams: t, on: s }) { t({ cardsEffect: { slideShadows: !0, transformEl: null } }), F({ effect: "cards", swiper: e, on: s, setTranslate: () => { const { slides: t, activeIndex: s } = e, a = e.params.cardsEffect, { startTranslate: i, isTouched: r } = e.touchEventsData, n = e.translate; for (let l = 0; l < t.length; l += 1) { const o = t.eq(l), d = o[0].progress, p = Math.min(Math.max(d, -4), 4); let c = o[0].swiperSlideOffset; e.params.centeredSlides && !e.params.cssMode && e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`), e.params.centeredSlides && e.params.cssMode && (c -= t[0].swiperSlideOffset); let u = e.params.cssMode ? -c - e.translate : -c, h = 0; const m = -100 * Math.abs(p); let f = 1, g = -2 * p, v = 8 - .75 * Math.abs(p); const w = (l === s || l === s - 1) && p > 0 && p < 1 && (r || e.params.cssMode) && n < i, b = (l === s || l === s + 1) && p < 0 && p > -1 && (r || e.params.cssMode) && n > i; if (w || b) { const e = (1 - Math.abs((Math.abs(p) - .5) / .5)) ** .5; g += -28 * p * e, f += -.5 * e, v += 96 * e, h = -25 * e * Math.abs(p) + "%" } if (u = p < 0 ? `calc(${u}px + (${v * Math.abs(p)}%))` : p > 0 ? `calc(${u}px + (-${v * Math.abs(p)}%))` : `${u}px`, !e.isHorizontal()) { const e = h; h = u, u = e } const x = `\n translate3d(${u}, ${h}, ${m}px)\n rotateZ(${g}deg)\n scale(${p < 0 ? "" + (1 + (1 - f) * p) : "" + (1 - (1 - f) * p)})\n `; if (a.slideShadows) { let e = o.find(".swiper-slide-shadow"); 0 === e.length && (e = Z(a, o)), e.length && (e[0].style.opacity = Math.min(Math.max((Math.abs(p) - .5) / .5, 0), 1)) } o[0].style.zIndex = -Math.abs(Math.round(d)) + t.length; U(a, o).transform(x) } }, setTransition: t => { const { transformEl: s } = e.params.cardsEffect; (s ? e.slides.find(s) : e.slides).transition(t).find(".swiper-slide-shadow").transition(t), K({ swiper: e, duration: t, transformEl: s }) }, perspective: () => !0, overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !e.params.cssMode }) }) }]; return H.use(J), H })); +//# sourceMappingURL=swiper-bundle.min.js.map \ No newline at end of file diff --git a/static/layered-waves-haikei-cropped.svg b/static/layered-waves-haikei-cropped.svg new file mode 100644 index 0000000000000000000000000000000000000000..63f9f0cd671f192a00db5ea7d6b03a597e8783bc --- /dev/null +++ b/static/layered-waves-haikei-cropped.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/layered-waves-haikei.png b/static/layered-waves-haikei.png new file mode 100644 index 0000000000000000000000000000000000000000..96774ab465af49b25817b20c6093ba24f9823e1c Binary files /dev/null and b/static/layered-waves-haikei.png differ diff --git a/static/layered-waves-haikei.svg b/static/layered-waves-haikei.svg new file mode 100644 index 0000000000000000000000000000000000000000..9187b04b874db3c9bd0809ac7bc3b2125864798e --- /dev/null +++ b/static/layered-waves-haikei.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/loaderanimation_old.mp4 b/static/loaderanimation_old.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..bb504f0208ce43563b0aa76194ed0b475c4aed7a Binary files /dev/null and b/static/loaderanimation_old.mp4 differ diff --git a/static/log-back.png b/static/log-back.png new file mode 100644 index 0000000000000000000000000000000000000000..2837a9e9c288b594f4dafd05a193a4662616d7f2 Binary files /dev/null and b/static/log-back.png differ diff --git a/static/log-bak.png b/static/log-bak.png new file mode 100644 index 0000000000000000000000000000000000000000..15432b084a5f955a1c26b422777b0a9d20020def Binary files /dev/null and b/static/log-bak.png differ diff --git a/static/login-back.png b/static/login-back.png new file mode 100644 index 0000000000000000000000000000000000000000..87ac479acee9673d882972b4f5dcf905a82a1053 Binary files /dev/null and b/static/login-back.png differ diff --git a/static/login-back.svg b/static/login-back.svg new file mode 100644 index 0000000000000000000000000000000000000000..8e717f8a8229010f4dab615cf173f2ba8962e9d7 --- /dev/null +++ b/static/login-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/parameters/1101.png b/static/parameters/1101.png new file mode 100644 index 0000000000000000000000000000000000000000..1cc9b1897a426c211cef839d6aa593bf6d9d20e3 Binary files /dev/null and b/static/parameters/1101.png differ diff --git a/static/parameters/1102.png b/static/parameters/1102.png new file mode 100644 index 0000000000000000000000000000000000000000..f0f973012badf2bab1634437648e1acafb845b86 Binary files /dev/null and b/static/parameters/1102.png differ diff --git a/static/parameters/1103.png b/static/parameters/1103.png new file mode 100644 index 0000000000000000000000000000000000000000..57e67edce6df60a58bcd1a6b770dfab793eda520 Binary files /dev/null and b/static/parameters/1103.png differ diff --git a/static/parameters/1104.png b/static/parameters/1104.png new file mode 100644 index 0000000000000000000000000000000000000000..fac8a9a25d220b0112f45025ff819bc16231fa95 Binary files /dev/null and b/static/parameters/1104.png differ diff --git a/static/parameters/1105.png b/static/parameters/1105.png new file mode 100644 index 0000000000000000000000000000000000000000..366d2dc78d7ff42c805e9c9f140809e8666a3eae Binary files /dev/null and b/static/parameters/1105.png differ diff --git a/static/parameters/1106.png b/static/parameters/1106.png new file mode 100644 index 0000000000000000000000000000000000000000..2cc3f336b794132f5793ce68c11a0a618733a65e Binary files /dev/null and b/static/parameters/1106.png differ diff --git a/static/parameters/1107.png b/static/parameters/1107.png new file mode 100644 index 0000000000000000000000000000000000000000..b587c0d06657fc80c23c71d5213c2f01b61def60 Binary files /dev/null and b/static/parameters/1107.png differ diff --git a/static/parameters/1108.png b/static/parameters/1108.png new file mode 100644 index 0000000000000000000000000000000000000000..a3fd298ca2d13030e92ae27c9685120fb8b2efda Binary files /dev/null and b/static/parameters/1108.png differ diff --git a/static/party-popper.png b/static/party-popper.png new file mode 100644 index 0000000000000000000000000000000000000000..8ffb1889f8f60a894887bae947838603eef06fbd Binary files /dev/null and b/static/party-popper.png differ diff --git a/static/rejected.png b/static/rejected.png new file mode 100644 index 0000000000000000000000000000000000000000..ee945cf17d0aea10874d31d9f801fe551f3a286a Binary files /dev/null and b/static/rejected.png differ diff --git a/static/smilecheck_logo.png b/static/smilecheck_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..0364ae26fb1df978f2f5aadb4f0e49ef29199b0a Binary files /dev/null and b/static/smilecheck_logo.png differ diff --git a/static/smilecheckloader.mp4 b/static/smilecheckloader.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..25d8a0839152651df52dddf53116d362af551e70 Binary files /dev/null and b/static/smilecheckloader.mp4 differ diff --git a/static/smilelogo-transperent.png b/static/smilelogo-transperent.png new file mode 100644 index 0000000000000000000000000000000000000000..a79143d286821369d9ab61db94130acace15894a Binary files /dev/null and b/static/smilelogo-transperent.png differ diff --git a/static/smilelogo.png b/static/smilelogo.png new file mode 100644 index 0000000000000000000000000000000000000000..b33cb13c0fc41f1d4ef4981d8ea503c26a49b835 Binary files /dev/null and b/static/smilelogo.png differ diff --git a/static/user-home.png b/static/user-home.png new file mode 100644 index 0000000000000000000000000000000000000000..2e224a1ecd6a2f4d87885053f17ef66b57b530b5 Binary files /dev/null and b/static/user-home.png differ diff --git a/static/user-home.svg b/static/user-home.svg new file mode 100644 index 0000000000000000000000000000000000000000..0f55d403e01ca19b977f2a895064070c30cc825b --- /dev/null +++ b/static/user-home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/user.gif b/static/user.gif new file mode 100644 index 0000000000000000000000000000000000000000..c5292f09a6d968cabf910ae7f5dc66ce33ab239c Binary files /dev/null and b/static/user.gif differ diff --git a/static/wellbeing.png b/static/wellbeing.png new file mode 100644 index 0000000000000000000000000000000000000000..1cc9b1897a426c211cef839d6aa593bf6d9d20e3 Binary files /dev/null and b/static/wellbeing.png differ diff --git a/templates/admin.html b/templates/admin.html new file mode 100644 index 0000000000000000000000000000000000000000..1c71df59253237f29e4dafa48619dff1632d5359 --- /dev/null +++ b/templates/admin.html @@ -0,0 +1,951 @@ + + + + + Admin Page + + + + + + + + + + +
+















+
+
+
+
+
+ 0% +
+
+ + +
+ +
+ +



+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

{% if session['id'] %} {{ session['name'] }} {% else %} Login {% endif %}

+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + +
+
+
+

{% if session['name'] %} Welcome {{ session['name'] }}, {% endif %}

+ As an administrator, you have access to a range of features that will help you manage and support your students. +
+ +
+
+

Total Students

+ {{ ts }} +
+
+

Happiness Index

+ {{ ahi }} +
+
+

Total Assessments Submitted

+ {{ tas }} +
+
+
+ +
+
+
+
+
+ Assessments +
+
+
+ + + + + + + + + + + + + + + + + + {% for row in assess %} + + + + + + {% endfor %} + +
IDNameDescriptionOverall Score
IDNameDescriptionOverall Score
{{ row.assessId }}{{ row.name }}{{ row.description[0:71] }}...{{ row.average }}
+
+
+ +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/templates/change.html b/templates/change.html new file mode 100644 index 0000000000000000000000000000000000000000..3966ab228ddec16bdc8def901b44b6aac7a921f4 --- /dev/null +++ b/templates/change.html @@ -0,0 +1,41 @@ +{% extends 'layout.html' %} +{% block title %} Change Password {% endblock %} +{% block content %} +


+
+
+ +

+ + +

+ + + +
+
+
+ + + +{% endblock %} \ No newline at end of file diff --git a/templates/custom.html b/templates/custom.html new file mode 100644 index 0000000000000000000000000000000000000000..9d7412242783e6b1c543f0d1b2ac2e8f72000924 --- /dev/null +++ b/templates/custom.html @@ -0,0 +1,276 @@ + +{% extends 'layout.html' %} +{% block title %} Custom Form {% endblock %} +{% block content %} +

{{data}} {{comp}} {{len}}{{types}}

+
+
+
+

Create New Assessment

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ +
+ +
+ + + +
+
+ +
+
+
+ + + +{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/customresult.html b/templates/customresult.html new file mode 100644 index 0000000000000000000000000000000000000000..79bbe93dd3568c03237679d4a68047e360eb33b0 --- /dev/null +++ b/templates/customresult.html @@ -0,0 +1,87 @@ + + + + + Custom Result + + + +
+ + +
+ + + diff --git a/templates/email.html b/templates/email.html new file mode 100644 index 0000000000000000000000000000000000000000..a73c69cdadda523a680de4b63e93db324690aae0 --- /dev/null +++ b/templates/email.html @@ -0,0 +1,432 @@ + + + + + + + + + + + + Smile + + + + + + + + + + + +
SmileCheck 😄
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000000000000000000000000000000000000..acce474d84a9d37a2f0f11265f93eb42d7ca9391 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,25 @@ +{% extends 'layout.html' %} +{% block title %} Home {% endblock %} +{% block content %} +
+ +
+
+

505: Internal Server Error

+ +
+ + + + +{% endblock %} \ No newline at end of file diff --git a/templates/forgot.html b/templates/forgot.html new file mode 100644 index 0000000000000000000000000000000000000000..8c05a5ba045c2e316e8dcc3679e136e104a9baef --- /dev/null +++ b/templates/forgot.html @@ -0,0 +1,15 @@ +{% extends 'layout.html' %} +{% block title %} Forgot Password {% endblock %} +{% block content %} +


+
+
+ + +

{{ mess }}

+
+
+
+ + +{% endblock %} \ No newline at end of file diff --git a/templates/form.html b/templates/form.html new file mode 100644 index 0000000000000000000000000000000000000000..9033dd8de9c50cb4707807470ad78c9c0fc0f335 --- /dev/null +++ b/templates/form.html @@ -0,0 +1,39 @@ + +{% extends 'layout.html' %} +{% block title %} Home {% endblock %} +{% block content %} +
+
+

Assessment


+

Name of Assessment :
{{ questions['name'] }}

+

Description : {{ questions['description'] }}

+
+
+
+
+ {% set questions_list = questions['Questions'][2:-2].split('", "') %} + {% for i in range(1, questions_list|count+1) %} +
+
+ {{ i }} +

+ +
+
+ {% endfor %} +
+ + +
+
+
+{% endblock %} diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000000000000000000000000000000000000..ea215ab95efe5c7b780e24280ceb86ccd252b976 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,784 @@ + + + + + Home Page + + + + + + + + + + +
+















+
+
+
+
+
+ 0% +
+
+ + +
+ +
+ +



+ +
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

{% if session['id'] %} {{ session['name'] }} {% else %} Login {% endif %}

+
+
+
+
+
+
+
+
+ +
+ {% if session['feed'] == 1 %}
Check   Your Feedback is sent successfuly.
+ {% endif %} +
+
+

{% if session['name'] %} Welcome {{ session['name'] }}, {% else %} Welcome, {% endif %}

+

To get started, simply create an account and complete the assessment. You'll receive a detailed report that includes your happiness score, as well as personalized recommendations for how you can improve your wellbeing. You can even track your progress over time, so you can see how your happiness level changes as you implement our recommendations.

+
+ Select Assessment +
+
+
+
+ {% if session['email'] %} + {% for types in typedata %} + + {% endfor %} + {% else %} + + {% endif %} + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + +
+
+{{ typedata }} + {{ given }} + {{ previous }} + + + + + + + + + + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000000000000000000000000000000000000..207dbbf6d838ab87225b8e8ff7c214dd3a768b06 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,229 @@ + + + + + + + SmileCheck + + + + + + +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ 0 +
+
+ + +
+ +
+ +
+ + + + + + +
+
+
+ + +
+

SmileCheck Happy Index

+

Welcome to SmileCheck - the revolutionary web app that helps college students measure their happiness index! Our app is designed to analyze your sentiment and provide you with an accurate assessment of your overall level of happiness.

+ +
+
+
+ + +
+

SmileCheck Happy Index

+

Welcome to SmileCheck - the revolutionary web app that helps college students measure their happiness index! Our app is designed to analyze your sentiment and provide you with an accurate assessment of your overall level of happiness.

+ +
+
+
+
+ +
+ +
+

About

+

We understand that college can be a challenging and stressful time for many students, and it's important to prioritize your mental health and wellbeing. That's why we've created SmileCheck - to give you an easy and accessible way to measure your happiness and identify areas where you can improve.
+ Our sentiment analysis tool is based on the latest research in psychology and uses advanced algorithms to analyze your responses to a series of questions. This allows us to provide you with a comprehensive and accurate assessment of your happiness index.

+
+ +
+

Features


+

To get started, simply create an account and complete the assessment. You'll receive a detailed report that includes your happiness score, as well as personalized recommendations for how you can improve your wellbeing. You can even track your progress over time, so you can see how your happiness level changes as you implement our recommendations.

+
+
+
+
+ 1 +


+
+

Sentiment Analysis Tool


+ Our sentiment analysis tool is the core feature of SmileCheck. It allows college students to assess their level of happiness and identify areas where they may need to focus on for improvement. +
+

1

+
+ +
+

2

+
+
+
+ 2 +


+
+

Personalized recommendations


+ Based on the results of the sentiment analysis, SmileCheck provides personalized recommendations to students. These recommendations are tailored to their specific needs and goals, and can help them make positive changes to improve their overall happiness. +
+
+ +
+
+
+
+ 3 +


+
+

Progress Tracking


+ SmileCheck enables students to track their progress over time. By regularly completing the assessment, they can see how their happiness level changes and identify trends or patterns that may need attention. +
+

3

+
+ +
+

4

+
+
+
+ 4 +


+
+

Admin Control


+ SmileCheck offers an admin control feature that allows administrators to create and manage assessments for students. This feature is particularly useful for universities or organizations that want to create custom assessments tailored to their specific needs. +
+
+
+ +
+
+ + + +
+
+
+
+ +
+

Smart India Hackathon [SIH]
Problem Statement 2022

+

Department of School Education & Literacy (DoSEL), Ministry of Education - Development of a happiness index for schools (including mental health and well-being parameters, among others) with self-assessment facilities.

+ +
+
+
+
+
+ +
+
+
+
+
+

Conatct Us
SmileCheck Team

+
+

Mobile : 1234567890
+ Email : smilecheck@gmail.com
+ +

+
+
+
+
+
+ +
+ +
+ + + + + + diff --git a/templates/index/MorphSVGPlugin.min.js b/templates/index/MorphSVGPlugin.min.js new file mode 100644 index 0000000000000000000000000000000000000000..68f4eb5c3422bbcc54a6887cf38cdfded7181afc --- /dev/null +++ b/templates/index/MorphSVGPlugin.min.js @@ -0,0 +1,13 @@ +/*! + * VERSION: 0.9.1 + * DATE: 2019-02-21 + * UPDATES AND DOCS AT: http://greensock.com + * + * @license Copyright (c) 2008-2019, GreenSock. All rights reserved. + * MorphSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use + * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. + * This work is subject to the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + */ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function A(e){_gsScope.console&&console.log(e)}function R(e){function t(e,t,r,o){g=(r-e)/3,p=(o-t)/3,s.push(e+g,t+p,r-g,o-p,r,o)}var r,o,n,i,a,h,s,l,f,g,p,c,u,d=(e+"").replace(q,function(e){var t=+e;return t<1e-4&&-1e-4u[0].length&&x(u[0],(c[0].length-u[0].length)/6|0),C=u.length;dMath.abs(i[0]-a[a.length-2])+Math.abs(i[1]-a[a.length-1])+Math.abs(i[i.length-2]-a[0])+Math.abs(i[i.length-1]-a[1])||r%2)?(w(a),y[C]=-1,S=!0):"auto"===r?y[C]=0:"reverse"===r&&(y[C]=-1),a.closed!==i.closed&&(a.closed=i.closed=!1));return v&&A("shapeIndex:["+y.join(",")+"]"),e.shapeIndex=y}}function n(e,t){for(var r,o,n,i,a=0,h=parseFloat(e[0]),s=parseFloat(e[1]),l=h+","+s+" ",f=e.length,g=.5*t/(.5*f-1),p=0;p element. "+te),!1;if(i="PATH"===n?"d":"points",("string"==typeof t||t.getBBox||t[0])&&(t={shape:t}),!t.prop&&"function"!=typeof e.setAttribute)return!1;if(h=F(t.shape||t.d||t.points||"","d"==i,e),s&&D.test(h))return A("WARNING: a <"+n+"> cannot accept path data. "+te),!1;if(l=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",f=t.map||re.defaultMap,this._prop=t.prop,this._render=t.render||re.defaultRender,this._apply="updateTarget"in t?t.updateTarget:re.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,h){if(this._target=e,S="object"==typeof t.precompile,c=this._prop?e[this._prop]:e.getAttribute(i),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",c),"d"==i||this._prop){if(c=R(S?t.precompile[0]:c),u=R(S?t.precompile[1]:h),!S&&!G(c,u,l,f,P))return!1;for("log"!==t.precompile&&!0!==t.precompile||A('precompile:["'+O(c)+'","'+O(u)+'"]'),(b="linear"!==(t.type||re.defaultType))&&(c=Y(c,t.smoothTolerance),u=Y(u,t.smoothTolerance),c.size||L(c),u.size||L(u),w=j(z[0]),this._origin=c.origin={x:c.left+w.x*c.width,y:c.top+w.y*c.height},z[1]&&(w=j(z[1])),this._eOrigin={x:u.left+w.x*u.width,y:u.top+w.y*u.height}),m=(this._rawPath=e._gsRawPath=c).length;-1<--m;)for(C=c[m],y=u[m],g=C.isSmooth||[],p=y.isSmooth||[],_=C.length,d=B=0;d<_;d+=2)y[d]===C[d]&&y[d+1]===C[d+1]||(b?g[d]&&p[d]?(v=C.smoothData,x=y.smoothData,M=d+(d===_-4?7-_:5),this._controlPT={_next:this._controlPT,i:d,j:m,l1s:v[d+1],l1c:x[d+1]-v[d+1],l2s:v[M],l2c:x[M]-v[M]},a=this._tweenRotation(C,y,d+2),this._tweenRotation(C,y,d,a),this._tweenRotation(C,y,M-1,a),d+=4):this._tweenRotation(C,y,d):(a=this._addTween(C,d,C[d],y[d]),a=this._addTween(C,d+1,C[d+1],y[d+1])||a))}else a=this._addTween(e,"setAttribute",e.getAttribute(i)+"",h+"","morphSVG",!1,i,I(l));b&&(this._addTween(this._origin,"x",this._origin.x,this._eOrigin.x),a=this._addTween(this._origin,"y",this._origin.y,this._eOrigin.y)),a&&(this._overwriteProps.push("morphSVG"),a.end=h,a.endProp=i)}return $},set:function(e){var t,r,o,n,i,a,h,s,l,f,g,p,c,u=this._rawPath,d=this._controlPT,m=this._anchorPT,_=this._rnd,C=this._target;if(this._super.setRatio.call(this,e),1===e&&this._apply)for(o=this._firstPT;o;)o.end&&(this._prop?C[this._prop]=o.end:C.setAttribute(o.endProp,o.end)),o=o._next;else if(u){for(;m;)a=m.sa+e*m.ca,i=m.sl+e*m.cl,m.t[m.i]=this._origin.x+Q(a)*i,m.t[m.i+1]=this._origin.y+E(a)*i,m=m._next;for(r=e<.5?2*e*e:(4-2*e)*e-1;d;)c=(h=d.i)+(h===(n=u[d.j]).length-4?7-n.length:5),a=y(n[c]-n[h+1],n[c-1]-n[h]),g=E(a),p=Q(a),l=n[h+2],f=n[h+3],i=d.l1s+r*d.l1c,n[h]=l-p*i,n[h+1]=f-g*i,i=d.l2s+r*d.l2c,n[c-1]=l+p*i,n[c]=f+g*i,d=d._next;if(C._gsRawPath=u,this._apply){for(t="",s=0;su?g:p,sl:l,cl:W(h*h+s*s)-l,i:r}},re.pathFilter=function(e,t,r,o,n){var i=R(e[0]),a=R(e[1]);G(i,a,t||0===t?t:"auto",r,n)&&(e[0]=O(i),e[1]=O(a),"log"!==o&&!0!==o||A('precompile:["'+e[0]+'","'+e[1]+'"]'))},re.pointsFilter=r,re.getTotalSize=L,re.subdivideRawBezier=re.subdivideSegment=x,re.rawPathToString=O,re.defaultType="linear",re.defaultUpdateTarget=!0,re.defaultMap="size",re.stringToRawPath=re.pathDataToRawBezier=function(e){return R(F(e,!0))},re.equalizeSegmentQuantity=G,re.convertToPath=function(e,t){"string"==typeof e&&(e=p.selector(e));for(var r=e&&0!==e.length?e.length&&e[0]&&e[0].nodeType?Array.prototype.slice.call(e,0):[e]:[],o=r.length;-1<--o;)r[o]=a(r[o],!1!==t);return r},re.pathDataToBezier=function(e,t){var r,o,n,i,a=R(F(e,!0))[0]||[],h=0,s=(t=t||{}).align||t.relative,l=t.matrix||[1,0,0,1,0,0],f=t.offsetX||0,g=t.offsetY||0;if("relative"===s||!0===s?(f-=a[0]*l[0]+a[1]*l[2],g-=a[0]*l[1]+a[1]*l[3],h="+="):(f+=l[4],g+=l[5],(s=s&&("string"==typeof s?p.selector(s):s&&s[0]?s:[s]))&&s[0]&&(f-=(i=s[0].getBBox()||{x:0,y:0}).x,g-=i.y)),r=[],n=a.length,l&&"1,0,0,1,0,0"!==l.join(","))for(o=0;o.998){var g=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstPT;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,c){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var d,e,f,i,j,k,l,m,n=this._dirty?this.totalDuration():this._totalDuration,o=this._time,p=this._totalTime,q=this._cycle,r=this._duration,s=this._rawPrevTime;if(a>=n-1e-7&&a>=0?(this._totalTime=n,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=r,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===r&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>s||0>=a&&a>=-1e-7||s===g&&"isPause"!==this.data)&&s!==a&&(c=!0,s>g&&(e="onReverseComplete")),this._rawPrevTime=m=!b||a||s===a?a:g)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==p||0===r&&s>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===r&&(this._initted||!this.vars.lazy||c)&&(s>=0&&(c=!0),this._rawPrevTime=m=!b||a||s===a?a:g)),this._initted||(c=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(i=r+this._repeatDelay,this._cycle=this._totalTime/i>>0,0!==this._cycle&&this._cycle===this._totalTime/i&&a>=p&&this._cycle--,this._time=this._totalTime-this._cycle*i,this._yoyo&&0!==(1&this._cycle)&&(this._time=r-this._time),this._time>r?this._time=r:this._time<0&&(this._time=0)),this._easeType?(j=this._time/r,k=this._easeType,l=this._easePower,(1===k||3===k&&j>=.5)&&(j=1-j),3===k&&(j*=2),1===l?j*=j:2===l?j*=j*j:3===l?j*=j*j*j:4===l&&(j*=j*j*j*j),1===k?this.ratio=1-j:2===k?this.ratio=j:this._time/r<.5?this.ratio=j/2:this.ratio=1-j/2):this.ratio=this._ease.getRatio(this._time/r)),o===this._time&&!c&&q===this._cycle)return void(p!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=o,this._totalTime=p,this._rawPrevTime=s,this._cycle=q,h.lazyTweens.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/r):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&a>=0&&(this._active=!0),0===p&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===r)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._totalTime!==p||e)&&this._callback("onUpdate")),this._cycle!==q&&(b||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===r&&this._rawPrevTime===g&&m!==g&&(this._rawPrevTime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new f(a,b,c)},f.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new f(a,b,d)},f.staggerTo=f.allTo=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.onComplete&&g.onComplete.apply(g.onCompleteScope||this,arguments),k.apply(n||g.callbackScope||this,m||l)},v=g.cycle,w=g.startAt&&g.startAt.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startAt={};for(r in g.startAt)w[r]=g.startAt[r];e(p.startAt,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.onComplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerFrom=f.allFrom=function(a,b,c,d,e,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,f.staggerTo(a,b,c,d,e,g,h)},f.staggerFromTo=f.allFromTo=function(a,b,c,d,e,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,f.staggerTo(a,b,d,e,g,h,i)},f.delayedCall=function(a,b,c,d,e){return new f(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getAllTweens=function(b){return m(a._rootTimeline,b).concat(m(a._rootFramesTimeline,b))};f.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},f.killChildTweensOf=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killChildTweensOf(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentNode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return f.pauseAll=function(a,b,c){o(!0,a,b,c)},f.resumeAll=function(a,b,c){o(!1,a,b,c)},f.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.19.1",q.constructor=d,q.kill()._gc=q._forcingPlayhead=q._hasPause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,d),e)},q.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},q.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;ol;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},q.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},q.insert=q.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},q.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},q.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},q.removeLabel=function(a){return delete this._labels[a],this},q.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parseTimeOrLabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexOf("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseInt(b.charAt(f-1)+"1",10)*Number(b.substr(f+1)),b=f>1?this._parseTimeOrLabel(b.substr(0,f-1),0,d):this.duration()}return Number(b)+c},q.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoAndPlay=function(a,b){return this.play(a,b)},q.gotoAndStop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalDuration():this._totalDuration,o=this._time,p=this._startTime,q=this._timeScale,r=this._paused;if(a>=n-1e-7&&a>=0)this._totalTime=this._time=n,this._reversed||this._hasPausedChild()||(f=!0,h="onComplete",i=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(i=!0,this._rawPrevTime>e&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totalTime=this._time=0,(0!==o||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(h="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(i=f=!0,h="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(i=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!b){if(a>=o)for(d=this._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(l=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(this._time=a=l._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onStart&&(0===this._time&&this._duration||b||this._callback("onStart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._startTime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}this._onUpdate&&(b||(j.length&&k(),this._callback("onUpdate"))),h&&(this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||n>=this.totalDuration())&&(f&&(j.length&&k(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},q.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},q.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused?this.add(e,e._startTime-e._delay):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._startTime===d&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},q.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.19.1",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time!==f.target.time()&&d===f.duration()&&f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._dirty?this.totalDuration():this._totalDuration,p=this._duration,q=this._time,r=this._totalTime,s=this._startTime,t=this._timeScale,u=this._rawPrevTime,v=this._paused,w=this._cycle;if(a>=o-1e-7&&a>=0)this._locked||(this._totalTime=o,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(f=!0,j="onComplete",k=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=p,a=p+1e-4);else if(1e-7>a)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==q||0===p&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(k=f=!0,j="onReverseComplete"):u>=0&&this._first&&(k=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=p||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===p&&0>u&&(k=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(l=p+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,a=p+1e-4):this._time<0?this._time=a=0:a=this._time)),this._hasPause&&!this._forcingPlayhead&&!b&&p>a){if(a=this._time,a>=q||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(m=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&(this._time=a=m._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),y=x===(this._yoyo&&0!==(1&this._cycle)),z=this._totalTime,A=this._cycle,B=this._rawPrevTime,C=this._time;if(this._totalTime=w*p,this._cycle0&&(this._active=!0),0===r&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||b||this._callback("onStart")),n=this._time,n>=q)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._startTime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>this._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}this._onUpdate&&(b||(g.length&&h(),this._callback("onUpdate"))),j&&(this._locked||this._gc||(s===this._startTime||t!==this._timeScale)&&(0===this._time||o>=this.totalDuration())&&(f&&(g.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].timethis._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[-1>h?0:1][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f, +h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&bthis._s2&&ee&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&bb?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.19.1",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return O.createElementNS?O.createElementNS(b||"http://www.w3.org/1999/xhtml",a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=O.defaultView?O.defaultView.getComputedStyle:function(){},_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h=f.length?"":a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" "),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(y?"hsla(":"hsl(",p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(y?"rgba(":"rgb(",p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!(Ha&&a.getCTM&&Na(a))||a.parentNode&&!a.ownerSVGElement)},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&Ca&&((h="none"===$(a).display)||!a.parentNode)&&(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),x=x*v+B*w,t=y*v+C*w,C=y*-w+C*v,D=z*-w+D*v,y=t),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),m.scaleX=(Math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+G*G)*p+.5|0)/p,m.scaleZ=(Math.sqrt(D*D+H*H)*p+.5|0)/p,m.rotationX||m.rotationY?m.skewX=0:(m.skewX=B||C?Math.atan2(B,C)*L+m.rotation:m.skewX||0,Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180))),m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,Math.abs(l)>90&&Math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}m.zOrigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",O.body.appendChild(Q),l=Ra(Q,null,!1),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent), +yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),D.skewType=A.skewType||D.skewType||g.defaultSkewType,n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b)n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=Math.round),a=a._next},c=a.prototype;c._onInitAllProps=function(){for(var a,c,d,e=this._tween,f=e.vars.roundProps.join?e.vars.roundProps:e.vars.roundProps.split(","),g=f.length,h={},i=e._propLookup.roundProps;--g>-1;)h[f[g]]=Math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstPT;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstPT):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstPT===c&&(e._firstPT=d),c._next=c._prev=null,e._propLookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=_gsScope.GreenSockGlobals||_gsScope,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!e.TweenLite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(l=q[f[s]]||new r(f[s],[])).gsClass?(i[s]=l.gsClass,t--):j&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,p="undefined"!=typeof module&&module.exports,!p&&"function"==typeof define&&define.amd)define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});else if(p)if(d===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(h=v.prototype,h._calcEnd=!1,h.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=f.length;--g>-1;)h=f[g]+",Power"+g,x(new v(null,null,1,g),h,"easeOut",!0),x(new v(null,null,2,g),h,"easeIn"+(0===g?",easeNone":"")),x(new v(null,null,3,g),h,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var y=t("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});h=y.prototype,h.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestAnimationFrame,A=a.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},C=B();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"RequestAnimationFrame"],A=a[f[g]+"CancelAnimationFrame"]||a[f[g]+"CancelRequestAnimationFrame"];t("Ticker",function(a,b){var c,e,f,g,h,k=this,l=B(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=B()-C;i>p&&(l+=i-q),C+=i,k.time=(C-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchEvent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagSmoothing=function(a,b){p=a||1/m,q=Math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&A?A(f):clearTimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-C+(C=B()):k.frame>10&&(C=B()-p+5),e=0===c?o:n&&z?z:function(a){return setTimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilityState&&k.useRAF(!1)},1500)}),h=l.Ticker.prototype=new l.events.EventDispatcher,h.constructor=l.Ticker;var D=t("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,W){j||i.wake();var c=this.vars.useFrames?V:W;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=D.ticker=new l.Ticker,h=D.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var E=function(){j&&B()-C>2e3&&i.wake(),setTimeout(E,2e3)};E(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=p(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},h.totalTime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(J.length&&Y(),this.render(a,b,!1),J.length&&Y())}return this},h.progress=h.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},h.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},h.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||m,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var F=t("core.SimpleTimeline",function(a){D.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});h=F.prototype=new D,h.constructor=F,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},h.rawTime=function(){return j||i.wake(),this._totalTime};var G=t("TweenLite",function(b,c,d){ +if(D.call(this,c,d),this.render=G.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:G.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?U[G.defaultOverwrite]:"number"==typeof i?i>>0:U[i],(h||b instanceof Array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._propLookup=[],this._siblings=[],e=0;e1&&_(f,this,null,1,this._siblings[e])):(f=g[e--]=G.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=Z(b,this,!1),1===i&&this._siblings.length>1&&_(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-m,this.render(Math.min(0,-this._delay)))},!0),H=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},I=function(a,b){var c,d={};for(c in a)T[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!Q[c]||Q[c]&&Q[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};h=G.prototype=new D,h.constructor=G,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,G.version="1.19.1",G.defaultEase=h._ease=new v(null,null,1,1),G.defaultOverwrite="auto",G.ticker=i,G.autoSleep=120,G.lagSmoothing=function(a,b){i.lagSmoothing(a,b)},G.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(G.selector=c,c(b)):"undefined"==typeof d?b:d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b)};var J=[],K={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,M=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},N=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(L)||[],f=b.match(L)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=M,l},O=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=N(m,n?o.s+o.c:d,h||G.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},P=G._internals={isArray:p,isSelector:H,lazyTweens:J,blobDif:N},Q=G._plugins={},R=P.tweenLookup={},S=0,T=P.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},U={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},V=D._rootFramesTimeline=new F,W=D._rootTimeline=new F,X=30,Y=P.lazyRender=function(){var a,b=J.length;for(K={};--b>-1;)a=J[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);J.length=0};W._startTime=i.time,V._startTime=i.frame,W._active=V._active=!0,setTimeout(Y,1),D._updateRoot=G.render=function(){var a,b,c;if(J.length&&Y(),W.render((i.time-W._startTime)*W._timeScale,!1,!1),V.render((i.frame-V._startTime)*V._timeScale,!1,!1),J.length&&Y(),i.frame>=X){X=i.frame+(parseInt(G.autoSleep,10)||120);for(c in R){for(b=R[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete R[c]}if(c=W._first,(!c||c._paused)&&G.autoSleep&&!V._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addEventListener("tick",D._updateRoot);var Z=function(a,b,c){var d,e,f=a._gsTweenID;if(R[f||(a._gsTweenID=f="t"+S++)]||(R[f]={target:a,tweens:[]}),b&&(d=R[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return R[f].tweens},$=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=G.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},_=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||aa(b,0,o),0===aa(h,j,o)&&(l[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!$(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},aa=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalDuration()/a._timeScale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,this._startAt=G.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)T[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=G.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeParams):w[k]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},h._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;K[b._gsTweenID]&&Y(),this.vars.css||b.style&&b!==a&&b.nodeType&&Q.css&&this.vars.autoCSS!==!1&&I(this.vars,b);for(g in this.vars)if(l=this.vars[g],T[g])l&&(l instanceof Array||l.push&&p(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(Q[g]&&(j=new Q[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=O.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&_(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[b._gsTweenID]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"isPause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:m)),this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,n=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,J.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===m&&g!==m&&(this._rawPrevTime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:G.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((p(b)||H(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(G.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!$(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-m,this.render(Math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=Z(d[c],this,!0);else this._siblings=Z(this.target,this,!0)}return D.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?G._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},G.to=function(a,b,c){return new G(a,b,c)},G.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new G(a,b,c)},G.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new G(a,b,d)},G.delayedCall=function(a,b,c,d,e){return new G(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},G.set=function(a,b){return new G(a,0,b)},G.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:G.selector(a)||a;var c,d,e,f;if((p(a)||H(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(G.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=Z(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},G.killTweensOf=G.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=G.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ba=t("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ba.prototype},!0);if(h=ba.prototype,ba.version="1.19.0",ba.API=2,h._firstPT=null,h._addTween=O,h.setRatio=M,h._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},h._mod=h._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},G._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ba.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ba.API&&(Q[(new a[b])._propName]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=t("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ba.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ba(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ba.activate([g]),g},f=a._gsQueue){for(g=0;g + + + + SmileCheck 😀 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/index/script.js b/templates/index/script.js new file mode 100644 index 0000000000000000000000000000000000000000..943ede12c07e116bc3424576beee31faa97d9f58 --- /dev/null +++ b/templates/index/script.js @@ -0,0 +1,149 @@ +var xmlns = "http://www.w3.org/2000/svg", + xlinkns = "http://www.w3.org/1999/xlink", + select = function(s) { + return document.querySelector(s); + }, + selectAll = function(s) { + return document.querySelectorAll(s); + }, + faceGroup = select('.faceGroup'), + shadow = select('.shadow'), + panel = select('.panel'), + faceBg = select('.faceBg'), + happyMouth = select('.happyMouth'), + happyEyeGroup = select('.happyEyeGroup'), + sadMouth = select('.sadMouth'), + happyEyeR = select('.happyEyeR'), + happyEyeL = select('.happyEyeL') + + +TweenMax.set('svg', { + visibility: 'visible' +}) + +TweenMax.set([happyEyeL, happyEyeR], { + transformOrigin: '50% 50%' +}) +TweenMax.set(happyEyeGroup, { + transformOrigin: '50% 60%' +}) +TweenLite.defaultEase = Expo.easeIn; + +var toggleTl = new TimelineMax({ + paused: true +}).timeScale(4); +toggleTl.to(happyMouth, 2, { + scaleX: 0, + scaleY: 1.23, + x: -56, + fill: '#E6E6E6' + }, '+=0') + .to(happyEyeL, 2, { + scaleX: 0, + scaleY: 1.2, + x: -50, + y: 2, + fill: '#E6E6E6' + }, '-=2') + .to(happyEyeR, 2, { + scaleX: 0, + scaleY: 1.23, + x: -85, + fill: '#E6E6E6' + }, '-=2') + + .set(happyEyeR, { + scaleX: 0, + scaleY: 1.23, + x: 60, + y: 9, + fill: '#E6E6E6' + }) + + .fromTo(sadMouth, 2, { + scaleX: 0, + scaleY: 0.8, + x: 96, + y: 6, + fill: '#E6E6E6' + }, { + x: 0, + scaleX: 1, + scaleY: 0.8, + fill: '#FDFDFD', + y: 6, + ease: Expo.easeOut + }) + .fromTo(happyEyeL, 2, { + scaleX: 0, + scaleY: 1.2, + x: 95, + y: 4, + fill: '#E6E6E6' + }, { + scale: 1, + x: 0, + y: 6, + fill: '#FDFDFD', + immediateRender: false, + ease: Expo.easeOut + }, '-=2') + + .to(happyEyeR, 2, { + scale: 1, + x: 0, + y: 6, + fill: '#FDFDFD', + immediateRender: false, + ease: Expo.easeOut + }, '-=2') + + .to(faceGroup, 4, { + x: -132, + ease: Expo.easeInOut + }, '-=4') + .to(faceBg, 4, { + fill: '#D80032', + ease: Expo.easeInOut + }, '-=4') + .to(shadow, 4, { + fill: '#B51136', + ease: Expo.easeInOut + }, '-=4') + +faceGroup.onclick = function() { + if (toggleTl.isActive()) { + return + }; + if (toggleTl.time() > 0) { + TweenMax.set(happyEyeGroup, { + transformOrigin: '50% 50%' + }) + toggleTl.reverse(); + blink(0.152, 0); + } else { + TweenMax.set(happyEyeGroup, { + transformOrigin: '50% 50%' + }) + toggleTl.play() + blink(0.12, 0.12); + } + setTimeout({ + window.location.href = "https://www.example.com"; + }, 3000); +} + +function blink(dur, rep) { + TweenMax.to(happyEyeGroup, dur, { + scaleY: 0.03, + repeat: 1, + yoyo: true, + repeatDelay: rep + }) +} + +setTimeout(function redirect() { + window.location.href = "http://127.0.0.1:5000"; +}, 5000); +panel.onclick = faceGroup.onclick; +window.onload = faceGroup.onclick; \ No newline at end of file diff --git a/templates/index/style.css b/templates/index/style.css new file mode 100644 index 0000000000000000000000000000000000000000..9eecdba8470b2d3e4b31c8cc96432582936df428 --- /dev/null +++ b/templates/index/style.css @@ -0,0 +1,30 @@ +body { + background-color:#FFF; + overflow: hidden; + text-align:center; +} + +body, +html { + height: 100%; + width: 100%; + margin: 0; + padding: 0; +} + + +svg{ + position:absolute; + width:100%; + height:100%; + visibility:hidden; + transform:translate(-50%, 0%); +} + +.faceGroup{ + cursor:pointer; +} +.faceGroup, .panel{ + + -webkit-tap-highlight-color:rgba(0,0,0,0); +} \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000000000000000000000000000000000000..6b9b8e68cfc60fbc6557e4ebbfb9879f4d54207d --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,338 @@ + + + + + + {% block title %} {% endblock %} + + + + + + {% block link %} {% endblock %} + + + + +
+















+
+
+
+
+
+ 0% +
+
+ + +
+ +
+ +

+ + + {% block content %} {% endblock %} + + + + + + + \ No newline at end of file diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000000000000000000000000000000000000..44ea0352360223bd154dfdbf5a1c76dc83e8ff9e --- /dev/null +++ b/templates/login.html @@ -0,0 +1,319 @@ +{% extends 'layout.html' %} +{% block title %} Login {% endblock %} +{% block content %} +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + +

Forgot Password?

+ + +

New to SmileCheck? Register here.

+
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/pass.html b/templates/pass.html new file mode 100644 index 0000000000000000000000000000000000000000..63a2a572ef02b60f0ee24335a5650a8fdb7ff318 --- /dev/null +++ b/templates/pass.html @@ -0,0 +1,431 @@ + + + + + + + + + + + + Smile + + + + + + + + + + + +
SmileCheck 😄
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/templates/password.html b/templates/password.html new file mode 100644 index 0000000000000000000000000000000000000000..13696b93f361c3fe181bd789f10e854c0987200b --- /dev/null +++ b/templates/password.html @@ -0,0 +1,31 @@ +{% extends 'layout.html' %} +{% block title %} Change Password {% endblock %} +{% block content %} + +
+
+ +
+

Verification Successfull. You will be auto-redirected in 5 seconds.

+
+ +
+ +

Verification Unsuccessfull. You will be auto-redirected in 5 seconds.

+ +
+ + + +{% endblock %} \ No newline at end of file diff --git a/templates/register.html b/templates/register.html new file mode 100644 index 0000000000000000000000000000000000000000..78bf61802f2962235de455bded82f325fdde89a9 --- /dev/null +++ b/templates/register.html @@ -0,0 +1,187 @@ +{% extends 'layout.html' %} +{% block title %} Register {% endblock %} +{% block content %} +
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ + + + +

Already have an account? Log in instead.

+
+ +
+
+ + + +{% endblock %} \ No newline at end of file diff --git a/templates/result.html b/templates/result.html new file mode 100644 index 0000000000000000000000000000000000000000..8fc52436599c609cd9d82774cdabd66238c90450 --- /dev/null +++ b/templates/result.html @@ -0,0 +1,211 @@ + + +{% extends 'layout.html' %} +{% block title %} Custom Form {% endblock %} +{% block link %} {% endblock %} +{% block content %} + +


+
+
+
+
Happy Index
+
{{ res4 }}
+

Name of Assessment :
{{ res8['name'] }}

+

Description : {{ res8['description'] }}

+
+
+ +
+
Congo   Congratulations! You've completed the SmileCheck assessment.
+ +
Assessment Analysis
+ + +
+ + +
+ +
+
+ +

Assessment Analysis

+
+ +
+ + + + +
+
+ + {% for key, value in res7.items() %} +
+
wellbeing{{ value['average_score'] }}
+
{{ value['name'] }}
+
{{ value['description'] }}

+
+ {% for suggestion in value['suggestions_text'][0] %} +

  Suggestion {{ loop.index }} : {{ suggestion }}

+ {% endfor %} +
+
+ {% endfor %} +
+
+
+
+ +
Remember, improving your happiness is a journey, and we're here to support you every step of the way.
Thank you for using SmileCheck.
We wish you all the best on your journey to greater happiness and wellbeing.
+ + +{% endblock %} + diff --git a/templates/verify.html b/templates/verify.html new file mode 100644 index 0000000000000000000000000000000000000000..84740367807ee4c0b7f6d7e8d746bbb4831bd8f0 --- /dev/null +++ b/templates/verify.html @@ -0,0 +1,32 @@ +{% extends 'layout.html' %} +{% block title %} Verification {% endblock %} +{% block content %} + +
+
+ +
+

Verification Successfull. You will be auto-redirected in 5 seconds.

+ +
+ +
+ +

Verification Unsuccessfull. You will be auto-redirected in 5 seconds.

+ +
+ + + +{% endblock %} \ No newline at end of file