unpoly-rails 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of unpoly-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly-migrate.js +3 -5
- data/assets/unpoly/unpoly-migrate.min.js +1 -1
- data/assets/unpoly/unpoly.es5.js +30 -36
- data/assets/unpoly/unpoly.es5.min.js +1 -1
- data/assets/unpoly/unpoly.js +42 -46
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7809f10d4c1b68d409df8b692a4ec180664a84e8bf5f11f5ada7477b908a6c52
|
4
|
+
data.tar.gz: daa269b194e0ae2779ee6a087aeac46d04054c995e713c9905bbb8a67c7e0d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69401e8930e26d6388502b1e0693929bdc5ba6ba12548326660289ccbe459cf6dc376c5820c914a6634913c352723e01c1cf4f3ecf3bc877fc80828687edeb56
|
7
|
+
data.tar.gz: c4fb6d692762c58efc8a2ce01f632b277184ff9d7691942939da1277aa8021f501c65df5d355d33264a16871ae4f74e29c66da39341830050b252b3913de9060
|
@@ -162,12 +162,13 @@ up.util.parseUrl = function () {
|
|
162
162
|
return (_a = up.util).parseURL.apply(_a, args);
|
163
163
|
};
|
164
164
|
up.util.any = function () {
|
165
|
+
var _a;
|
165
166
|
var args = [];
|
166
167
|
for (var _i = 0; _i < arguments.length; _i++) {
|
167
168
|
args[_i] = arguments[_i];
|
168
169
|
}
|
169
170
|
up.migrate.warn('up.util.any() has been renamed to up.util.some()');
|
170
|
-
return some.apply(
|
171
|
+
return (_a = up.util).some.apply(_a, args);
|
171
172
|
};
|
172
173
|
up.util.all = function () {
|
173
174
|
var _a;
|
@@ -718,7 +719,6 @@ var __assign = (this && this.__assign) || function () {
|
|
718
719
|
};
|
719
720
|
return __assign.apply(this, arguments);
|
720
721
|
};
|
721
|
-
var u = up.util;
|
722
722
|
var FLAVORS_ERROR = new Error('up.modal.flavors has been removed without direct replacement. You may give new layers a { class } or modify layer elements on up:layer:open.');
|
723
723
|
up.modal = {
|
724
724
|
/*-
|
@@ -911,8 +911,6 @@ var __assign = (this && this.__assign) || function () {
|
|
911
911
|
};
|
912
912
|
return __assign.apply(this, arguments);
|
913
913
|
};
|
914
|
-
var u = up.util;
|
915
|
-
var e = up.element;
|
916
914
|
up.popup = {
|
917
915
|
/*-
|
918
916
|
Attaches a popup overlay to the given element or selector.
|
@@ -1065,7 +1063,7 @@ Object.defineProperty(up.network.config, 'preloadDelay', {
|
|
1065
1063
|
},
|
1066
1064
|
set: function (value) {
|
1067
1065
|
preloadDelayMoved();
|
1068
|
-
|
1066
|
+
up.link.config.preloadDelay = value;
|
1069
1067
|
}
|
1070
1068
|
});
|
1071
1069
|
up.migrate.renamedProperty(up.network.config, 'maxRequests', 'concurrency');
|
@@ -1 +1 @@
|
|
1
|
-
!function(){var e={700:function(){up.element.first=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.element.first()","up.element.get()"),(e=up.element).get.apply(e,r)},up.element.createFromHtml=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.element.createFromHtml","up.element.createFromHTML"),(e=up.element).createFromHTML.apply(e,r)}},394:function(){up.migrate.renamedPackage("bus","event"),up.event.nobodyPrevents=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];up.migrate.deprecated("up.event.nobodyPrevents(type)","!up.emit(type).defaultPrevented");var t=up.emit.apply(up,e);return!t.defaultPrevented}},729:function(){up.migrate.renamedPackage("navigation","feedback"),up.migrate.renamedProperty(up.feedback.config,"navs","navSelectors")},305:function(){up.migrate.renamedProperty(up.form.config,"fields","fieldSelectors"),up.migrate.renamedProperty(up.form.config,"submitButtons","submitButtonSelectors")},354:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r=up.util;up.migrate.renamedPackage("flow","fragment"),up.migrate.renamedPackage("dom","fragment"),up.migrate.renamedProperty(up.fragment.config,"fallbacks","mainTargets"),up.migrate.handleResponseDocOptions=function(e){return up.migrate.fixKey(e,"html","document")},up.replace=function(r,t,a){return up.migrate.deprecated("up.replace(target, url)","up.navigate(target, { url })"),up.navigate(e(e({},a),{target:r,url:t}))},up.extract=function(r,t,a){return up.migrate.deprecated("up.extract(target, document)","up.navigate(target, { document })"),up.navigate(e(e({},a),{target:r,document:t}))},up.fragment.first=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.fragment.first()","up.fragment.get()"),(e=up.fragment).get.apply(e,r)},up.first=up.fragment.first,up.migrate.handleScrollOptions=function(e){r.isUndefined(e.scroll)&&(r.isString(e.reveal)?(up.migrate.deprecated("Option { reveal: '"+e.reveal+"' }","{ scroll: '"+e.reveal+"' }"),e.scroll=e.reveal):!0===e.reveal?(up.migrate.deprecated("Option { reveal: true }","{ scroll: 'target' }"),e.scroll="target"):!1===e.reveal&&(up.migrate.deprecated("Option { reveal: false }","{ scroll: false }"),e.scroll=!1),r.isDefined(e.resetScroll)&&(up.migrate.deprecated("Option { resetScroll: true }","{ scroll: 'reset' }"),e.scroll="teset"),r.isDefined(e.restoreScroll)&&(up.migrate.deprecated("Option { restoreScroll: true }","{ scroll: 'restore' }"),e.scroll="restore"))},up.migrate.handleHistoryOption=function(e){r.isString(e.history)&&"auto"!==e.history&&(up.migrate.warn("Passing a URL as { history } option is deprecated. Pass it as { location } instead."),e.location=e.history,e.history="auto")},up.migrate.preprocessRenderOptions=function(e){up.migrate.handleHistoryOption(e);for(var t=0,a=["target","origin"];t<a.length;t++){var n=a[t];r.isJQuery(e[n])&&(up.migrate.warn("Passing a jQuery collection as { %s } is deprecated. Pass it as a native element instead.",n),e[n]=up.element.get(e[n]))}}},869:function(){up.migrate.renamedProperty(up.history.config,"popTargets","restoreTargets"),up.history.url=function(){return up.migrate.deprecated("up.history.url()","up.history.location"),up.history.location},up.migrate.renamedEvent("up:history:push","up:location:changed"),up.migrate.renamedEvent("up:history:pushed","up:location:changed"),up.migrate.renamedEvent("up:history:restore","up:location:changed"),up.migrate.renamedEvent("up:history:restored","up:location:changed"),up.migrate.renamedEvent("up:history:replaced","up:location:changed")},905:function(){up.migrate.handleLayerOptions=function(e){up.migrate.fixKey(e,"flavor","mode"),up.migrate.fixKey(e,"closable","dismissable"),up.migrate.fixKey(e,"closeLabel","dismissLabel");for(var r=0,t=["width","maxWidth","height"];r<t.length;r++){var a=t[r];e[a]&&up.migrate.warn("Layer option { "+a+" } has been removed. Use { size } or { class } instead.")}e.sticky&&up.migrate.warn("Layer option { sticky } has been removed. Give links an [up-peel=false] attribute to prevent layer dismissal on click."),e.template&&up.migrate.warn("Layer option { template } has been removed. Use { class } or modify the layer HTML on up:layer:open."),"page"===e.layer&&(up.migrate.warn("Option { layer: 'page' } has been renamed to { layer: 'root' }."),e.layer="root"),"modal"!==e.layer&&"popup"!==e.layer||(up.migrate.warn("Option { layer: '"+e.layer+"' } has been removed. Did you mean { layer: 'overlay' }?"),e.layer="overlay")},up.migrate.handleTetherOptions=function(e){var r=e.position.split("-"),t=r[0],a=r[1];a&&(up.migrate.warn("The position value %o is deprecated. Use %o instead.",e.position,{position:t,align:a}),e.position=t,e.align=a)},up.migrate.registerLayerCloser=function(e){return e.registerClickCloser("up-close",(function(r,t){up.migrate.deprecated("[up-close]","[up-dismiss]"),e.dismiss(r,t)}))},up.migrate.handleLayerConfig=function(e){return up.migrate.fixKey(e,"historyVisible","history")},up.util.getter(up.Layer.prototype,"historyVisible",(function(){return up.migrate.deprecated("up.Layer#historyVisible","up.Layer#history"),this.history}))},969:function(){up.migrate.parseFollowOptions=function(e){e.string("flavor"),e.string("width"),e.string("height"),e.boolean("closable"),e.booleanOrString("reveal"),e.boolean("resetScroll"),e.boolean("restoreScroll"),e.booleanOrString("historyVisible")},up.migrate.targetMacro("up-dash",{"up-preload":"","up-instant":""},(function(){return up.migrate.deprecated("a[up-dash]","up.link.config.instantSelectors or up.link.config.preloadSelectors")}))},992:function(){var e=this&&this.__spreadArray||function(e,r){for(var t=0,a=r.length,n=e.length;t<a;t++,n++)e[n]=r[t];return e},r=up.util;up.migrate=function(){var t=new up.Config((function(){return{logLevel:"warn"}})),a={};function n(e){var r=a[e];return r?(u("Event "+e+" has been renamed to "+r),r):e}var p={};function u(a){for(var n,u=[],o=1;o<arguments.length;o++)u[o-1]=arguments[o];var i=r.sprintf.apply(r,e([a],u));p[i]||(p[i]=!0,(n=up.log)[t.logLevel].apply(n,e(["unpoly-migrate",a],u)))}return up.on("up:framework:reset",(function(){t.reset()})),{deprecated:function(e,r){u(e+" has been deprecated. Use "+r+" instead.")},renamedPackage:function(e,r){Object.defineProperty(up,e,{get:function(){return u("up."+e+" has been renamed to up."+r),up[r]}})},renamedProperty:function(e,r,t){var a=function(){return u("Property { %s } has been renamed to { %s } (found in %o)",r,t,e)};return Object.defineProperty(e,r,{get:function(){return a(),this[t]},set:function(e){a(),this[t]=e}})},formerlyAsync:function(e){var r=Promise.resolve(),t=r.then;return r.then=function(){return u(e+" is now a sync function"),t.apply(this,arguments)},r},renamedEvent:function(e,r){a[e]=r},fixEventTypes:function(e){return r.uniq(r.map(e,n))},fixKey:function(e,t,a){r.isDefined(e[t])&&(u("Property { %s } has been renamed to { %s } (found in %o)",t,a,e),r.renameKey(e,t,a))},warn:u,loaded:!0,config:t}}()},413:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r=(up.util,new Error("up.modal.flavors has been removed without direct replacement. You may give new layers a { class } or modify layer elements on up:layer:open."));up.modal={visit:function(r,t){return void 0===t&&(t={}),up.migrate.deprecated("up.modal.visit(url)",'up.layer.open({ url, mode: "modal" })'),up.layer.open(e(e({},t),{url:r,mode:"modal"}))},follow:function(r,t){return void 0===t&&(t={}),up.migrate.deprecated("up.modal.follow(link)",'up.follow(link, { layer: "modal" })'),up.follow(r,e(e({},t),{layer:"modal"}))},extract:function(r,t,a){return void 0===a&&(a={}),up.migrate.deprecated("up.modal.extract(target, document)",'up.layer.open({ document, mode: "modal" })'),up.layer.open(e(e({},a),{target:r,html:t,layer:"modal"}))},close:function(e){return void 0===e&&(e={}),up.migrate.deprecated("up.modal.close()","up.layer.dismiss()"),up.layer.dismiss(null,e),up.migrate.formerlyAsync("up.layer.dismiss()")},url:function(){return up.migrate.deprecated("up.modal.url()","up.layer.location"),up.layer.location},coveredUrl:function(){var e;return up.migrate.deprecated("up.modal.coveredUrl()","up.layer.parent.location"),null===(e=up.layer.parent)||void 0===e?void 0:e.location},get config(){return up.migrate.deprecated("up.modal.config","up.layer.config.modal"),up.layer.config.modal},contains:function(e){return up.migrate.deprecated("up.modal.contains()","up.layer.contains()"),up.layer.contains(e)},isOpen:function(){return up.migrate.deprecated("up.modal.isOpen()","up.layer.isOverlay()"),up.layer.isOverlay()},get flavors(){throw r},flavor:function(){throw r}},up.migrate.renamedEvent("up:modal:open","up:layer:open"),up.migrate.renamedEvent("up:modal:opened","up:layer:opened"),up.migrate.renamedEvent("up:modal:close","up:layer:dismiss"),up.migrate.renamedEvent("up:modal:closed","up:layer:dismissed"),up.migrate.targetMacro("up-modal",{"up-layer":"new modal"},(function(){return up.migrate.deprecated("a[up-modal]",'a[up-layer="new modal"]')})),up.migrate.targetMacro("up-drawer",{"up-layer":"new drawer"},(function(){return up.migrate.deprecated("a[up-drawer]",'a[up-layer="new drawer"]')}))},885:function(){var e=up.util;up.migrate.renamedPackage("proxy","network"),up.migrate.renamedEvent("up:proxy:load","up:request:load"),up.migrate.renamedEvent("up:proxy:received","up:request:loaded"),up.migrate.renamedEvent("up:proxy:loaded","up:request:loaded"),up.migrate.renamedEvent("up:proxy:fatal","up:request:fatal"),up.migrate.renamedEvent("up:proxy:aborted","up:request:aborted"),up.migrate.renamedEvent("up:proxy:slow","up:request:late"),up.migrate.renamedEvent("up:proxy:recover","up:request:recover");var r=function(){return up.migrate.deprecated("up.proxy.config.preloadDelay","up.link.config.preloadDelay")};Object.defineProperty(up.network.config,"preloadDelay",{get:function(){return r(),up.link.config.preloadDelay},set:function(e){return r(),up.link.config.preloadDelay=e}}),up.migrate.renamedProperty(up.network.config,"maxRequests","concurrency"),up.migrate.renamedProperty(up.network.config,"slowDelay","badResponseTime"),up.migrate.handleRequestOptions=function(e){return up.migrate.fixKey(e,"data","params")},up.ajax=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];up.migrate.deprecated("up.ajax()","up.request()");var t=function(e){return e.text};return up.request.apply(up,e).then(t)},up.network.clear=function(){up.migrate.deprecated("up.proxy.clear()","up.cache.clear()"),up.cache.clear()},up.network.preload=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.proxy.preload(link)","up.link.preload(link)"),(e=up.link).preload.apply(e,r)},up.Request.prototype.navigate=function(){up.migrate.deprecated("up.Request#navigate()","up.Request#loadPage()"),this.loadPage()},up.Response.prototype.isSuccess=function(){return up.migrate.deprecated("up.Response#isSuccess()","up.Response#ok"),this.ok},up.Response.prototype.isError=function(){return up.migrate.deprecated("up.Response#isError()","!up.Response#ok"),!this.ok};var t=up.network.config.progressBar;function a(){up.network.config.progressBar=function(){return r=up.EventListener.allNonDefault(document),e.find(r,(function(e){return"up:request:late"===e.eventType}))?(up.migrate.warn("Disabled the default progress bar as may have built a custom loading indicator with your up:request:late listener. Please set up.network.config.progressBar to true or false."),!1):t;var r}}a(),up.on("up:framework:reset",a)},69:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)};up.util,up.element,up.popup={attach:function(r,t){return void 0===t&&(t={}),r=up.fragment.get(r),up.migrate.deprecated("up.popup.attach(origin)","up.layer.open({ origin, layer: 'popup' })"),up.layer.open(e(e({},t),{origin:r,layer:"popup"}))},close:function(e){return void 0===e&&(e={}),up.migrate.deprecated("up.popup.close()","up.layer.dismiss()"),up.layer.dismiss(null,e),up.migrate.formerlyAsync("up.layer.dismiss()")},url:function(){return up.migrate.deprecated("up.popup.url()","up.layer.location"),up.layer.location},coveredUrl:function(){var e;return up.migrate.deprecated("up.popup.coveredUrl()","up.layer.parent.location"),null===(e=up.layer.parent)||void 0===e?void 0:e.location},get config(){return up.migrate.deprecated("up.popup.config","up.layer.config.popup"),up.layer.config.popup},contains:function(e){return up.migrate.deprecated("up.popup.contains()","up.layer.contains()"),up.layer.contains(e)},isOpen:function(){return up.migrate.deprecated("up.popup.isOpen()","up.layer.isOverlay()"),up.layer.isOverlay()},sync:function(){return up.migrate.deprecated("up.popup.sync()","up.layer.sync()"),up.layer.sync()}},up.migrate.renamedEvent("up:popup:open","up:layer:open"),up.migrate.renamedEvent("up:popup:opened","up:layer:opened"),up.migrate.renamedEvent("up:popup:close","up:layer:dismiss"),up.migrate.renamedEvent("up:popup:closed","up:layer:dismissed"),up.migrate.targetMacro("up-popup",{"up-layer":"new popup"},(function(){return up.migrate.deprecated("[up-popup]",'[up-layer="new popup"]')}))},228:function(){up.migrate.renamedProperty(up.radio.config,"hungry","hungrySelectors")},629:function(){var e=up.util,r=up.element;up.migrate.postCompile=function(r,t){var a;if(a=t.keep){up.migrate.warn("The { keep: true } option for up.compiler() has been removed. Have the compiler set [up-keep] attribute instead.");for(var n=e.isString(a)?a:"",p=0,u=r;p<u.length;p++)u[p].setAttribute("up-keep",n)}},up.migrate.targetMacro=function(t,a,n){up.macro("["+t+"]",(function(p){var u,o=e.copy(a);(u=p.getAttribute(t))?o["up-target"]=u:o["up-follow"]="",r.setMissingAttrs(p,o),p.removeAttribute(t),null==n||n()}))}},197:function(){up.macro("[up-tooltip]",(function(e){up.migrate.warn("[up-tooltip] has been deprecated. A [title] was set instead."),up.element.setMissingAttr(e,"title",e.getAttribute("up-tooltip"))}))},480:function(){up.util.only=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return up.migrate.deprecated("up.util.only(object, ...keys)","up.util.pick(object, keys)"),up.util.pick(e,r)},up.util.except=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return up.migrate.deprecated("up.util.except(object, ...keys)","up.util.omit(object, keys)"),up.util.omit(e,r)},up.util.parseUrl=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.parseUrl() has been renamed to up.util.parseURL()"),(e=up.util).parseURL.apply(e,r)},up.util.any=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return up.migrate.warn("up.util.any() has been renamed to up.util.some()"),some.apply(void 0,e)},up.util.all=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.all() has been renamed to up.util.every()"),(e=up.util).every.apply(e,r)},up.util.detect=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.detect() has been renamed to up.util.find()"),(e=up.util).find.apply(e,r)},up.util.select=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.select() has been renamed to up.util.filter()"),(e=up.util).filter.apply(e,r)},up.util.setTimer=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.setTimer() has been renamed to up.util.timer()"),(e=up.util).timer.apply(e,r)},up.util.escapeHtml=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.util.escapeHtml","up.util.escapeHTML"),(e=up.util).escapeHTML.apply(e,r)},up.util.selectorForElement=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.selectorForElement() has been renamed to up.fragment.toTarget()"),(e=up.fragment).toTarget.apply(e,r)},up.util.nextFrame=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.nextFrame() has been renamed to up.util.task()"),(e=up.util).task.apply(e,r)},up.util.times=function(e,r){for(var t=0;t<e;t++)r()}},338:function(){up.migrate.renamedPackage("layout","viewport"),up.migrate.renamedProperty(up.viewport.config,"viewports","viewportSelectors"),up.migrate.renamedProperty(up.viewport.config,"snap","revealSnap"),up.viewport.closest=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.viewport.closest()","up.viewport.get()"),(e=up.viewport).get.apply(e,r)}}},r={};function t(a){var n=r[a];if(void 0!==n)return n.exports;var p=r[a]={exports:{}};return e[a].call(p.exports,p,p.exports,t),p.exports}up.framework.startExtension(),t(992),t(480),t(700),t(394),t(629),t(305),t(354),t(869),t(729),t(969),t(905),t(413),t(69),t(197),t(885),t(228),t(338),up.framework.stopExtension()}();
|
1
|
+
!function(){var e={700:function(){up.element.first=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.element.first()","up.element.get()"),(e=up.element).get.apply(e,r)},up.element.createFromHtml=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.element.createFromHtml","up.element.createFromHTML"),(e=up.element).createFromHTML.apply(e,r)}},394:function(){up.migrate.renamedPackage("bus","event"),up.event.nobodyPrevents=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];up.migrate.deprecated("up.event.nobodyPrevents(type)","!up.emit(type).defaultPrevented");var t=up.emit.apply(up,e);return!t.defaultPrevented}},729:function(){up.migrate.renamedPackage("navigation","feedback"),up.migrate.renamedProperty(up.feedback.config,"navs","navSelectors")},305:function(){up.migrate.renamedProperty(up.form.config,"fields","fieldSelectors"),up.migrate.renamedProperty(up.form.config,"submitButtons","submitButtonSelectors")},354:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r=up.util;up.migrate.renamedPackage("flow","fragment"),up.migrate.renamedPackage("dom","fragment"),up.migrate.renamedProperty(up.fragment.config,"fallbacks","mainTargets"),up.migrate.handleResponseDocOptions=function(e){return up.migrate.fixKey(e,"html","document")},up.replace=function(r,t,a){return up.migrate.deprecated("up.replace(target, url)","up.navigate(target, { url })"),up.navigate(e(e({},a),{target:r,url:t}))},up.extract=function(r,t,a){return up.migrate.deprecated("up.extract(target, document)","up.navigate(target, { document })"),up.navigate(e(e({},a),{target:r,document:t}))},up.fragment.first=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.fragment.first()","up.fragment.get()"),(e=up.fragment).get.apply(e,r)},up.first=up.fragment.first,up.migrate.handleScrollOptions=function(e){r.isUndefined(e.scroll)&&(r.isString(e.reveal)?(up.migrate.deprecated("Option { reveal: '"+e.reveal+"' }","{ scroll: '"+e.reveal+"' }"),e.scroll=e.reveal):!0===e.reveal?(up.migrate.deprecated("Option { reveal: true }","{ scroll: 'target' }"),e.scroll="target"):!1===e.reveal&&(up.migrate.deprecated("Option { reveal: false }","{ scroll: false }"),e.scroll=!1),r.isDefined(e.resetScroll)&&(up.migrate.deprecated("Option { resetScroll: true }","{ scroll: 'reset' }"),e.scroll="teset"),r.isDefined(e.restoreScroll)&&(up.migrate.deprecated("Option { restoreScroll: true }","{ scroll: 'restore' }"),e.scroll="restore"))},up.migrate.handleHistoryOption=function(e){r.isString(e.history)&&"auto"!==e.history&&(up.migrate.warn("Passing a URL as { history } option is deprecated. Pass it as { location } instead."),e.location=e.history,e.history="auto")},up.migrate.preprocessRenderOptions=function(e){up.migrate.handleHistoryOption(e);for(var t=0,a=["target","origin"];t<a.length;t++){var n=a[t];r.isJQuery(e[n])&&(up.migrate.warn("Passing a jQuery collection as { %s } is deprecated. Pass it as a native element instead.",n),e[n]=up.element.get(e[n]))}}},869:function(){up.migrate.renamedProperty(up.history.config,"popTargets","restoreTargets"),up.history.url=function(){return up.migrate.deprecated("up.history.url()","up.history.location"),up.history.location},up.migrate.renamedEvent("up:history:push","up:location:changed"),up.migrate.renamedEvent("up:history:pushed","up:location:changed"),up.migrate.renamedEvent("up:history:restore","up:location:changed"),up.migrate.renamedEvent("up:history:restored","up:location:changed"),up.migrate.renamedEvent("up:history:replaced","up:location:changed")},905:function(){up.migrate.handleLayerOptions=function(e){up.migrate.fixKey(e,"flavor","mode"),up.migrate.fixKey(e,"closable","dismissable"),up.migrate.fixKey(e,"closeLabel","dismissLabel");for(var r=0,t=["width","maxWidth","height"];r<t.length;r++){var a=t[r];e[a]&&up.migrate.warn("Layer option { "+a+" } has been removed. Use { size } or { class } instead.")}e.sticky&&up.migrate.warn("Layer option { sticky } has been removed. Give links an [up-peel=false] attribute to prevent layer dismissal on click."),e.template&&up.migrate.warn("Layer option { template } has been removed. Use { class } or modify the layer HTML on up:layer:open."),"page"===e.layer&&(up.migrate.warn("Option { layer: 'page' } has been renamed to { layer: 'root' }."),e.layer="root"),"modal"!==e.layer&&"popup"!==e.layer||(up.migrate.warn("Option { layer: '"+e.layer+"' } has been removed. Did you mean { layer: 'overlay' }?"),e.layer="overlay")},up.migrate.handleTetherOptions=function(e){var r=e.position.split("-"),t=r[0],a=r[1];a&&(up.migrate.warn("The position value %o is deprecated. Use %o instead.",e.position,{position:t,align:a}),e.position=t,e.align=a)},up.migrate.registerLayerCloser=function(e){return e.registerClickCloser("up-close",(function(r,t){up.migrate.deprecated("[up-close]","[up-dismiss]"),e.dismiss(r,t)}))},up.migrate.handleLayerConfig=function(e){return up.migrate.fixKey(e,"historyVisible","history")},up.util.getter(up.Layer.prototype,"historyVisible",(function(){return up.migrate.deprecated("up.Layer#historyVisible","up.Layer#history"),this.history}))},969:function(){up.migrate.parseFollowOptions=function(e){e.string("flavor"),e.string("width"),e.string("height"),e.boolean("closable"),e.booleanOrString("reveal"),e.boolean("resetScroll"),e.boolean("restoreScroll"),e.booleanOrString("historyVisible")},up.migrate.targetMacro("up-dash",{"up-preload":"","up-instant":""},(function(){return up.migrate.deprecated("a[up-dash]","up.link.config.instantSelectors or up.link.config.preloadSelectors")}))},992:function(){var e=this&&this.__spreadArray||function(e,r){for(var t=0,a=r.length,n=e.length;t<a;t++,n++)e[n]=r[t];return e},r=up.util;up.migrate=function(){var t=new up.Config((function(){return{logLevel:"warn"}})),a={};function n(e){var r=a[e];return r?(u("Event "+e+" has been renamed to "+r),r):e}var p={};function u(a){for(var n,u=[],o=1;o<arguments.length;o++)u[o-1]=arguments[o];var i=r.sprintf.apply(r,e([a],u));p[i]||(p[i]=!0,(n=up.log)[t.logLevel].apply(n,e(["unpoly-migrate",a],u)))}return up.on("up:framework:reset",(function(){t.reset()})),{deprecated:function(e,r){u(e+" has been deprecated. Use "+r+" instead.")},renamedPackage:function(e,r){Object.defineProperty(up,e,{get:function(){return u("up."+e+" has been renamed to up."+r),up[r]}})},renamedProperty:function(e,r,t){var a=function(){return u("Property { %s } has been renamed to { %s } (found in %o)",r,t,e)};return Object.defineProperty(e,r,{get:function(){return a(),this[t]},set:function(e){a(),this[t]=e}})},formerlyAsync:function(e){var r=Promise.resolve(),t=r.then;return r.then=function(){return u(e+" is now a sync function"),t.apply(this,arguments)},r},renamedEvent:function(e,r){a[e]=r},fixEventTypes:function(e){return r.uniq(r.map(e,n))},fixKey:function(e,t,a){r.isDefined(e[t])&&(u("Property { %s } has been renamed to { %s } (found in %o)",t,a,e),r.renameKey(e,t,a))},warn:u,loaded:!0,config:t}}()},413:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r=new Error("up.modal.flavors has been removed without direct replacement. You may give new layers a { class } or modify layer elements on up:layer:open.");up.modal={visit:function(r,t){return void 0===t&&(t={}),up.migrate.deprecated("up.modal.visit(url)",'up.layer.open({ url, mode: "modal" })'),up.layer.open(e(e({},t),{url:r,mode:"modal"}))},follow:function(r,t){return void 0===t&&(t={}),up.migrate.deprecated("up.modal.follow(link)",'up.follow(link, { layer: "modal" })'),up.follow(r,e(e({},t),{layer:"modal"}))},extract:function(r,t,a){return void 0===a&&(a={}),up.migrate.deprecated("up.modal.extract(target, document)",'up.layer.open({ document, mode: "modal" })'),up.layer.open(e(e({},a),{target:r,html:t,layer:"modal"}))},close:function(e){return void 0===e&&(e={}),up.migrate.deprecated("up.modal.close()","up.layer.dismiss()"),up.layer.dismiss(null,e),up.migrate.formerlyAsync("up.layer.dismiss()")},url:function(){return up.migrate.deprecated("up.modal.url()","up.layer.location"),up.layer.location},coveredUrl:function(){var e;return up.migrate.deprecated("up.modal.coveredUrl()","up.layer.parent.location"),null===(e=up.layer.parent)||void 0===e?void 0:e.location},get config(){return up.migrate.deprecated("up.modal.config","up.layer.config.modal"),up.layer.config.modal},contains:function(e){return up.migrate.deprecated("up.modal.contains()","up.layer.contains()"),up.layer.contains(e)},isOpen:function(){return up.migrate.deprecated("up.modal.isOpen()","up.layer.isOverlay()"),up.layer.isOverlay()},get flavors(){throw r},flavor:function(){throw r}},up.migrate.renamedEvent("up:modal:open","up:layer:open"),up.migrate.renamedEvent("up:modal:opened","up:layer:opened"),up.migrate.renamedEvent("up:modal:close","up:layer:dismiss"),up.migrate.renamedEvent("up:modal:closed","up:layer:dismissed"),up.migrate.targetMacro("up-modal",{"up-layer":"new modal"},(function(){return up.migrate.deprecated("a[up-modal]",'a[up-layer="new modal"]')})),up.migrate.targetMacro("up-drawer",{"up-layer":"new drawer"},(function(){return up.migrate.deprecated("a[up-drawer]",'a[up-layer="new drawer"]')}))},885:function(){var e=up.util;up.migrate.renamedPackage("proxy","network"),up.migrate.renamedEvent("up:proxy:load","up:request:load"),up.migrate.renamedEvent("up:proxy:received","up:request:loaded"),up.migrate.renamedEvent("up:proxy:loaded","up:request:loaded"),up.migrate.renamedEvent("up:proxy:fatal","up:request:fatal"),up.migrate.renamedEvent("up:proxy:aborted","up:request:aborted"),up.migrate.renamedEvent("up:proxy:slow","up:request:late"),up.migrate.renamedEvent("up:proxy:recover","up:request:recover");var r=function(){return up.migrate.deprecated("up.proxy.config.preloadDelay","up.link.config.preloadDelay")};Object.defineProperty(up.network.config,"preloadDelay",{get:function(){return r(),up.link.config.preloadDelay},set:function(e){r(),up.link.config.preloadDelay=e}}),up.migrate.renamedProperty(up.network.config,"maxRequests","concurrency"),up.migrate.renamedProperty(up.network.config,"slowDelay","badResponseTime"),up.migrate.handleRequestOptions=function(e){return up.migrate.fixKey(e,"data","params")},up.ajax=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];up.migrate.deprecated("up.ajax()","up.request()");var t=function(e){return e.text};return up.request.apply(up,e).then(t)},up.network.clear=function(){up.migrate.deprecated("up.proxy.clear()","up.cache.clear()"),up.cache.clear()},up.network.preload=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.proxy.preload(link)","up.link.preload(link)"),(e=up.link).preload.apply(e,r)},up.Request.prototype.navigate=function(){up.migrate.deprecated("up.Request#navigate()","up.Request#loadPage()"),this.loadPage()},up.Response.prototype.isSuccess=function(){return up.migrate.deprecated("up.Response#isSuccess()","up.Response#ok"),this.ok},up.Response.prototype.isError=function(){return up.migrate.deprecated("up.Response#isError()","!up.Response#ok"),!this.ok};var t=up.network.config.progressBar;function a(){up.network.config.progressBar=function(){return r=up.EventListener.allNonDefault(document),e.find(r,(function(e){return"up:request:late"===e.eventType}))?(up.migrate.warn("Disabled the default progress bar as may have built a custom loading indicator with your up:request:late listener. Please set up.network.config.progressBar to true or false."),!1):t;var r}}a(),up.on("up:framework:reset",a)},69:function(){var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)};up.popup={attach:function(r,t){return void 0===t&&(t={}),r=up.fragment.get(r),up.migrate.deprecated("up.popup.attach(origin)","up.layer.open({ origin, layer: 'popup' })"),up.layer.open(e(e({},t),{origin:r,layer:"popup"}))},close:function(e){return void 0===e&&(e={}),up.migrate.deprecated("up.popup.close()","up.layer.dismiss()"),up.layer.dismiss(null,e),up.migrate.formerlyAsync("up.layer.dismiss()")},url:function(){return up.migrate.deprecated("up.popup.url()","up.layer.location"),up.layer.location},coveredUrl:function(){var e;return up.migrate.deprecated("up.popup.coveredUrl()","up.layer.parent.location"),null===(e=up.layer.parent)||void 0===e?void 0:e.location},get config(){return up.migrate.deprecated("up.popup.config","up.layer.config.popup"),up.layer.config.popup},contains:function(e){return up.migrate.deprecated("up.popup.contains()","up.layer.contains()"),up.layer.contains(e)},isOpen:function(){return up.migrate.deprecated("up.popup.isOpen()","up.layer.isOverlay()"),up.layer.isOverlay()},sync:function(){return up.migrate.deprecated("up.popup.sync()","up.layer.sync()"),up.layer.sync()}},up.migrate.renamedEvent("up:popup:open","up:layer:open"),up.migrate.renamedEvent("up:popup:opened","up:layer:opened"),up.migrate.renamedEvent("up:popup:close","up:layer:dismiss"),up.migrate.renamedEvent("up:popup:closed","up:layer:dismissed"),up.migrate.targetMacro("up-popup",{"up-layer":"new popup"},(function(){return up.migrate.deprecated("[up-popup]",'[up-layer="new popup"]')}))},228:function(){up.migrate.renamedProperty(up.radio.config,"hungry","hungrySelectors")},629:function(){var e=up.util,r=up.element;up.migrate.postCompile=function(r,t){var a;if(a=t.keep){up.migrate.warn("The { keep: true } option for up.compiler() has been removed. Have the compiler set [up-keep] attribute instead.");for(var n=e.isString(a)?a:"",p=0,u=r;p<u.length;p++)u[p].setAttribute("up-keep",n)}},up.migrate.targetMacro=function(t,a,n){up.macro("["+t+"]",(function(p){var u,o=e.copy(a);(u=p.getAttribute(t))?o["up-target"]=u:o["up-follow"]="",r.setMissingAttrs(p,o),p.removeAttribute(t),null==n||n()}))}},197:function(){up.macro("[up-tooltip]",(function(e){up.migrate.warn("[up-tooltip] has been deprecated. A [title] was set instead."),up.element.setMissingAttr(e,"title",e.getAttribute("up-tooltip"))}))},480:function(){up.util.only=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return up.migrate.deprecated("up.util.only(object, ...keys)","up.util.pick(object, keys)"),up.util.pick(e,r)},up.util.except=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return up.migrate.deprecated("up.util.except(object, ...keys)","up.util.omit(object, keys)"),up.util.omit(e,r)},up.util.parseUrl=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.parseUrl() has been renamed to up.util.parseURL()"),(e=up.util).parseURL.apply(e,r)},up.util.any=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.any() has been renamed to up.util.some()"),(e=up.util).some.apply(e,r)},up.util.all=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.all() has been renamed to up.util.every()"),(e=up.util).every.apply(e,r)},up.util.detect=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.detect() has been renamed to up.util.find()"),(e=up.util).find.apply(e,r)},up.util.select=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.select() has been renamed to up.util.filter()"),(e=up.util).filter.apply(e,r)},up.util.setTimer=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.setTimer() has been renamed to up.util.timer()"),(e=up.util).timer.apply(e,r)},up.util.escapeHtml=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.util.escapeHtml","up.util.escapeHTML"),(e=up.util).escapeHTML.apply(e,r)},up.util.selectorForElement=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.selectorForElement() has been renamed to up.fragment.toTarget()"),(e=up.fragment).toTarget.apply(e,r)},up.util.nextFrame=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.warn("up.util.nextFrame() has been renamed to up.util.task()"),(e=up.util).task.apply(e,r)},up.util.times=function(e,r){for(var t=0;t<e;t++)r()}},338:function(){up.migrate.renamedPackage("layout","viewport"),up.migrate.renamedProperty(up.viewport.config,"viewports","viewportSelectors"),up.migrate.renamedProperty(up.viewport.config,"snap","revealSnap"),up.viewport.closest=function(){for(var e,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return up.migrate.deprecated("up.viewport.closest()","up.viewport.get()"),(e=up.viewport).get.apply(e,r)}}},r={};function t(a){var n=r[a];if(void 0!==n)return n.exports;var p=r[a]={exports:{}};return e[a].call(p.exports,p,p.exports,t),p.exports}up.framework.startExtension(),t(992),t(480),t(700),t(394),t(629),t(305),t(354),t(869),t(729),t(969),t(905),t(413),t(69),t(197),t(885),t(228),t(338),up.framework.stopExtension()}();
|
data/assets/unpoly/unpoly.es5.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
@module up
|
9
9
|
*/
|
10
10
|
window.up = {
|
11
|
-
version: '2.2.
|
11
|
+
version: '2.2.1'
|
12
12
|
};
|
13
13
|
|
14
14
|
|
@@ -216,7 +216,7 @@ up.util = (function () {
|
|
216
216
|
// In IE11 the #hostname and #port properties of unqualified URLs are empty strings.
|
217
217
|
// We can fix this by setting the link's { href } on the link itself.
|
218
218
|
if (!link.hostname) {
|
219
|
-
link.href = link.href;
|
219
|
+
link.href = link.href; // eslint-disable-line no-self-assign
|
220
220
|
}
|
221
221
|
// Some IEs don't include a leading slash in the #pathname property.
|
222
222
|
// We have confirmed this in IE11 and earlier.
|
@@ -1629,7 +1629,7 @@ up.util = (function () {
|
|
1629
1629
|
// totalValue += entryValue
|
1630
1630
|
// totalValue
|
1631
1631
|
function isBasicObjectProperty(k) {
|
1632
|
-
return Object.prototype.hasOwnProperty(k);
|
1632
|
+
return Object.prototype.hasOwnProperty(k); // eslint-disable-line no-prototype-builtins
|
1633
1633
|
}
|
1634
1634
|
/*-
|
1635
1635
|
Returns whether the two arguments are equal by value.
|
@@ -1907,7 +1907,7 @@ up.util = (function () {
|
|
1907
1907
|
}
|
1908
1908
|
return string;
|
1909
1909
|
}
|
1910
|
-
var SPRINTF_PLACEHOLDERS =
|
1910
|
+
var SPRINTF_PLACEHOLDERS = /%[oOdisf]/g;
|
1911
1911
|
function secondsSinceEpoch() {
|
1912
1912
|
return Math.floor(Date.now() * 0.001);
|
1913
1913
|
}
|
@@ -2850,7 +2850,7 @@ up.element = (function () {
|
|
2850
2850
|
// Attribute values might contain spaces, and then we would incorrectly
|
2851
2851
|
// split depths at that space.
|
2852
2852
|
var attrValues = [];
|
2853
|
-
var selectorWithoutAttrValues = selector.replace(/\[([\w-]+)(?:[
|
2853
|
+
var selectorWithoutAttrValues = selector.replace(/\[([\w-]+)(?:[~|^$*]?=(["'])?([^\2\]]*?)\2)?\]/g, function (_match, attrName, _quote, attrValue) {
|
2854
2854
|
attrValues.push(attrValue || '');
|
2855
2855
|
return "[" + attrName + "]";
|
2856
2856
|
});
|
@@ -2868,7 +2868,7 @@ up.element = (function () {
|
|
2868
2868
|
if (!rootElement) {
|
2869
2869
|
rootElement = depthElement;
|
2870
2870
|
}
|
2871
|
-
depthSelector = depthSelector.replace(
|
2871
|
+
depthSelector = depthSelector.replace(/#([\w-]+)/, function (_match, id) {
|
2872
2872
|
depthElement.id = id;
|
2873
2873
|
return '';
|
2874
2874
|
});
|
@@ -3245,16 +3245,19 @@ up.element = (function () {
|
|
3245
3245
|
function booleanAttr(element, attribute, pass) {
|
3246
3246
|
var value = stringAttr(element, attribute);
|
3247
3247
|
switch (value) {
|
3248
|
-
case 'false':
|
3248
|
+
case 'false': {
|
3249
3249
|
return false;
|
3250
|
+
}
|
3250
3251
|
case 'true':
|
3251
3252
|
case '':
|
3252
|
-
case attribute:
|
3253
|
+
case attribute: {
|
3253
3254
|
return true;
|
3254
|
-
|
3255
|
+
}
|
3256
|
+
default: {
|
3255
3257
|
if (pass) {
|
3256
3258
|
return value;
|
3257
3259
|
}
|
3260
|
+
}
|
3258
3261
|
}
|
3259
3262
|
}
|
3260
3263
|
/*-
|
@@ -3290,7 +3293,7 @@ up.element = (function () {
|
|
3290
3293
|
var value = element.getAttribute(attribute);
|
3291
3294
|
if (value) {
|
3292
3295
|
value = value.replace(/_/g, '');
|
3293
|
-
if (value.match(/^[\d
|
3296
|
+
if (value.match(/^[\d.]+$/)) {
|
3294
3297
|
return parseFloat(value);
|
3295
3298
|
}
|
3296
3299
|
}
|
@@ -3611,7 +3614,7 @@ up.Record = /** @class */ (function () {
|
|
3611
3614
|
Record.prototype.keys = function () {
|
3612
3615
|
throw 'Return an array of keys';
|
3613
3616
|
};
|
3614
|
-
Record.prototype.defaults = function (
|
3617
|
+
Record.prototype.defaults = function (_options) {
|
3615
3618
|
return {};
|
3616
3619
|
};
|
3617
3620
|
Record.prototype.attributes = function (source) {
|
@@ -3833,7 +3836,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
3833
3836
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
3834
3837
|
};
|
3835
3838
|
})();
|
3836
|
-
var u = up.util;
|
3837
3839
|
up.Rect = /** @class */ (function (_super) {
|
3838
3840
|
__extends(Rect, _super);
|
3839
3841
|
function Rect() {
|
@@ -4268,7 +4270,6 @@ var __assign = (this && this.__assign) || function () {
|
|
4268
4270
|
};
|
4269
4271
|
return __assign.apply(this, arguments);
|
4270
4272
|
};
|
4271
|
-
var u = up.util;
|
4272
4273
|
up.Change.OpenLayer = /** @class */ (function (_super) {
|
4273
4274
|
__extends(OpenLayer, _super);
|
4274
4275
|
function OpenLayer(options) {
|
@@ -4583,7 +4584,7 @@ up.Change.UpdateLayer = /** @class */ (function (_super) {
|
|
4583
4584
|
};
|
4584
4585
|
UpdateLayer.prototype.executeStep = function (step) {
|
4585
4586
|
return __awaiter(this, void 0, void 0, function () {
|
4586
|
-
var
|
4587
|
+
var _a, keepPlan, parent_1, morphOptions, oldWrapper, newWrapper, wrapperStep, wrapper, position;
|
4587
4588
|
var _this = this;
|
4588
4589
|
return __generator(this, function (_b) {
|
4589
4590
|
switch (_b.label) {
|
@@ -4685,7 +4686,9 @@ up.Change.UpdateLayer = /** @class */ (function (_super) {
|
|
4685
4686
|
_b.sent();
|
4686
4687
|
return [3 /*break*/, 14];
|
4687
4688
|
case 13:
|
4688
|
-
|
4689
|
+
{
|
4690
|
+
up.fail('Unknown placement: %o', step.placement);
|
4691
|
+
}
|
4689
4692
|
_b.label = 14;
|
4690
4693
|
case 14: return [2 /*return*/];
|
4691
4694
|
}
|
@@ -4767,7 +4770,7 @@ up.Change.UpdateLayer = /** @class */ (function (_super) {
|
|
4767
4770
|
for (var _i = 0, _a = u.splitValues(this.target, ','); _i < _a.length; _i++) {
|
4768
4771
|
var simpleTarget = _a[_i];
|
4769
4772
|
if (simpleTarget !== ':none') {
|
4770
|
-
var expressionParts = simpleTarget.match(/^(.+?)(
|
4773
|
+
var expressionParts = simpleTarget.match(/^(.+?)(?::(before|after))?$/);
|
4771
4774
|
if (!expressionParts) {
|
4772
4775
|
throw up.error.invalidSelector(simpleTarget);
|
4773
4776
|
}
|
@@ -4904,7 +4907,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
4904
4907
|
};
|
4905
4908
|
})();
|
4906
4909
|
var u = up.util;
|
4907
|
-
var e = up.element;
|
4908
4910
|
up.Change.CloseLayer = /** @class */ (function (_super) {
|
4909
4911
|
__extends(CloseLayer, _super);
|
4910
4912
|
function CloseLayer(options) {
|
@@ -5022,7 +5024,6 @@ var __assign = (this && this.__assign) || function () {
|
|
5022
5024
|
return __assign.apply(this, arguments);
|
5023
5025
|
};
|
5024
5026
|
var u = up.util;
|
5025
|
-
var e = up.element;
|
5026
5027
|
up.Change.FromContent = /** @class */ (function (_super) {
|
5027
5028
|
__extends(FromContent, _super);
|
5028
5029
|
function FromContent(options) {
|
@@ -5621,7 +5622,6 @@ var __assign = (this && this.__assign) || function () {
|
|
5621
5622
|
return __assign.apply(this, arguments);
|
5622
5623
|
};
|
5623
5624
|
var u = up.util;
|
5624
|
-
var e = up.element;
|
5625
5625
|
up.DestructorPass = /** @class */ (function () {
|
5626
5626
|
function DestructorPass(fragment, options) {
|
5627
5627
|
this.fragment = fragment;
|
@@ -6259,7 +6259,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
6259
6259
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
6260
6260
|
};
|
6261
6261
|
})();
|
6262
|
-
var u = up.util;
|
6263
6262
|
var e = up.element;
|
6264
6263
|
var PRESERVE_KEYS = ['selectionStart', 'selectionEnd', 'scrollLeft', 'scrollTop'];
|
6265
6264
|
function transferProps(from, to) {
|
@@ -6569,7 +6568,6 @@ var __assign = (this && this.__assign) || function () {
|
|
6569
6568
|
return __assign.apply(this, arguments);
|
6570
6569
|
};
|
6571
6570
|
var u = up.util;
|
6572
|
-
var e = up.element;
|
6573
6571
|
up.FragmentScrolling = /** @class */ (function (_super) {
|
6574
6572
|
__extends(FragmentScrolling, _super);
|
6575
6573
|
function FragmentScrolling(options) {
|
@@ -6655,8 +6653,7 @@ up.FragmentScrolling = /** @class */ (function (_super) {
|
|
6655
6653
|
var u = up.util;
|
6656
6654
|
var e = up.element;
|
6657
6655
|
up.HTMLWrapper = /** @class */ (function () {
|
6658
|
-
function HTMLWrapper(tagName
|
6659
|
-
if (options === void 0) { options = {}; }
|
6656
|
+
function HTMLWrapper(tagName) {
|
6660
6657
|
this.tagName = tagName;
|
6661
6658
|
var openTag = "<" + this.tagName + "[^>]*>";
|
6662
6659
|
var closeTag = "</" + this.tagName + ">";
|
@@ -7398,7 +7395,7 @@ up.Layer = /** @class */ (function (_super) {
|
|
7398
7395
|
Layer.prototype.selector = function (part) {
|
7399
7396
|
return this.constructor.selector(part);
|
7400
7397
|
};
|
7401
|
-
Layer.selector = function (
|
7398
|
+
Layer.selector = function (_part) {
|
7402
7399
|
throw up.error.notImplemented();
|
7403
7400
|
};
|
7404
7401
|
Layer.prototype.toString = function () {
|
@@ -7856,7 +7853,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
7856
7853
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
7857
7854
|
};
|
7858
7855
|
})();
|
7859
|
-
var e = up.element;
|
7860
7856
|
up.Layer.OverlayWithTether = /** @class */ (function (_super) {
|
7861
7857
|
__extends(OverlayWithTether, _super);
|
7862
7858
|
function OverlayWithTether() {
|
@@ -7923,7 +7919,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
7923
7919
|
};
|
7924
7920
|
})();
|
7925
7921
|
var _a;
|
7926
|
-
var e = up.element;
|
7927
7922
|
up.Layer.OverlayWithViewport = (_a = /** @class */ (function (_super) {
|
7928
7923
|
__extends(OverlayWithViewport, _super);
|
7929
7924
|
function OverlayWithViewport() {
|
@@ -8351,7 +8346,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
8351
8346
|
return to;
|
8352
8347
|
};
|
8353
8348
|
var u = up.util;
|
8354
|
-
var e = up.element;
|
8355
8349
|
up.LayerStack = /** @class */ (function (_super) {
|
8356
8350
|
__extends(LayerStack, _super);
|
8357
8351
|
function LayerStack() {
|
@@ -8521,7 +8515,6 @@ up.LayerStack = /** @class */ (function (_super) {
|
|
8521
8515
|
/* 46 */
|
8522
8516
|
/***/ (function() {
|
8523
8517
|
|
8524
|
-
var u = up.util;
|
8525
8518
|
up.LinkFeedbackURLs = /** @class */ (function () {
|
8526
8519
|
function LinkFeedbackURLs(link) {
|
8527
8520
|
var normalize = up.feedback.normalizeURL;
|
@@ -9689,7 +9682,7 @@ up.ProgressBar = /** @class */ (function () {
|
|
9689
9682
|
else {
|
9690
9683
|
// Above 80% completion we grow the bar more slowly,
|
9691
9684
|
// using a formula that can never reach 100%.
|
9692
|
-
diff = 0.13 * (100 - width) * Math.random();
|
9685
|
+
diff = 0.13 * (100 - this.width) * Math.random();
|
9693
9686
|
}
|
9694
9687
|
this.moveTo(this.width + diff);
|
9695
9688
|
this.step++;
|
@@ -9934,7 +9927,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
9934
9927
|
};
|
9935
9928
|
})();
|
9936
9929
|
var u = up.util;
|
9937
|
-
var e = up.element;
|
9938
9930
|
/*-
|
9939
9931
|
A normalized description of an [HTTP request](/up.request).
|
9940
9932
|
|
@@ -11350,7 +11342,7 @@ var u = up.util;
|
|
11350
11342
|
// We want to make the default speed mimic Chrome's smooth scrolling behavior.
|
11351
11343
|
// We also want to keep the default value in up.viewport.config.scrollSpeed to be 1.
|
11352
11344
|
// For our calculation in #animationFrame() we need to multiply it with this factor.
|
11353
|
-
SPEED_CALIBRATION = 0.065;
|
11345
|
+
var SPEED_CALIBRATION = 0.065;
|
11354
11346
|
up.ScrollMotion = /** @class */ (function () {
|
11355
11347
|
function ScrollMotion(scrollable, targetTop, options) {
|
11356
11348
|
if (options === void 0) { options = {}; }
|
@@ -11662,7 +11654,7 @@ up.Tether = /** @class */ (function () {
|
|
11662
11654
|
var left;
|
11663
11655
|
var top;
|
11664
11656
|
switch (this.alignAxis) {
|
11665
|
-
case 'horizontal': // position is 'top' or 'bottom'
|
11657
|
+
case 'horizontal': { // position is 'top' or 'bottom'
|
11666
11658
|
switch (this.position) {
|
11667
11659
|
case 'top':
|
11668
11660
|
top = anchorBox.top - elementMargin.bottom - elementBox.height;
|
@@ -11705,7 +11697,8 @@ up.Tether = /** @class */ (function () {
|
|
11705
11697
|
// anchor
|
11706
11698
|
}
|
11707
11699
|
break;
|
11708
|
-
|
11700
|
+
}
|
11701
|
+
case 'vertical': { // position is 'left' or 'right'
|
11709
11702
|
switch (this.align) {
|
11710
11703
|
case 'top':
|
11711
11704
|
// anchored to the top, grows to the bottom
|
@@ -11740,6 +11733,7 @@ up.Tether = /** @class */ (function () {
|
|
11740
11733
|
// anchor | margin | element
|
11741
11734
|
}
|
11742
11735
|
break;
|
11736
|
+
}
|
11743
11737
|
}
|
11744
11738
|
if (u.isDefined(left) || u.isDefined(top)) {
|
11745
11739
|
this.moveTo(left, top);
|
@@ -11795,7 +11789,7 @@ up.URLPattern = /** @class */ (function () {
|
|
11795
11789
|
}
|
11796
11790
|
var reCode = list.map(this.normalizeURL).map(u.escapeRegExp).join('|');
|
11797
11791
|
reCode = reCode.replace(/\\\*/g, '.*?');
|
11798
|
-
reCode = reCode.replace(/(
|
11792
|
+
reCode = reCode.replace(/(:|\\\$)([a-z][\w-]*)/ig, function (match, type, name) {
|
11799
11793
|
// It's \\$ instead of $ because we do u.escapeRegExp above
|
11800
11794
|
if (type === '\\$') {
|
11801
11795
|
if (capture) {
|
@@ -15475,7 +15469,7 @@ up.fragment = (function () {
|
|
15475
15469
|
}
|
15476
15470
|
return getAll.apply(void 0, args)[0];
|
15477
15471
|
}
|
15478
|
-
var CSS_HAS_SUFFIX_PATTERN =
|
15472
|
+
var CSS_HAS_SUFFIX_PATTERN = /:has\(([^)]+)\)$/;
|
15479
15473
|
/*-
|
15480
15474
|
Returns all elements matching the given selector, but
|
15481
15475
|
ignores elements that are being [destroyed](/up.destroy) or that are being
|
@@ -16865,7 +16859,7 @@ up.viewport = (function () {
|
|
16865
16859
|
for (var _i = 0; _i < arguments.length; _i++) {
|
16866
16860
|
args[_i] = arguments[_i];
|
16867
16861
|
}
|
16868
|
-
var _a = parseOptions(args), viewports = _a[0],
|
16862
|
+
var _a = parseOptions(args), viewports = _a[0], _options = _a[1];
|
16869
16863
|
return setScrollTops(viewports, {});
|
16870
16864
|
}
|
16871
16865
|
function setScrollTops(viewports, tops) {
|
@@ -1 +1 @@
|
|
1
|
-
!function(){var t={7433:function(){},7921:function(){},7298:function(){},2903:function(){},573:function(){},2811:function(){up.browser=function(){var t=up.util;function e(){return"ActiveXObject"in window}function n(){return!!window.jQuery}function r(){return window.Promise?"BackCompat"===document.compatMode?"Browser is in quirks mode (missing DOCTYPE?)":void 0:"Browser doesn't support promises"}return{loadPage:function(t){new up.Request(t).loadPage()},submitForm:function(t){t.submit()},canPushState:function(){return history.pushState&&"GET"===up.protocol.initialRequestMethod()},canFormatLog:t.negate(e),canPassiveEventListener:t.negate(e),canJQuery:n,assertConfirmed:function(t){if(t.confirm&&!window.confirm(t.confirm))throw up.error.aborted("User canceled action");return!0},isSupported:function(){return!r()},supportIssue:r,popCookie:function(t){var e,n=null===(e=document.cookie.match(new RegExp(t+"=(\\w+)")))||void 0===e?void 0:e[1];if(n)return document.cookie=t+"=;Max-Age=0;Path=/",n},get jQuery(){return n()||up.fail("jQuery must be published as window.jQuery"),jQuery},isIE11:e}}()},6346:function(){var t=up.element;up.BodyShifter=function(){function e(){this.unshiftFns=[],this.reset()}return e.prototype.reset=function(){this.unshiftNow(),this.shiftCount=0},e.prototype.shift=function(){if(this.shiftCount++,!(this.shiftCount>1)){var e=up.viewport.rootHasReducedWidthFromScrollbar(),n=up.viewport.rootOverflowElement();if(this.changeStyle(n,{overflowY:"hidden"}),e){var r=document.body,o=up.viewport.scrollbarWidth(),i=o+t.styleNumber(r,"paddingRight");this.changeStyle(r,{paddingRight:i});for(var s=0,u=up.viewport.anchoredRight();s<u.length;s++){var a=u[s],c=o+t.styleNumber(a,"right");this.changeStyle(a,{right:c})}}}},e.prototype.changeStyle=function(e,n){this.unshiftFns.push(t.setTemporaryStyle(e,n))},e.prototype.unshift=function(){this.shiftCount--,0==this.shiftCount&&this.unshiftNow()},e.prototype.unshiftNow=function(){for(var t;t=this.unshiftFns.pop();)t()},e}()},3115:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},e=up.util;up.Cache=function(){function n(t){void 0===t&&(t={}),this.config=t,this.store=this.config.store||new up.store.Memory}return n.prototype.size=function(){return this.store.size()},n.prototype.maxSize=function(){return e.evalOption(this.config.size)},n.prototype.expiryMillis=function(){return e.evalOption(this.config.expiry)},n.prototype.normalizeStoreKey=function(t){return this.config.key?this.config.key(t):t.toString()},n.prototype.isEnabled=function(){return 0!==this.maxSize()&&0!==this.expiryMillis()},n.prototype.clear=function(){this.store.clear()},n.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.config.logPrefix&&(e[0]="["+this.config.logPrefix+"] "+e[0],up.puts.apply(up,t(["up.Cache"],e)))},n.prototype.keys=function(){return this.store.keys()},n.prototype.each=function(t){var n=this;e.each(this.keys(),(function(e){var r=n.store.get(e);t(e,r.value,r.timestamp)}))},n.prototype.makeRoomForAnotherEntry=function(){var t,e;this.hasRoomForAnotherEntry()||(this.each((function(n,r,o){(!e||e>o)&&(t=n,e=o)})),t&&this.store.remove(t))},n.prototype.hasRoomForAnotherEntry=function(){var t=this.maxSize();return!t||this.size()<t},n.prototype.alias=function(t,n){var r=this.get(t,{silent:!0});e.isDefined(r)&&this.set(n,r)},n.prototype.timestamp=function(){return(new Date).valueOf()},n.prototype.set=function(t,e){if(this.isEnabled()){this.makeRoomForAnotherEntry();var n=this.normalizeStoreKey(t),r={timestamp:this.timestamp(),value:e};this.store.set(n,r)}},n.prototype.remove=function(t){var e=this.normalizeStoreKey(t);this.store.remove(e)},n.prototype.isFresh=function(t){var e=this.expiryMillis();return!e||this.timestamp()-t.timestamp<e},n.prototype.get=function(t,e){void 0===e&&(e={});var n=this.normalizeStoreKey(t),r=this.store.get(n);if(r){if(this.isFresh(r))return e.silent||this.log("Cache hit for '%s'",t),r.value;e.silent||this.log("Discarding stale cache entry for '%s'",t),this.remove(t)}else e.silent||this.log("Cache miss for '%s'",t)},n}()},7948:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util,r=up.element;up.Change.Addition=function(t){function o(e){var n=t.call(this,e)||this;return n.responseDoc=e.responseDoc,n.acceptLayer=e.acceptLayer,n.dismissLayer=e.dismissLayer,n.eventPlans=e.eventPlans||[],n}return e(o,t),o.prototype.handleLayerChangeRequests=function(){var t=this;this.layer.isOverlay()&&(this.tryAcceptLayerFromServer(),this.abortWhenLayerClosed(),this.layer.tryAcceptForLocation(),this.abortWhenLayerClosed(),this.tryDismissLayerFromServer(),this.abortWhenLayerClosed(),this.layer.tryDismissForLocation(),this.abortWhenLayerClosed()),this.layer.asCurrent((function(){for(var e=0,n=t.eventPlans;e<n.length;e++){var r=n[e];up.emit(r),t.abortWhenLayerClosed()}}))},o.prototype.tryAcceptLayerFromServer=function(){n.isDefined(this.acceptLayer)&&this.layer.isOverlay()&&this.layer.accept(this.acceptLayer)},o.prototype.tryDismissLayerFromServer=function(){n.isDefined(this.dismissLayer)&&this.layer.isOverlay()&&this.layer.dismiss(this.dismissLayer)},o.prototype.abortWhenLayerClosed=function(){if(this.layer.isClosed())throw up.error.aborted("Layer was closed")},o.prototype.setSource=function(t){var e=t.oldElement,o=t.newElement,i=t.source;"keep"===i&&(i=e&&up.fragment.source(e)),i&&r.setMissingAttr(o,"up-source",n.normalizeURL(i))},o}(up.Change)},3030:function(){var t=up.util;up.Change=function(){function e(t){this.options=t}return e.prototype.notApplicable=function(t){return up.error.notApplicable(this,t)},e.prototype.execute=function(){throw up.error.notImplemented()},e.prototype.onFinished=function(){var t,e;return null===(e=(t=this.options).onFinished)||void 0===e?void 0:e.call(t)},e.prototype.improveHistoryValue=function(e,n){return!1===e||t.isString(e)?e:n},e}()},7422:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.element,up.Change.CloseLayer=function(t){function r(e){var n,r=t.call(this,e)||this;return r.verb=e.verb,r.layer=up.layer.get(e),r.origin=e.origin,r.value=e.value,r.preventable=null===(n=e.preventable)||void 0===n||n,r}return e(r,t),r.prototype.execute=function(){var t=this;if(!this.layer.isOpen())return Promise.resolve();if(up.browser.assertConfirmed(this.options),up.network.abort((function(e){return e.layer===t.layer})),this.emitCloseEvent().defaultPrevented&&this.preventable)throw up.error.aborted("Close event was prevented");var e=this.layer.parent;this.layer.peel(),this.layer.stack.remove(this.layer),e.restoreHistory(),this.handleFocus(e),this.layer.teardownHandlers(),this.layer.destroyElements(this.options),this.emitClosedEvent(e)},r.prototype.emitCloseEvent=function(){return this.layer.emit(this.buildEvent("up:layer:"+this.verb),{callback:this.layer.callback("on"+n.upperCaseFirst(this.verb)),log:"Will "+this.verb+" "+this.layer})},r.prototype.emitClosedEvent=function(t){var e=this.verb+"ed",r=n.upperCaseFirst(e);return this.layer.emit(this.buildEvent("up:layer:"+e),{baseLayer:t,callback:this.layer.callback("on"+r),ensureBubbles:!0,log:r+" "+this.layer})},r.prototype.buildEvent=function(t){return up.event.build(t,{layer:this.layer,value:this.value,origin:this.origin})},r.prototype.handleFocus=function(t){var e;this.layer.overlayFocus.teardown(),null===(e=t.overlayFocus)||void 0===e||e.moveToFront(),(this.layer.origin||t.element).focus({preventScroll:!0})},r}(up.Change.Removal)},8228:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},o=up.element;up.Change.DestroyFragment=function(t){function i(e){var n=t.call(this,e)||this;return n.layer=up.layer.get(e)||up.layer.current,n.element=n.options.element,n.animation=n.options.animation,n.log=n.options.log,n}return e(i,t),i.prototype.execute=function(){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return this.parent=this.element.parentNode,up.fragment.markAsDestroying(this.element),up.motion.willAnimate(this.element,this.animation,this.options)?(this.emitDestroyed(),[4,this.animate()]):[3,2];case 1:return t.sent(),this.wipe(),this.onFinished(),[3,3];case 2:this.wipe(),this.emitDestroyed(),this.onFinished(),t.label=3;case 3:return[2]}}))}))},i.prototype.animate=function(){return up.motion.animate(this.element,this.animation,this.options)},i.prototype.wipe=function(){var t=this;this.layer.asCurrent((function(){up.syntax.clean(t.element,{layer:t.layer}),up.browser.canJQuery()?jQuery(t.element).remove():o.remove(t.element)}))},i.prototype.emitDestroyed=function(){up.fragment.emitDestroyed(this.element,{parent:this.parent,log:this.log})},i}(up.Change.Removal)},9005:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.element,up.Change.FromContent=function(t){function o(e){var n=t.call(this,e)||this;return n.layers=r.filter(up.layer.getAll(n.options),n.isRenderableLayer),n.origin=n.options.origin,n.preview=n.options.preview,n.mode=n.options.mode,n.origin&&(n.originLayer=up.layer.get(n.origin)),n}return e(o,t),o.prototype.isRenderableLayer=function(t){return"new"===t||t.isOpen()},o.prototype.getPlans=function(){return this.plans||(this.plans=[],this.options.fragment&&(this.options.target=this.getResponseDoc().rootSelector()),this.expandIntoPlans(this.layers,this.options.target),this.expandIntoPlans(this.layers,this.options.fallback)),this.plans},o.prototype.expandIntoPlans=function(t,e){for(var r=0,o=t;r<o.length;r++)for(var i=o[r],s=0,u=this.expandTargets(e,i);s<u.length;s++){var a=u[s],c=n(n({},this.options),{target:a,layer:i,placement:this.defaultPlacement()}),p="new"===i?new up.Change.OpenLayer(c):new up.Change.UpdateLayer(c);this.plans.push(p)}},o.prototype.expandTargets=function(t,e){return up.fragment.expandTargets(t,{layer:e,mode:this.mode,origin:this.origin})},o.prototype.execute=function(){var t=this;return this.options.preload?Promise.resolve():this.seekPlan((function(e){return e.execute(t.getResponseDoc())}))||this.postflightTargetNotApplicable()},o.prototype.getResponseDoc=function(){var t,e;if(!this.preview&&!this.responseDoc){var n=r.pick(this.options,["target","content","fragment","document","html"]);null===(e=(t=up.migrate).handleResponseDocOptions)||void 0===e||e.call(t,n),"content"===this.defaultPlacement()&&(n.target=this.firstExpandedTarget(n.target)),this.responseDoc=new up.ResponseDoc(n)}return this.responseDoc},o.prototype.defaultPlacement=function(){if(!this.options.document&&!this.options.fragment)return"content"},o.prototype.firstExpandedTarget=function(t){return this.expandTargets(t||":main",this.layers[0])[0]},o.prototype.preflightProps=function(t){return void 0===t&&(t={}),this.seekPlan((function(t){return t.preflightProps()}))||t.optional||this.preflightTargetNotApplicable()},o.prototype.preflightTargetNotApplicable=function(){this.targetNotApplicable("Could not find target in current page")},o.prototype.postflightTargetNotApplicable=function(){this.targetNotApplicable("Could not find common target in current page and response")},o.prototype.targetNotApplicable=function(t){if(this.getPlans().length){var e=r.uniq(r.map(this.getPlans(),"target")),n=up.layer.optionToString(this.options.layer);up.fail(t+" (tried selectors %o in %s)",e,n)}else this.layers.length?up.fail("No target selector given"):up.fail("Layer %o does not exist",this.options.layer)},o.prototype.seekPlan=function(t){for(var e=0,n=this.getPlans();e<n.length;e++){var r=n[e];try{return t(r)}catch(t){if(!up.error.notApplicable.is(t))throw t}}},o}(up.Change)},2200:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.Change.FromURL=function(t){function o(e){var n=t.call(this,e)||this;return n.options.layer=up.layer.getAll(n.options),n.options.normalizeLayerOptions=!1,n.successOptions=n.options,n.failOptions=up.RenderOptions.deriveFailOptions(n.successOptions),n}return e(o,t),o.prototype.execute=function(){var t=this,e=this.newPageReason();if(e)return up.puts("up.render()",e),up.browser.loadPage(this.options),r.unresolvablePromise();var n=this.makeRequest();return this.options.preload?n:r.always(n,(function(e){return t.onRequestSettled(e)}))},o.prototype.newPageReason=function(){return r.isCrossOrigin(this.options.url)?"Loading cross-origin content in new page":up.browser.canPushState()?void 0:"Loading content in new page to restore history support"},o.prototype.makeRequest=function(){var t=this.preflightPropsForRenderOptions(this.successOptions),e=this.preflightPropsForRenderOptions(this.failOptions,{optional:!0}),n=r.merge(this.successOptions,t,r.renameKeys(e,up.fragment.failKey));return this.request=up.request(n),this.request},o.prototype.preflightPropsForRenderOptions=function(t,e){return new up.Change.FromContent(n(n({},t),{preview:!0})).preflightProps(e)},o.prototype.onRequestSettled=function(t){if(this.response=t,t instanceof up.Response){if(this.isSuccessfulResponse())return this.updateContentFromResponse(["Loaded fragment from successful response to %s",this.request.description],this.successOptions);var e=["Loaded fragment from failed response to %s (HTTP %d)",this.request.description,this.response.status];throw this.updateContentFromResponse(e,this.failOptions)}throw t},o.prototype.isSuccessfulResponse=function(){return!1===this.successOptions.fail||this.response.ok},o.prototype.buildEvent=function(t,e){var n={request:this.request,response:this.response,renderOptions:this.options};return up.event.build(t,r.merge(n,e))},o.prototype.updateContentFromResponse=function(t,e){var n=this.buildEvent("up:fragment:loaded",{renderOptions:e});return this.request.assertEmitted(n,{log:t,callback:this.options.onLoaded}),this.augmentOptionsFromResponse(e),new up.Change.FromContent(e).execute()},o.prototype.augmentOptionsFromResponse=function(t){var e=this.response.url,n=e,o=this.request.hash;o&&(t.hash=o,n+=o),"GET"===this.response.method?t.source=this.improveHistoryValue(t.source,e):(t.source=this.improveHistoryValue(t.source,"keep"),t.history=!!t.location),t.location=this.improveHistoryValue(t.location,n),t.title=this.improveHistoryValue(t.title,this.response.title),t.eventPlans=this.response.eventPlans;var i=this.response.target;i&&(t.target=i),t.document=this.response.text,t.acceptLayer=this.response.acceptLayer,t.dismissLayer=this.response.dismissLayer,t.document||!r.isDefined(t.acceptLayer)&&!r.isDefined(t.dismissLayer)||(t.target=":none"),t.context=r.merge(t.context,this.response.context)},o}(up.Change)},7050:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};up.util,up.Change.OpenLayer=function(t){function r(e){var n=t.call(this,e)||this;return n.target=e.target,n.origin=e.origin,n.baseLayer=e.baseLayer,n}return e(r,t),r.prototype.preflightProps=function(){return{layer:this.baseLayer,mode:this.options.mode,context:this.buildLayer().context,target:this.target}},r.prototype.bestPreflightSelector=function(){return this.target},r.prototype.execute=function(t){var e=this;if(":none"===this.target?this.content=document.createElement("up-none"):this.content=t.select(this.target),!this.content||this.baseLayer.isClosed())throw this.notApplicable();if(up.puts("up.render()",'Opening element "'+this.target+'" in new overlay'),this.options.title=this.improveHistoryValue(this.options.title,t.getTitle()),this.emitOpenEvent().defaultPrevented)throw up.error.aborted("Open event was prevented");return this.baseLayer.peel(),this.layer=this.buildLayer(),up.layer.stack.push(this.layer),this.layer.createElements(this.content),this.layer.setupHandlers(),this.handleHistory(),this.setSource({newElement:this.content,source:this.options.source}),t.finalizeElement(this.content),up.hello(this.layer.element,{layer:this.layer,origin:this.origin}),this.handleLayerChangeRequests(),this.handleScroll(),this.layer.startOpenAnimation().then((function(){e.layer.isOpen()&&e.handleFocus(),e.onFinished()})),this.layer.opening=!1,this.emitOpenedEvent(),this.abortWhenLayerClosed(),new up.RenderResult({layer:this.layer,fragments:[this.content]})},r.prototype.buildLayer=function(){var t=this,e=n(n({},this.options),{opening:!0});return up.layer.build(e,(function(e){return t.options=up.RenderOptions.finalize(e)}))},r.prototype.handleHistory=function(){"auto"===this.layer.history&&(this.layer.history=up.fragment.hasAutoHistory(this.content)),this.layer.parent.saveHistory(),this.layer.updateHistory(this.options)},r.prototype.handleFocus=function(){var t;null===(t=this.baseLayer.overlayFocus)||void 0===t||t.moveToBack(),this.layer.overlayFocus.moveToFront(),new up.FragmentFocus({fragment:this.content,layer:this.layer,autoMeans:["autofocus","layer"]}).process(this.options.focus)},r.prototype.handleScroll=function(){var t=n(n({},this.options),{fragment:this.content,layer:this.layer,autoMeans:["hash","layer"]});new up.FragmentScrolling(t).process(this.options.scroll)},r.prototype.emitOpenEvent=function(){return up.emit("up:layer:open",{origin:this.origin,baseLayer:this.baseLayer,layerOptions:this.options,log:"Opening new overlay"})},r.prototype.emitOpenedEvent=function(){return this.layer.emit("up:layer:opened",{origin:this.origin,callback:this.layer.callback("onOpened"),log:"Opened new "+this.layer})},r}(up.Change.Addition)},1752:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Change.Removal=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(up.Change)},9441:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},i=up.util,s=up.element;up.Change.UpdateLayer=function(t){function u(e){var n=this;return e=up.RenderOptions.finalize(e),(n=t.call(this,e)||this).layer=e.layer,n.target=e.target,n.placement=e.placement,n.context=e.context,n.parseSteps(),n}return e(u,t),u.prototype.preflightProps=function(){return this.matchPreflight(),{layer:this.layer,mode:this.layer.mode,context:i.merge(this.layer.context,this.context),target:this.bestPreflightSelector()}},u.prototype.bestPreflightSelector=function(){return this.matchPreflight(),i.map(this.steps,"selector").join(", ")||":none"},u.prototype.execute=function(t){var e=this;this.responseDoc=t,this.matchPostflight(),up.puts("up.render()",'Updating "'+this.bestPreflightSelector()+'" in '+this.layer),this.options.title=this.improveHistoryValue(this.options.title,this.responseDoc.getTitle()),this.setScrollAndFocusOptions(),this.options.saveScroll&&up.viewport.saveScroll({layer:this.layer}),this.options.peel&&this.layer.peel(),i.assign(this.layer.context,this.context),"auto"===this.options.history&&(this.options.history=this.hasAutoHistory()),this.options.history&&this.layer.updateHistory(this.options),this.handleLayerChangeRequests();var n=this.steps.map((function(t){return e.executeStep(t)}));return Promise.all(n).then((function(){return e.abortWhenLayerClosed(),e.onFinished()})),new up.RenderResult({layer:this.layer,fragments:i.map(this.steps,"newElement")})},u.prototype.executeStep=function(t){return r(this,void 0,void 0,(function(){var e,r,i,u,a,c,p,l,f=this;return o(this,(function(o){switch(o.label){case 0:switch(this.setSource(t),t.placement){case"swap":return[3,1];case"content":return[3,6];case"before":case"after":return[3,9]}return[3,13];case 1:return(e=this.findKeepPlan(t))?(up.fragment.emitKept(e),this.handleFocus(t.oldElement,t),[4,this.handleScroll(t.oldElement,t)]):[3,3];case 2:return o.sent(),[3,5];case 3:return this.transferKeepableElements(t),r=t.oldElement.parentNode,i=n(n({},t),{beforeStart:function(){up.fragment.markAsDestroying(t.oldElement)},afterInsert:function(){f.responseDoc.finalizeElement(t.newElement),up.hello(t.newElement,t)},beforeDetach:function(){up.syntax.clean(t.oldElement,{layer:f.layer})},afterDetach:function(){s.remove(t.oldElement),up.fragment.emitDestroyed(t.oldElement,{parent:r,log:!1})},scrollNew:function(){return f.handleFocus(t.newElement,t),f.handleScroll(t.newElement,t)}}),[4,up.morph(t.oldElement,t.newElement,t.transition,i)];case 4:o.sent(),o.label=5;case 5:return[3,14];case 6:return u=s.wrapChildren(t.oldElement),a=s.wrapChildren(t.newElement),c=n(n({},t),{placement:"swap",oldElement:u,newElement:a,focus:!1}),[4,this.executeStep(c)];case 7:return o.sent(),s.unwrap(a),[4,this.handleFocus(t.oldElement,t)];case 8:return o.sent(),[3,14];case 9:return p=s.wrapChildren(t.newElement),l="before"===t.placement?"afterbegin":"beforeend",t.oldElement.insertAdjacentElement(l,p),this.responseDoc.finalizeElement(p),up.hello(p,t),this.handleFocus(p,t),[4,this.handleScroll(p,t)];case 10:return o.sent(),[4,up.animate(p,t.transition,t)];case 11:return o.sent(),[4,s.unwrap(p)];case 12:return o.sent(),[3,14];case 13:up.fail("Unknown placement: %o",t.placement),o.label=14;case 14:return[2]}}))}))},u.prototype.findKeepPlan=function(t){if(t.keep){var e=t.oldElement,n=t.newElement,r=s.booleanOrStringAttr(e,"up-keep");if(r){!0===r&&(r="&");var o,i={layer:this.layer,origin:e};if((o=t.descendantsOnly?up.fragment.get(n,r,i):up.fragment.subtree(n,r,i)[0])&&s.matches(o,"[up-keep]")){var u={oldElement:e,newElement:o,newData:up.syntax.data(o)};if(!up.fragment.emitKeep(u).defaultPrevented)return u}}}},u.prototype.transferKeepableElements=function(t){var e=[];if(t.keep)for(var r=0,o=t.oldElement.querySelectorAll("[up-keep]");r<o.length;r++){var i=o[r],u=this.findKeepPlan(n(n({},t),{oldElement:i,descendantsOnly:!0}));if(u){var a=i.cloneNode(!0);s.replace(i,a),s.replace(u.newElement,i),e.push(u)}}t.keepPlans=e},u.prototype.parseSteps=function(){this.steps=[];for(var t=0,e=i.splitValues(this.target,",");t<e.length;t++){var r=e[t];if(":none"!==r){var o=r.match(/^(.+?)(?:\:(before|after))?$/);if(!o)throw up.error.invalidSelector(r);var s=n(n({},this.options),{selector:o[1],placement:o[2]||this.placement||"swap"});this.steps.push(s)}}},u.prototype.matchPreflight=function(){if(!this.matchedPreflight){for(var t=0,e=this.steps;t<e.length;t++){var n=e[t],r=new up.FragmentFinder(n);if(n.oldElement||(n.oldElement=r.find()),!n.oldElement)throw this.notApplicable('Could not find element "'+this.target+'" in current page')}this.resolveOldNesting(),this.matchedPreflight=!0}},u.prototype.matchPostflight=function(){if(!this.matchedPostflight){this.matchPreflight();for(var t=0,e=this.steps;t<e.length;t++){var n=e[t],r=this.responseDoc.select(n.selector);if(!r)throw this.notApplicable('Could not find element "'+this.target+'" in server response');n.newElement=r}this.options.hungry&&this.addHungrySteps(),this.resolveOldNesting(),this.matchedPostflight=!0}},u.prototype.addHungrySteps=function(){for(var t=0,e=up.fragment.all(up.radio.hungrySelector(),this.options);t<e.length;t++){var n=e[t],r=up.fragment.toTarget(n),o=this.responseDoc.select(r);if(o){var i={selector:r,oldElement:n,newElement:o,transition:s.booleanOrStringAttr(n,"transition"),placement:"swap"};this.steps.push(i)}}},u.prototype.containedByRivalStep=function(t,e){return i.some(t,(function(t){return t!==e&&("swap"===t.placement||"content"===t.placement)&&t.oldElement.contains(e.oldElement)}))},u.prototype.resolveOldNesting=function(){var t=this,e=i.uniqBy(this.steps,"oldElement");e=i.reject(e,(function(n){return t.containedByRivalStep(e,n)})),this.steps=e},u.prototype.setScrollAndFocusOptions=function(){var t=this;this.steps.forEach((function(e,n){n>0&&(e.scroll=!1,e.focus=!1),"swap"!==e.placement&&"content"!==e.placement||(e.scrollBehavior="auto",t.focusCapsule||(t.focusCapsule=up.FocusCapsule.preserveWithin(e.oldElement)))}))},u.prototype.handleFocus=function(t,e){return new up.FragmentFocus(n(n({},e),{fragment:t,layer:this.layer,focusCapsule:this.focusCapsule,autoMeans:up.fragment.config.autoFocus})).process(e.focus)},u.prototype.handleScroll=function(t,e){return new up.FragmentScrolling(n(n({},e),{fragment:t,layer:this.layer,autoMeans:up.fragment.config.autoScroll})).process(e.scroll)},u.prototype.hasAutoHistory=function(){var t=i.map(this.steps,"oldElement");return i.some(t,(function(t){return up.fragment.hasAutoHistory(t)}))},u}(up.Change.Addition)},1569:function(){var t=up.util,e=up.element;up.CompilerPass=function(){function n(t,e,n){void 0===n&&(n={}),this.root=t,this.compilers=e,this.skipSubtrees=n.skip,this.skipSubtrees.length&&this.root.querySelector("[up-keep]")||(this.skipSubtrees=void 0),this.layer=n.layer||up.layer.get(this.root)||up.layer.current,this.errors=[]}return n.prototype.run=function(){var t=this;if(up.puts("up.hello()","Compiling fragment %o",this.root),this.layer.asCurrent((function(){for(var e=0,n=t.compilers;e<n.length;e++){var r=n[e];t.runCompiler(r)}})),this.errors.length)throw up.error.failed("Errors while compiling",{errors:this.errors})},n.prototype.runCompiler=function(t){var e,n,r=this.select(t.selector);if(r.length){if(t.isDefault||up.puts("up.hello()",'Compiling "%s" on %d element(s)',t.selector,r.length),t.batch)this.compileBatch(t,r);else for(var o=0,i=r;o<i.length;o++){var s=i[o];this.compileOneElement(t,s)}return null===(n=(e=up.migrate).postCompile)||void 0===n?void 0:n.call(e,r,t)}},n.prototype.compileOneElement=function(t,e){var n=[t.jQuery?up.browser.jQuery(e):e];if(1!==t.length){var r=up.syntax.data(e);n.push(r)}var o=this.applyCompilerFunction(t,e,n),i=this.destructorPresence(o);i&&up.destructor(e,i)},n.prototype.compileBatch=function(e,n){var r=[e.jQuery?up.browser.jQuery(n):n];if(1!==e.length){var o=t.map(n,up.syntax.data);r.push(o)}var i=this.applyCompilerFunction(e,n,r);this.destructorPresence(i)&&up.fail("Compilers with { batch: true } cannot return destructors")},n.prototype.applyCompilerFunction=function(t,e,n){try{return t.apply(e,n)}catch(t){this.errors.push(t),up.log.error("up.hello()","While compiling %o: %o",e,t),up.error.emitGlobal(t)}},n.prototype.destructorPresence=function(e){if(t.isFunction(e)||t.isArray(e)&&t.every(e,t.isFunction))return e},n.prototype.select=function(n){var r=this,o=e.subtree(this.root,t.evalOption(n));return this.skipSubtrees&&(o=t.reject(o,(function(t){return r.isInSkippedSubtree(t)}))),o},n.prototype.isInSkippedSubtree=function(e){var n;return!!t.contains(this.skipSubtrees,e)||!!(n=e.parentElement)&&this.isInSkippedSubtree(n)},n}()},3742:function(){var t=up.util;up.Config=function(){function e(t){void 0===t&&(t=function(){return{}}),this.blueprintFn=t,this.reset()}return e.prototype.reset=function(){t.assign(this,this.blueprintFn())},e}()},2737:function(){var t=up.util,e=up.element;up.CSSTransition=function(){function n(e,n,r){this.element=e,this.lastFrameKebab=n,this.lastFrameKeysKebab=Object.keys(this.lastFrameKebab),t.some(this.lastFrameKeysKebab,(function(t){return t.match(/A-Z/)}))&&up.fail("Animation keys must be kebab-case"),this.finishEvent=r.finishEvent,this.duration=r.duration,this.easing=r.easing,this.finished=!1}return n.prototype.start=function(){return 0===this.lastFrameKeysKebab.length?(this.finished=!0,Promise.resolve()):(this.deferred=t.newDeferred(),this.pauseOldTransition(),this.startTime=new Date,this.startFallbackTimer(),this.listenToFinishEvent(),this.listenToTransitionEnd(),this.startMotion(),this.deferred.promise())},n.prototype.listenToFinishEvent=function(){this.finishEvent&&(this.stopListenToFinishEvent=up.on(this.element,this.finishEvent,this.onFinishEvent.bind(this)))},n.prototype.onFinishEvent=function(t){t.stopPropagation(),this.finish()},n.prototype.startFallbackTimer=function(){var e=this;this.fallbackTimer=t.timer(this.duration+100,(function(){e.finish()}))},n.prototype.stopFallbackTimer=function(){clearTimeout(this.fallbackTimer)},n.prototype.listenToTransitionEnd=function(){this.stopListenToTransitionEnd=up.on(this.element,"transitionend",this.onTransitionEnd.bind(this))},n.prototype.onTransitionEnd=function(e){if(e.target===this.element&&!(new Date-this.startTime<=.25*this.duration)){var n=e.propertyName;t.contains(this.lastFrameKeysKebab,n)&&this.finish()}},n.prototype.finish=function(){var t,n;this.finished||(this.finished=!0,this.stopFallbackTimer(),null===(t=this.stopListenToFinishEvent)||void 0===t||t.call(this),null===(n=this.stopListenToTransitionEnd)||void 0===n||n.call(this),e.concludeCSSTransition(this.element),this.resumeOldTransition(),this.deferred.resolve())},n.prototype.pauseOldTransition=function(){var t=e.style(this.element,["transitionProperty","transitionDuration","transitionDelay","transitionTimingFunction"]);if(e.hasCSSTransition(t)){if("all"!==t.transitionProperty){var n=t.transitionProperty.split(/\s*,\s*/),r=e.style(this.element,n);this.setOldTransitionTargetFrame=e.setTemporaryStyle(this.element,r)}this.setOldTransition=e.concludeCSSTransition(this.element)}},n.prototype.resumeOldTransition=function(){var t,e;null===(t=this.setOldTransitionTargetFrame)||void 0===t||t.call(this),null===(e=this.setOldTransition)||void 0===e||e.call(this)},n.prototype.startMotion=function(){e.setStyle(this.element,{transitionProperty:Object.keys(this.lastFrameKebab).join(", "),transitionDuration:this.duration+"ms",transitionTimingFunction:this.easing}),e.setStyle(this.element,this.lastFrameKebab)},n}()},3635:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=up.util;up.element,up.DestructorPass=function(){function n(t,e){this.fragment=t,this.options=e,this.errors=[]}return n.prototype.run=function(){for(var t=0,n=this.selectCleanables();t<n.length;t++){var r=n[t],o=e.pluckKey(r,"upDestructors");if(o)for(var i=0,s=o;i<s.length;i++){var u=s[i];this.applyDestructorFunction(u,r)}r.classList.remove("up-can-clean")}if(this.errors.length)throw up.error.failed("Errors while destroying",{errors:this.errors})},n.prototype.selectCleanables=function(){var e=t(t({},this.options),{destroying:!0});return up.fragment.subtree(this.fragment,".up-can-clean",e)},n.prototype.applyDestructorFunction=function(t,e){try{t()}catch(t){this.errors.push(t),up.log.error("up.destroy()","While destroying %o: %o",e,t),up.error.emitGlobal(t)}},n}()},1906:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.util,o=up.element;up.EventEmitter=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.keys=function(){return["target","event","baseLayer","callback","log","ensureBubbles"]},i.prototype.emit=function(){var t=this;return this.logEmission(),this.baseLayer?this.baseLayer.asCurrent((function(){return t.dispatchEvent()})):this.dispatchEvent(),this.event},i.prototype.dispatchEvent=function(){var t;this.target.dispatchEvent(this.event),this.ensureBubbles&&o.isDetached(this.target)&&document.dispatchEvent(this.event),null===(t=this.callback)||void 0===t||t.call(this,this.event)},i.prototype.assertEmitted=function(){var t=this.emit();if(t.defaultPrevented)throw up.error.aborted("Event "+t.type+" was prevented")},i.prototype.logEmission=function(){var t;if(up.log.isEnabled()){var e,o=this.log;r.isArray(o)?(o=(t=o)[0],e=t.slice(1)):e=[];var i=this.event.type;r.isString(o)?up.puts.apply(up,n([i,o],e)):!1!==o&&up.puts(i,"Event "+i)}},i.fromEmitArgs=function(t,e){var n;void 0===e&&(e={});var i,s=r.extractOptions(t);return s=r.merge(e,s),r.isElementish(t[0])?s.target=o.get(t.shift()):t[0]instanceof up.Layer&&(s.layer=t.shift()),s.layer&&(i=up.layer.get(s.layer),null==s.target&&(s.target=i.element),null==s.baseLayer&&(s.baseLayer=i)),s.baseLayer&&(s.baseLayer=up.layer.get(s.baseLayer)),r.isString(s.target)?s.target=up.fragment.get(s.target,{layer:s.layer}):s.target||(s.target=document),(null===(n=t[0])||void 0===n?void 0:n.preventDefault)?(s.event=t[0],null==s.log&&(s.log=t[0].log)):r.isString(t[0])?s.event=up.event.build(t[0],s):s.event=up.event.build(s),new this(s)},i}(up.Record)},4158:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.util,o=up.element;up.EventListener=function(t){function i(e){var n=t.call(this,e)||this;return n.key=n.constructor.buildKey(e),n.isDefault=up.framework.booting,n.nativeCallback=n.nativeCallback.bind(n),n}return e(i,t),i.prototype.keys=function(){return["element","eventType","selector","callback","jQuery","guard","baseLayer","passive","once"]},i.prototype.bind=function(){var t,e,n=(e=this.element).upEventListeners||(e.upEventListeners={});n[this.key]&&up.fail("up.on(): The %o callback %o cannot be registered more than once",this.eventType,this.callback),n[this.key]=this,(t=this.element).addEventListener.apply(t,this.addListenerArgs())},i.prototype.addListenerArgs=function(){var t=[this.eventType,this.nativeCallback];return this.passive&&up.browser.canPassiveEventListener()&&t.push({passive:!0}),t},i.prototype.unbind=function(){var t,e=this.element.upEventListeners;e&&delete e[this.key],(t=this.element).removeEventListener.apply(t,this.addListenerArgs())},i.prototype.nativeCallback=function(t){var e;this.once&&this.unbind();var i=t.target;if(this.selector&&(i=o.closest(i,r.evalOption(this.selector))),(!this.guard||this.guard(t))&&i){var s=[t,this.jQuery?up.browser.jQuery(i):i],u=this.callback.length;if(1!==u&&2!==u){var a=up.syntax.data(i);s.push(a)}var c=(e=this.callback).bind.apply(e,n([i],s));this.baseLayer?this.baseLayer.asCurrent(c):c()}},i.fromElement=function(t){var e=t.element.upEventListeners;if(e)return e[this.buildKey(t)]},i.buildKey=function(t){var e;return(e=t.callback).upUid||(e.upUid=r.uid()),[t.eventType,t.selector,t.callback.upUid].join("|")},i.allNonDefault=function(t){var e=t.upEventListeners;if(e){var n=r.values(e);return r.reject(n,"isDefault")}return[]},i}(up.Record)},3139:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.EventListenerGroup=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return e(o,t),o.prototype.keys=function(){return["elements","eventTypes","selector","callback","jQuery","guard","baseLayer","passive","once"]},o.prototype.bind=function(){var t=[];return this.eachListenerAttributes((function(e){var n=new up.EventListener(e);return n.bind(),t.push(n.unbind.bind(n))})),r.sequence(t)},o.prototype.eachListenerAttributes=function(t){for(var e=0,n=this.elements;e<n.length;e++)for(var r=n[e],o=0,i=this.eventTypes;o<i.length;o++){var s=i[o];t(this.listenerAttributes(r,s))}},o.prototype.listenerAttributes=function(t,e){return n(n({},this.attributes()),{element:t,eventType:e})},o.prototype.unbind=function(){this.eachListenerAttributes((function(t){var e=up.EventListener.fromElement(t);e&&e.unbind()}))},o.fromBindArgs=function(t,e){var o,i=(t=r.copy(t)).pop();o=t[0].addEventListener?[t.shift()]:r.isJQuery(t[0])||r.isList(t[0])&&t[0][0].addEventListener?t.shift():[document];var s=r.splitValues(t.shift()),u=up.migrate.fixEventTypes;u&&(s=u(s));var a=r.extractOptions(t),c=t[0];return new this(n(n({elements:o,eventTypes:s,selector:c,callback:i},a),e))},o}(up.Record)},6866:function(){var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},e=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},n=up.util,r=up.element;up.FieldObserver=function(){function o(t,e,n){this.scheduleValues=this.scheduleValues.bind(this),this.isNewValues=this.isNewValues.bind(this),this.callback=n,this.fields=r.list(t),this.delay=e.delay,this.batch=e.batch}return o.prototype.start=function(){var t=this;this.scheduledValues=null,this.processedValues=this.readFieldValues(),this.currentTimer=void 0,this.callbackRunning=!1,this.unbind=up.on(this.fields,"input change",(function(){return t.check()}))},o.prototype.stop=function(){this.unbind(),this.cancelTimer()},o.prototype.cancelTimer=function(){clearTimeout(this.currentTimer),this.currentTimer=void 0},o.prototype.scheduleTimer=function(){var t=this;this.cancelTimer(),this.currentTimer=n.timer(this.delay,(function(){t.currentTimer=void 0,t.requestCallback()}))},o.prototype.scheduleValues=function(t){this.scheduledValues=t,this.scheduleTimer()},o.prototype.isNewValues=function(t){return!n.isEqual(t,this.processedValues)&&!n.isEqual(this.scheduledValues,t)},o.prototype.requestCallback=function(){return t(this,void 0,void 0,(function(){var t,r,o,i;return e(this,(function(e){switch(e.label){case 0:if(null===this.scheduledValues||this.currentTimer||this.callbackRunning)return[3,2];if(t=this.changedValues(this.processedValues,this.scheduledValues),this.processedValues=this.scheduledValues,this.scheduledValues=null,this.callbackRunning=!0,r=[],this.batch)r.push(this.callback(t));else for(o in t)i=t[o],r.push(this.callback(i,o));return[4,n.allSettled(r)];case 1:e.sent(),this.callbackRunning=!1,this.requestCallback(),e.label=2;case 2:return[2]}}))}))},o.prototype.changedValues=function(t,e){var r={},o=Object.keys(t);o=o.concat(Object.keys(e));for(var i=0,s=o=n.uniq(o);i<s.length;i++){var u=s[i],a=t[u],c=e[u];n.isEqual(a,c)||(r[u]=c)}return r},o.prototype.readFieldValues=function(){return up.Params.fromFields(this.fields).toObject()},o.prototype.check=function(){var t=this.readFieldValues();this.isNewValues(t)&&this.scheduleValues(t)},o}()},665:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=(up.util,up.element),r=["selectionStart","selectionEnd","scrollLeft","scrollTop"];function o(t,e){for(var n=0,o=r;n<o.length;n++){var i=o[n];try{e[i]=t[i]}catch(t){}}}function i(t){var e=document.activeElement;if(n.isInSubtree(t,e))return e}up.FocusCapsule=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return e(s,t),s.prototype.keys=function(){return["selector","oldElement"].concat(r)},s.prototype.restore=function(t,e){if(this.wasLost()){var r=n.get(t,this.selector);return r?(o(this,r),up.focus(r,e),!0):void 0}},s.preserveWithin=function(t){var e=i(t);if(e){var n={oldElement:t,selector:up.fragment.toTarget(e)};return o(e,n),new this(n)}},s.prototype.wasLost=function(){return!i(this.oldElement)},s}(up.Record)},2587:function(){var t=/^([^ >+(]+) (.+)$/;up.FragmentFinder=function(){function e(t){this.options=t,this.origin=this.options.origin,this.selector=this.options.selector,this.layer=this.options.layer}return e.prototype.find=function(){return this.findAroundOrigin()||this.findInLayer()},e.prototype.findAroundOrigin=function(){if(this.origin&&up.fragment.config.matchAroundOrigin&&!up.element.isDetached(this.origin))return this.findClosest()||this.findInVicinity()},e.prototype.findClosest=function(){return up.fragment.closest(this.origin,this.selector,this.options)},e.prototype.findInVicinity=function(){var e=this.selector.match(t);if(e){var n=up.fragment.closest(this.origin,e[1],this.options);if(n)return up.fragment.getDumb(n,e[2])}},e.prototype.findInLayer=function(){return up.fragment.getDumb(this.selector,this.options)},e}()},7031:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util,r=up.element,o={preventScroll:!0};up.FragmentFocus=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.keys=function(){return t.prototype.keys.call(this).concat(["hash","focusCapsule"])},i.prototype.processPrimitive=function(t){switch(t){case"keep":return this.restoreFocus();case"target":case!0:return this.focusElement(this.fragment);case"layer":return this.focusElement(this.layer.getFocusElement());case"main":return this.focusSelector(":main");case"hash":return this.focusHash();case"autofocus":return this.autofocus();default:if(n.isString(t))return this.focusSelector(t)}},i.prototype.processElement=function(t){return this.focusElement(t)},i.prototype.resolveCondition=function(e){return"lost"===e?this.wasFocusLost():t.prototype.resolveCondition.call(this,e)},i.prototype.focusSelector=function(t){var e=this.findSelector(t);if(e)return this.focusElement(e)},i.prototype.restoreFocus=function(){var t;return null===(t=this.focusCapsule)||void 0===t?void 0:t.restore(this.fragment,o)},i.prototype.autofocus=function(){var t=r.subtree(this.fragment,"[autofocus]")[0];if(t)return up.focus(t,o),!0},i.prototype.focusElement=function(t){return up.viewport.makeFocusable(t),up.focus(t,o),!0},i.prototype.focusHash=function(){var t=up.viewport.firstHashTarget(this.hash,{layer:this.layer});if(t)return this.focusElement(t)},i.prototype.wasFocusLost=function(){var t;return null===(t=this.focusCapsule)||void 0===t?void 0:t.wasLost()},i}(up.FragmentProcessor)},2828:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.FragmentProcessor=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.keys=function(){return["fragment","autoMeans","origin","layer"]},r.prototype.process=function(t){return this.tryProcess(t)},r.prototype.tryProcess=function(t){var e=this;if(n.isArray(t))return n.find(t,(function(t){return e.tryProcess(t)}));if(n.isFunction(t))return this.tryProcess(t(this.fragment,this.attributes()));if(n.isElement(t))return this.processElement();if(n.isString(t)){if("auto"===t)return this.tryProcess(this.autoMeans);var r=t.match(/^(.+?)-if-(.+?)$/);if(r)return this.resolveCondition(r[2])&&this.process(r[1])}return this.processPrimitive(t)},r.prototype.resolveCondition=function(t){if("main"===t)return up.fragment.contains(this.fragment,":main")},r.prototype.findSelector=function(t){var e={layer:this.layer,origin:this.origin},n=up.fragment.get(this.fragment,t,e)||up.fragment.get(t,e);if(n)return n;up.warn("up.render()",'Could not find an element matching "%s"',t)},r}(up.Record)},4850:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.element,up.FragmentScrolling=function(t){function o(e){var n,r;return null===(r=(n=up.migrate).handleScrollOptions)||void 0===r||r.call(n,e),t.call(this,e)||this}return e(o,t),o.prototype.keys=function(){return t.prototype.keys.call(this).concat(["hash","mode","revealTop","revealMax","revealSnap","scrollBehavior","scrollSpeed"])},o.prototype.process=function(e){return t.prototype.process.call(this,e)||Promise.resolve()},o.prototype.processPrimitive=function(t){switch(t){case"reset":return this.reset();case"layer":return this.revealLayer();case"main":return this.revealSelector(":main");case"restore":return this.restore();case"hash":return this.hash&&up.viewport.revealHash(this.hash,this.attributes());case"target":case"reveal":case!0:return this.revealElement(this.fragment);default:if(r.isString(t))return this.revealSelector(t)}},o.prototype.processElement=function(t){return this.revealElement(t)},o.prototype.revealElement=function(t){return up.reveal(t,this.attributes())},o.prototype.revealSelector=function(t){var e=this.findSelector(t);if(e)return this.revealElement(e)},o.prototype.revealLayer=function(){return this.revealElement(this.layer.getBoxElement())},o.prototype.reset=function(){return up.viewport.resetScroll(n(n({},this.attributes()),{around:this.fragment}))},o.prototype.restore=function(){return up.viewport.restoreScroll(n(n({},this.attributes()),{around:this.fragment}))},o}(up.FragmentProcessor)},6267:function(){var t=up.util,e=up.element;up.HTMLWrapper=function(){function n(t,e){void 0===e&&(e={}),this.tagName=t;var n="<"+this.tagName+"[^>]*>",r="</"+this.tagName+">";this.pattern=new RegExp(n+"(.|\\s)*?"+r,"ig"),this.attrName="up-wrapped-"+this.tagName}return n.prototype.strip=function(t){return t.replace(this.pattern,"")},n.prototype.wrap=function(t){return t.replace(this.pattern,this.wrapMatch.bind(this))},n.prototype.wrapMatch=function(e){return this.didWrap=!0,'<meta name="'+this.attrName+'" value="'+t.escapeHTML(e)+'">'},n.prototype.unwrap=function(t){if(this.didWrap)for(var n=0,r=t.querySelectorAll("meta[name='"+this.attrName+"']");n<r.length;n++){var o=r[n],i=o.getAttribute("value"),s=e.createFromHTML(i);e.replace(o,s)}},n}()},7956:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.element,o=up.util;up.Layer=function(t){function i(e){void 0===e&&(e={});var n=t.call(this,e)||this;if(!n.mode)throw"missing { mode } option";return n}return e(i,t),i.prototype.keys=function(){return["element","stack","history","mode","context","lastScrollTops"]},i.prototype.defaults=function(){return{context:{},lastScrollTops:new up.Cache({size:30,key:up.history.normalizeURL})}},i.prototype.setupHandlers=function(){up.link.convertClicks(this)},i.prototype.teardownHandlers=function(){},i.prototype.mainTargets=function(){return up.layer.mainTargets(this.mode)},i.prototype.sync=function(){},i.prototype.accept=function(){throw up.error.notImplemented()},i.prototype.dismiss=function(){throw up.error.notImplemented()},i.prototype.peel=function(t){this.stack.peel(this,t)},i.prototype.evalOption=function(t){return o.evalOption(t,this)},i.prototype.isCurrent=function(){return this.stack.isCurrent(this)},i.prototype.isFront=function(){return this.stack.isFront(this)},i.prototype.isRoot=function(){return this.stack.isRoot(this)},i.prototype.isOverlay=function(){return this.stack.isOverlay(this)},i.prototype.isOpen=function(){return this.stack.isOpen(this)},i.prototype.isClosed=function(){return this.stack.isClosed(this)},Object.defineProperty(i.prototype,"parent",{get:function(){return this.stack.parentOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"child",{get:function(){return this.stack.childOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ancestors",{get:function(){return this.stack.ancestorsOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"descendants",{get:function(){return this.stack.descendantsOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"index",{get:function(){return this.stack.indexOf(this)},enumerable:!1,configurable:!0}),i.prototype.getContentElement=function(){return this.contentElement||this.element},i.prototype.getBoxElement=function(){return this.boxElement||this.element},i.prototype.getFocusElement=function(){return this.getBoxElement()},i.prototype.getFirstSwappableElement=function(){throw up.error.notImplemented()},i.prototype.contains=function(t){return r.closest(t,up.layer.anySelector())===this.element},i.prototype.on=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventListenerGroup(t).bind()},i.prototype.off=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventListenerGroup(t).unbind()},i.prototype.buildEventListenerGroup=function(t){var e=this;return up.EventListenerGroup.fromBindArgs(t,{guard:function(t){return e.containsEventTarget(t)},elements:[this.element],baseLayer:this})},i.prototype.containsEventTarget=function(t){return this.contains(t.target)},i.prototype.wasHitByMouseEvent=function(t){var e=document.elementFromPoint(t.clientX,t.clientY);return!e||this.contains(e)},i.prototype.buildEventEmitter=function(t){return up.EventEmitter.fromEmitArgs(t,{layer:this})},i.prototype.emit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventEmitter(t).emit()},i.prototype.isDetached=function(){return r.isDetached(this.element)},i.prototype.saveHistory=function(){this.isHistoryVisible()&&(this.savedTitle=document.title,this.savedLocation=up.history.location)},i.prototype.restoreHistory=function(){this.savedLocation&&(up.history.push(this.savedLocation),this.savedLocation=null),this.savedTitle&&(document.title=this.savedTitle,this.savedTitle=null)},i.prototype.asCurrent=function(t){return this.stack.asCurrent(this,t)},i.prototype.updateHistory=function(t){o.isString(t.title)&&(this.title=t.title),o.isString(t.location)&&(this.location=t.location)},i.prototype.isHistoryVisible=function(){return this.history&&(this.isRoot()||this.parent.isHistoryVisible())},i.prototype.showsLiveHistory=function(){return this.isHistoryVisible()&&this.isFront()&&(up.history.config.enabled||this.isRoot())},Object.defineProperty(i.prototype,"title",{get:function(){return this.showsLiveHistory()?document.title:this.savedTitle},set:function(t){this.savedTitle=t,this.showsLiveHistory()&&(document.title=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this.showsLiveHistory()?up.history.location:this.savedLocation},set:function(t){this.savedLocation!==(t=up.history.normalizeURL(t))&&(this.savedLocation=t,this.emit("up:layer:location:changed",{location:t,log:!1}),this.showsLiveHistory()&&up.history.push(t))},enumerable:!1,configurable:!0}),i.prototype.selector=function(t){return this.constructor.selector(t)},i.selector=function(t){throw up.error.notImplemented()},i.prototype.toString=function(){throw up.error.notImplemented()},i.prototype.affix=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.affix.apply(r,n([this.getFirstSwappableElement()],t))},i.prototype[o.isEqual.key]=function(t){return this.constructor===t.constructor&&this.element===t.element},i}(up.Record)},7101:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Cover=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="cover",e)},5580:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Drawer=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="drawer",e)},86:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Modal=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="modal",e)},7403:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.element,o=up.util;up.Layer.Overlay=function(t){function i(e){var n=t.call(this,e)||this;return!0===n.dismissable?n.dismissable=["button","key","outside"]:!1===n.dismissable?n.dismissable=[]:n.dismissable=o.splitValues(n.dismissable),n.acceptLocation&&(n.acceptLocation=new up.URLPattern(n.acceptLocation)),n.dismissLocation&&(n.dismissLocation=new up.URLPattern(n.dismissLocation)),n}return e(i,t),i.prototype.keys=function(){return t.prototype.keys.call(this).concat(["position","align","size","origin","class","backdrop","openAnimation","closeAnimation","openDuration","closeDuration","openEasing","closeEasing","backdropOpenAnimation","backdropCloseAnimation","dismissable","dismissLabel","dismissAriaLabel","onOpened","onAccept","onAccepted","onDismiss","onDismissed","acceptEvent","dismissEvent","acceptLocation","dismissLocation","opening"])},i.prototype.callback=function(t){var e=this[t];if(e)return e.bind(this)},i.prototype.createElement=function(t){this.nesting||(this.nesting=this.suggestVisualNesting());var e=o.compactObject(o.pick(this,["align","position","size","class","nesting"]));this.element=this.affixPart(t,null,e)},i.prototype.createBackdropElement=function(t){this.backdropElement=this.affixPart(t,"backdrop")},i.prototype.createViewportElement=function(t){this.viewportElement=this.affixPart(t,"viewport",{"up-viewport":""})},i.prototype.createBoxElement=function(t){this.boxElement=this.affixPart(t,"box")},i.prototype.createContentElement=function(t,e){this.contentElement=this.affixPart(t,"content"),this.contentElement.appendChild(e)},i.prototype.createDismissElement=function(t){return this.dismissElement=this.affixPart(t,"dismiss",{"up-dismiss":'":button"',"aria-label":this.dismissAriaLabel}),r.affix(this.dismissElement,'span[aria-hidden="true"]',{text:this.dismissLabel})},i.prototype.affixPart=function(t,e,n){return void 0===n&&(n={}),r.affix(t,this.selector(e),n)},i.selector=function(t){return o.compact(["up",this.mode,t]).join("-")},i.prototype.suggestVisualNesting=function(){var t=this.parent;return this.mode===t.mode?1+t.suggestVisualNesting():0},i.prototype.setupHandlers=function(){var e,n,r=this;t.prototype.setupHandlers.call(this),this.overlayFocus=new up.OverlayFocus(this),this.supportsDismissMethod("button")&&this.createDismissElement(this.getBoxElement()),this.supportsDismissMethod("outside")&&(this.unbindParentClicked=this.parent.on("up:click",(function(t,e){var n=r.origin&&r.origin.contains(e);r.onOutsideClicked(t,n)})),this.viewportElement&&up.on(this.viewportElement,"up:click",(function(t){t.target===r.viewportElement&&r.onOutsideClicked(t,!0)}))),this.supportsDismissMethod("key")&&(this.unbindEscapePressed=up.event.onEscape((function(t){return r.onEscapePressed(t)}))),this.registerClickCloser("up-accept",(function(t,e){r.accept(t,e)})),this.registerClickCloser("up-dismiss",(function(t,e){r.dismiss(t,e)})),null===(n=(e=up.migrate).registerLayerCloser)||void 0===n||n.call(e,this),this.registerEventCloser(this.acceptEvent,this.accept),this.registerEventCloser(this.dismissEvent,this.dismiss)},i.prototype.onOutsideClicked=function(t,e){e&&up.event.halt(t),this.dismiss(":outside")},i.prototype.onEscapePressed=function(t){if(this.isFront()){var e=up.form.focusedField();e?e.blur():this.supportsDismissMethod("key")&&(up.event.halt(t),this.dismiss(":key"))}},i.prototype.registerClickCloser=function(t,e){this.on("up:click","["+t+"]",(function(n){up.event.halt(n);var o=n.target,i=r.jsonAttr(o,t),s={origin:o},u=new up.OptionsParser(s,o);u.booleanOrString("animation"),u.string("easing"),u.number("duration"),u.string("confirm"),e(i,s)}))},i.prototype.registerEventCloser=function(t,e){var n=this;if(t)return this.on(t,(function(t){t.preventDefault(),e.call(n,t)}))},i.prototype.tryAcceptForLocation=function(){this.tryCloseForLocation(this.acceptLocation,this.accept)},i.prototype.tryDismissForLocation=function(){this.tryCloseForLocation(this.dismissLocation,this.dismiss)},i.prototype.tryCloseForLocation=function(t,e){var r,o;if(t&&(r=this.location)&&(o=t.recognize(r))){var i=n(n({},o),{location:r});e.call(this,i)}},i.prototype.teardownHandlers=function(){var e,n;t.prototype.teardownHandlers.call(this),null===(e=this.unbindParentClicked)||void 0===e||e.call(this),null===(n=this.unbindEscapePressed)||void 0===n||n.call(this),this.overlayFocus.teardown()},i.prototype.destroyElements=function(t){var e=this,r=n(n({},t),{animation:function(){return e.startCloseAnimation(t)},onFinished:function(){var n;e.onElementsRemoved(),null===(n=t.onFinished)||void 0===n||n.call(t)},log:!1});up.destroy(this.element,r)},i.prototype.onElementsRemoved=function(){},i.prototype.startAnimation=function(t){void 0===t&&(t={});var e,n=up.animate(this.getBoxElement(),t.boxAnimation,t);return this.backdrop&&!up.motion.isNone(t.boxAnimation)&&(e=up.animate(this.backdropElement,t.backdropAnimation,t)),Promise.all([n,e])},i.prototype.startOpenAnimation=function(t){var e,n=this;return void 0===t&&(t={}),this.startAnimation({boxAnimation:null!==(e=t.animation)&&void 0!==e?e:this.evalOption(this.openAnimation),backdropAnimation:"fade-in",easing:t.easing||this.openEasing,duration:t.duration||this.openDuration}).then((function(){return n.wasEverVisible=!0}))},i.prototype.startCloseAnimation=function(t){var e;void 0===t&&(t={});var n=this.wasEverVisible&&(null!==(e=t.animation)&&void 0!==e?e:this.evalOption(this.closeAnimation));return this.startAnimation({boxAnimation:n,backdropAnimation:"fade-out",easing:t.easing||this.closeEasing,duration:t.duration||this.closeDuration})},i.prototype.accept=function(t,e){return void 0===t&&(t=null),void 0===e&&(e={}),this.executeCloseChange("accept",t,e)},i.prototype.dismiss=function(t,e){return void 0===t&&(t=null),void 0===e&&(e={}),this.executeCloseChange("dismiss",t,e)},i.prototype.supportsDismissMethod=function(t){return o.contains(this.dismissable,t)},i.prototype.executeCloseChange=function(t,e,r){return r=n(n({},r),{verb:t,value:e,layer:this}),new up.Change.CloseLayer(r).execute()},i.prototype.getFirstSwappableElement=function(){return this.getContentElement().children[0]},i.prototype.toString=function(){return this.mode+" overlay"},i}(up.Layer)},6412:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.element,up.Layer.OverlayWithTether=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createElements=function(t){this.origin||up.fail("Missing { origin } option"),this.tether=new up.Tether({anchor:this.origin,align:this.align,position:this.position}),this.createElement(this.tether.parent),this.createContentElement(this.element,t),this.tether.start(this.element)},n.prototype.onElementsRemoved=function(){this.tether.stop()},n.prototype.sync=function(){this.isOpen()&&(this.isDetached()||this.tether.isDetached()?this.dismiss(":detached",{animation:!1,preventable:!1}):this.tether.sync())},n}(up.Layer.Overlay)},7965:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.element,up.Layer.OverlayWithViewport=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.getParentElement=function(){return document.body},e.prototype.createElements=function(t){this.shiftBody(),this.createElement(this.constructor.getParentElement()),this.backdrop&&this.createBackdropElement(this.element),this.createViewportElement(this.element),this.createBoxElement(this.viewportElement),this.createContentElement(this.boxElement,t)},e.prototype.onElementsRemoved=function(){this.unshiftBody()},e.prototype.shiftBody=function(){this.constructor.bodyShifter.shift()},e.prototype.unshiftBody=function(){this.constructor.bodyShifter.unshift()},e.prototype.sync=function(){this.isDetached()&&this.isOpen()&&this.constructor.getParentElement().appendChild(this.element)},e}(up.Layer.Overlay)).bodyShifter=new up.BodyShifter,e)},4552:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Popup=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithTether)).mode="popup",e)},7771:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=up.util,o=up.element;up.Layer.Root=((e=function(t){function e(e){var n=t.call(this,e)||this;return n.setupHandlers(),n}return n(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return o.root},enumerable:!1,configurable:!0}),e.prototype.getFirstSwappableElement=function(){return document.body},e.selector=function(){return"html"},e.prototype.setupHandlers=function(){this.element.upHandlersApplied||(this.element.upHandlersApplied=!0,t.prototype.setupHandlers.call(this))},e.prototype.sync=function(){this.setupHandlers()},e.prototype.accept=function(){this.cannotCloseRoot()},e.prototype.dismiss=function(){this.cannotCloseRoot()},e.prototype.cannotCloseRoot=function(){throw up.error.failed("Cannot close the root layer")},e.prototype.reset=function(){r.assign(this,this.defaults())},e.prototype.toString=function(){return"root layer"},e}(up.Layer)).mode="root",e)},6066:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},n=up.util,r=up.element;up.LayerLookup=function(){function o(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];this.stack=e;var i=n.parseArgIntoOptions(r,"layer");if(!1!==i.normalizeLayerOptions&&up.layer.normalizeOptions(i),this.values=n.splitValues(i.layer),this.origin=i.origin,this.baseLayer=i.baseLayer||this.stack.current,n.isString(this.baseLayer)){var s=t(t({},i),{baseLayer:this.stack.current,normalizeLayerOptions:!1});this.baseLayer=new this.constructor(this.stack,this.baseLayer,s).first()}}return o.prototype.originLayer=function(){if(this.origin)return this.forElement(this.origin)},o.prototype.first=function(){return this.all()[0]},o.prototype.all=function(){var t=this,e=n.flatMap(this.values,(function(e){return t.resolveValue(e)}));return e=n.compact(e),n.uniq(e)},o.prototype.forElement=function(t){return t=r.get(t),n.find(this.stack.reversed(),(function(e){return e.contains(t)}))},o.prototype.forIndex=function(t){return this.stack[t]},o.prototype.resolveValue=function(t){if(t instanceof up.Layer)return t;if(n.isNumber(t))return this.forIndex(t);if(/^\d+$/.test(t))return this.forIndex(Number(t));if(n.isElementish(t))return this.forElement(t);switch(t){case"any":return e([this.baseLayer],this.stack.reversed());case"current":return this.baseLayer;case"closest":return this.stack.selfAndAncestorsOf(this.baseLayer);case"parent":return this.baseLayer.parent;case"ancestor":case"ancestors":return this.baseLayer.ancestors;case"child":return this.baseLayer.child;case"descendant":case"descendants":return this.baseLayer.descendants;case"new":return"new";case"root":return this.stack.root;case"overlay":case"overlays":return n.reverse(this.stack.overlays);case"front":return this.stack.front;case"origin":return this.originLayer();default:return up.fail("Unknown { layer } option: %o",t)}},o}()},6387:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},o=up.util;up.element,up.LayerStack=function(t){function i(){var e=t.call(this)||this;return Object.setPrototypeOf(e,up.LayerStack.prototype),e.currentOverrides=[],e.push(e.buildRoot()),e}return e(i,t),i.prototype.buildRoot=function(){return up.layer.build({mode:"root",stack:this})},i.prototype.remove=function(t){o.remove(this,t)},i.prototype.peel=function(t,e){for(var r=o.reverse(t.descendants),i=n(n({},e),{preventable:!1}),s=0,u=r;s<u.length;s++)u[s].dismiss(":peel",i)},i.prototype.reset=function(){this.peel(this.root,{animation:!1}),this.currentOverrides=[],this.root.reset()},i.prototype.isOpen=function(t){return t.index>=0},i.prototype.isClosed=function(t){return!this.isOpen(t)},i.prototype.parentOf=function(t){return this[t.index-1]},i.prototype.childOf=function(t){return this[t.index+1]},i.prototype.ancestorsOf=function(t){return o.reverse(this.slice(0,t.index))},i.prototype.selfAndAncestorsOf=function(t){return r([t],t.ancestors)},i.prototype.descendantsOf=function(t){return this.slice(t.index+1)},i.prototype.isRoot=function(t){return this[0]===t},i.prototype.isOverlay=function(t){return!this.isRoot(t)},i.prototype.isCurrent=function(t){return this.current===t},i.prototype.isFront=function(t){return this.front===t},i.prototype.get=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.getAll.apply(this,t)[0]},i.prototype.getAll=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(new((t=up.LayerLookup).bind.apply(t,r([void 0,this],e)))).all()},i.prototype.sync=function(){for(var t=0;t<this.length;t++)this[t].sync()},i.prototype.asCurrent=function(t,e){try{return this.currentOverrides.push(t),e()}finally{this.currentOverrides.pop()}},i.prototype.reversed=function(){return o.reverse(this)},i.prototype.dismissOverlays=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),e.dismissable=!1;for(var n=0,r=o.reverse(this.overlays);n<r.length;n++)r[n].dismiss(t,e)},i.prototype[o.copy.key]=function(){return o.copyArrayLike(this)},Object.defineProperty(i.prototype,"count",{get:function(){return this.length},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"root",{get:function(){return this[0]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"overlays",{get:function(){return this.root.descendants},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"current",{get:function(){return o.last(this.currentOverrides)||this.front},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"front",{get:function(){return o.last(this)},enumerable:!1,configurable:!0}),i}(Array)},5390:function(){up.util,up.LinkFeedbackURLs=function(){function t(t){var e=up.feedback.normalizeURL;if(this.isSafe=up.link.isSafe(t),this.isSafe){var n=t.getAttribute("href");n&&"#"!==n&&(this.href=e(n));var r=t.getAttribute("up-href");r&&(this.upHREF=e(r));var o=t.getAttribute("up-alias");o&&(this.aliasPattern=new up.URLPattern(o,e))}}return t.prototype.isCurrent=function(t){return this.isSafe&&!!(this.href&&this.href===t||this.upHREF&&this.upHREF===t||this.aliasPattern&&this.aliasPattern.test(t,!1))},t}()},2618:function(){var t=up.util,e=up.element;up.LinkPreloader=function(){function n(){this.considerPreload=this.considerPreload.bind(this)}return n.prototype.observeLink=function(t){var e=this;up.link.isSafe(t)&&(this.on(t,"mouseenter",(function(t){return e.considerPreload(t,!0)})),this.on(t,"mousedown touchstart",(function(t){return e.considerPreload(t)})),this.on(t,"mouseleave",(function(t){return e.stopPreload(t)})))},n.prototype.on=function(t,e,n){up.on(t,e,{passive:!0},n)},n.prototype.considerPreload=function(t,e){var n=t.target;n!==this.currentLink&&(this.reset(),this.currentLink=n,up.link.shouldFollowEvent(t,n)&&(e?this.preloadAfterDelay(n):this.preloadNow(n)))},n.prototype.stopPreload=function(t){if(t.target===this.currentLink)return this.reset()},n.prototype.reset=function(){var t;this.currentLink&&(clearTimeout(this.timer),(null===(t=this.currentRequest)||void 0===t?void 0:t.preload)&&this.currentRequest.abort(),this.currentLink=void 0,this.currentRequest=void 0)},n.prototype.preloadAfterDelay=function(n){var r,o=this,i=null!==(r=e.numberAttr(n,"up-delay"))&&void 0!==r?r:up.link.config.preloadDelay;this.timer=t.timer(i,(function(){return o.preloadNow(n)}))},n.prototype.preloadNow=function(t){var n=this;e.isDetached(t)?this.reset():(up.log.muteUncriticalRejection(up.link.preload(t,{onQueued:function(t){return n.currentRequest=t}})),this.queued=!0)},n}()},7792:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},r=up.util,o=up.element;up.MotionController=function(){function i(t){this.activeClass="up-"+t,this.dataKey="up-"+t+"-finished",this.selector="."+this.activeClass,this.finishEvent="up:"+t+":finish",this.finishCount=0,this.clusterCount=0}return i.prototype.startFunction=function(t,i,s){var u;return void 0===s&&(s={}),e(this,void 0,void 0,(function(){var e,a,c=this;return n(this,(function(n){switch(n.label){case 0:return t=o.list(t),e=function(){return up.log.muteUncriticalRejection(i())},s.trackMotion=null!==(u=s.trackMotion)&&void 0!==u?u:up.motion.isEnabled(),!1!==s.trackMotion?[3,2]:[4,r.microtask(e)];case 1:return n.sent(),[3,5];case 2:return s.trackMotion=!1,[4,this.finish(t)];case 3:return n.sent(),a=this.whileForwardingFinishEvent(t,e),this.markCluster(t,a),[4,a=a.then((function(){return c.unmarkCluster(t)}))];case 4:return[2,n.sent()];case 5:return[2]}}))}))},i.prototype.startMotion=function(t,e,n){void 0===n&&(n={});var r=up.on(t,this.finishEvent,(function(){return e.finish()})),o=this.startFunction(t,(function(){return e.start()}),n);return o.then(r)},i.prototype.finish=function(t){if(this.finishCount++,0===this.clusterCount||!up.motion.isEnabled())return Promise.resolve();t=this.expandFinishRequest(t);var e=r.map(t,this.finishOneElement.bind(this));return Promise.all(e)},i.prototype.expandFinishRequest=function(t){var e=this;return t?r.flatMap(t,(function(t){return o.list(o.closest(t,e.selector),o.all(t,e.selector))})):o.all(this.selector)},i.prototype.isActive=function(t){return t.classList.contains(this.activeClass)},i.prototype.finishOneElement=function(t){return this.emitFinishEvent(t),this.whenElementFinished(t)},i.prototype.emitFinishEvent=function(e,n){return void 0===n&&(n={}),n=t({target:e,log:!1},n),up.emit(this.finishEvent,n)},i.prototype.whenElementFinished=function(t){return t[this.dataKey]||Promise.resolve()},i.prototype.markCluster=function(t,e){this.clusterCount++;for(var n=0,r=t;n<r.length;n++){var o=r[n];o.classList.add(this.activeClass),o[this.dataKey]=e}},i.prototype.unmarkCluster=function(t){this.clusterCount--;for(var e=0,n=t;e<n.length;e++){var r=n[e];r.classList.remove(this.activeClass),delete r[this.dataKey]}},i.prototype.whileForwardingFinishEvent=function(t,e){var n=this;if(t.length<2)return e();var r=up.on(t,this.finishEvent,(function(e){if(!e.forwarded)for(var r=0,o=t;r<o.length;r++){var i=o[r];i!==e.target&&n.isActive(i)&&n.emitFinishEvent(i,{forwarded:!0})}}));return e().then(r)},i.prototype.reset=function(){return e(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,this.finish()];case 1:return t.sent(),this.finishCount=0,this.clusterCount=0,[2]}}))}))},i}()},1104:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=up.util,n=up.element;up.OptionsParser=function(){function r(t,e,n){this.options=t,this.element=e,this.fail=null==n?void 0:n.fail}return r.prototype.string=function(t,e){this.parse(n.attr,t,e)},r.prototype.boolean=function(t,e){this.parse(n.booleanAttr,t,e)},r.prototype.number=function(t,e){this.parse(n.numberAttr,t,e)},r.prototype.booleanOrString=function(t,e){this.parse(n.booleanOrStringAttr,t,e)},r.prototype.json=function(t,e){this.parse(n.jsonAttr,t,e)},r.prototype.parse=function(n,r,o){var i;void 0===o&&(o={});var s=e.wrapList(null!==(i=o.attr)&&void 0!==i?i:this.attrNameForKey(r)),u=this.options[r];if(this.element)for(var a=0,c=s;a<c.length;a++){var p=c[a];null!=u||(u=n(this.element,p))}null!=u||(u=o.default);var l,f=o.normalize;if(f&&(u=f(u)),e.isDefined(u)&&(this.options[r]=u),(o.fail||this.fail)&&(l=up.fragment.failKey(r))){var h=e.compact(e.map(s,this.deriveFailAttrName)),d=t(t({},o),{attr:h,fail:!1});this.parse(n,l,d)}},r.prototype.deriveFailAttrName=function(t){if(0===t.indexOf("up-"))return"up-fail-"+t.slice(3)},r.prototype.attrNameForKey=function(t){return"up-"+e.camelToKebabCase(t)},r}()},8665:function(){var t=up.element,e=up.util;up.OverlayFocus=function(){function n(t){this.layer=t,this.focusElement=this.layer.getFocusElement()}return n.prototype.moveToFront=function(){var e=this;this.enabled||(this.enabled=!0,this.untrapFocus=up.on("focusin",(function(t){return e.onFocus(t)})),this.unsetAttrs=t.setTemporaryAttrs(this.focusElement,{tabindex:"0",role:"dialog","aria-modal":"true"}),this.focusTrapBefore=t.affix(this.focusElement,"beforebegin","up-focus-trap[tabindex=0]"),this.focusTrapAfter=t.affix(this.focusElement,"afterend","up-focus-trap[tabindex=0]"))},n.prototype.moveToBack=function(){this.teardown()},n.prototype.teardown=function(){this.enabled&&(this.enabled=!1,this.untrapFocus(),this.unsetAttrs(),t.remove(this.focusTrapBefore),t.remove(this.focusTrapAfter))},n.prototype.onFocus=function(t){var e=t.target;this.processingFocusEvent||(this.processingFocusEvent=!0,e===this.focusTrapBefore?this.focusEnd():e!==this.focusTrapAfter&&this.layer.contains(e)||this.focusStart(),this.processingFocusEvent=!1)},n.prototype.focusStart=function(t){up.focus(this.focusElement,t)},n.prototype.focusEnd=function(){this.focusLastDescendant(this.layer.getBoxElement())||this.focusStart()},n.prototype.focusLastDescendant=function(t){for(var n=0,r=e.reverse(t.children);n<r.length;n++){var o=r[n];if(up.viewport.tryFocus(o)||this.focusLastDescendant(o))return!0}},n}()},3645:function(){var t=up.util,e=up.element;up.Params=function(){function n(t){this.clear(),this.addAll(t)}return n.prototype.clear=function(){this.entries=[]},n.prototype[t.copy.key]=function(){return new up.Params(this)},n.prototype.toObject=function(){for(var e={},n=0,r=this.entries;n<r.length;n++){var o=r[n],i=o.name,s=o.value;t.isBasicObjectProperty(i)||(this.isArrayKey(i)?(e[i]||(e[i]=[]),e[i].push(s)):e[i]=s)}return e},n.prototype.toArray=function(){return this.entries},n.prototype.toFormData=function(){for(var t=new FormData,e=0,n=this.entries;e<n.length;e++){var r=n[e];t.append(r.name,r.value)}return t.entries||(t.originalArray=this.entries),t},n.prototype.toQuery=function(){var e=t.map(this.entries,this.arrayEntryToQuery.bind(this));return(e=t.compact(e)).join("&")},n.prototype.arrayEntryToQuery=function(e){var n=e.value;if(!this.isBinaryValue(n)){var r=encodeURIComponent(e.name);return t.isGiven(n)&&(r+="=",r+=encodeURIComponent(n)),r}},n.prototype.isBinaryValue=function(t){return t instanceof Blob},n.prototype.hasBinaryValues=function(){var e=t.map(this.entries,"value");return t.some(e,this.isBinaryValue)},n.prototype.toURL=function(e){var n=[e,this.toQuery()];n=t.filter(n,t.isPresent);var r=t.contains(e,"?")?"&":"?";return n.join(r)},n.prototype.add=function(t,e){this.entries.push({name:t,value:e})},n.prototype.addAll=function(e){var n,r;t.isMissing(e)||(e instanceof this.constructor?(n=this.entries).push.apply(n,e.entries):t.isArray(e)?(r=this.entries).push.apply(r,e):t.isString(e)?this.addAllFromQuery(e):t.isFormData(e)?this.addAllFromFormData(e):t.isObject(e)?this.addAllFromObject(e):up.fail("Unsupport params type: %o",e))},n.prototype.addAllFromObject=function(e){for(var n in e)for(var r=e[n],o=0,i=t.isArray(r)?r:[r];o<i.length;o++){var s=i[o];this.add(n,s)}},n.prototype.addAllFromQuery=function(e){for(var n=0,r=e.split("&");n<r.length;n++){var o=r[n];if(o){var i=o.split("="),s=i[0],u=i[1];s=decodeURIComponent(s),u=t.isGiven(u)?decodeURIComponent(u):null,this.add(s,u)}}},n.prototype.addAllFromFormData=function(e){var n=this;t.eachIterator(e.entries(),(function(t){n.add.apply(n,t)}))},n.prototype.set=function(t,e){this.delete(t),this.add(t,e)},n.prototype.delete=function(e){this.entries=t.reject(this.entries,this.matchEntryFn(e))},n.prototype.matchEntryFn=function(t){return function(e){return e.name===t}},n.prototype.get=function(t){return this.isArrayKey(t)?this.getAll(t):this.getFirst(t)},n.prototype.getFirst=function(e){var n=t.find(this.entries,this.matchEntryFn(e));return null==n?void 0:n.value},n.prototype.getAll=function(e){if(this.isArrayKey(e))return this.getAll(e);var n=t.map(this.entries,this.matchEntryFn(e));return t.map(n,"value")},n.prototype.isArrayKey=function(e){return t.endsWith(e,"[]")},n.prototype[t.isBlank.key]=function(){return 0===this.entries.length},n.fromForm=function(t){return t=up.fragment.get(t),this.fromFields(up.form.fields(t))},n.fromFields=function(e){for(var n=new this,r=0,o=t.wrapList(e);r<o.length;r++){var i=o[r];n.addField(i)}return n},n.prototype.addField=function(t){var n=(t=e.get(t)).name;if(n&&!t.disabled){var r=t.tagName,o=t.type;if("SELECT"===r)for(var i=0,s=t.querySelectorAll("option");i<s.length;i++){var u=s[i];u.selected&&this.add(n,u.value)}else if("checkbox"===o||"radio"===o)t.checked&&this.add(n,t.value);else{if("file"!==o)return this.add(n,t.value);for(var a=0,c=t.files;a<c.length;a++){var p=c[a];this.add(n,p)}}}},n.prototype[t.isEqual.key]=function(e){return this.constructor===e.constructor&&t.isEqual(this.entries,e.entries)},n.fromURL=function(e){var n=new this,r=t.parseURL(e).search;return r&&(r=r.replace(/^\?/,""),n.addAll(r)),n},n.stripURL=function(e){return t.normalizeURL(e,{search:!1})},n}()},7782:function(){var t=up.element;up.ProgressBar=function(){function e(){this.step=0,this.element=t.affix(document.body,"up-progress-bar"),this.element.style.transition="width 300ms ease-out",this.moveTo(0),up.element.paint(this.element),this.width=31,this.nextStep()}return e.prototype.nextStep=function(){var t;t=this.width<80?Math.random()<.15?7+5*Math.random():1.5+.5*Math.random():.13*(100-width)*Math.random(),this.moveTo(this.width+t),this.step++;var e=300+40*this.step;this.timeout=setTimeout(this.nextStep.bind(this),e)},e.prototype.moveTo=function(t){this.width=t,this.element.style.width=t+"vw"},e.prototype.destroy=function(){clearTimeout(this.timeout),t.remove(this.element)},e.prototype.conclude=function(){clearTimeout(this.timeout),this.moveTo(100),setTimeout(this.destroy.bind(this),300)},e}()},2406:function(){var t=up.util;up.Record=function(){function e(e){t.assign(this,this.defaults(e),this.attributes(e))}return e.prototype.keys=function(){throw"Return an array of keys"},e.prototype.defaults=function(t){return{}},e.prototype.attributes=function(e){return void 0===e&&(e=this),t.pick(e,this.keys())},e.prototype[t.copy.key]=function(){return this.variant()},e.prototype.variant=function(e){return void 0===e&&(e={}),new this.constructor(t.merge(this.attributes(),e))},e.prototype[t.isEqual.key]=function(e){return this.constructor===e.constructor&&t.isEqual(this.attributes(),e.attributes())},e}()},1279:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.util,up.Rect=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["left","top","width","height"]},Object.defineProperty(n.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return this.left+this.width},enumerable:!1,configurable:!0}),n.fromElement=function(t){return new this(t.getBoundingClientRect())},n}(up.Record)},2705:function(){var t,e,n,r,o,i=up.util;up.RenderOptions=(t={hungry:!0,keep:!0,source:!0,saveScroll:!0,fail:"auto"},e={solo:!1,confirm:!1,feedback:!1},n=["url","method","origin","headers","params","cache","clearCache","fallback","solo","confirm","feedback","origin","baseLayer","fail"].concat(["keep","hungry","history","source","saveScroll","navigate"]),r=["url","content","fragment","document"],o=["history","focus","scroll"],{preprocess:function(n){var r,s;null===(s=(r=up.migrate).preprocessRenderOptions)||void 0===s||s.call(r,n);var u=i.merge(t,function(t){if(t.navigate)return up.fragment.config.navigateOptions}(n));return i.merge(i.omit(u,o),{defaults:u},n,function(t){if(t.preload)return e}(n))},finalize:function(t,e){return i.merge(t.defaults,e,t)},assertContentGiven:function(t){i.some(r,(function(e){return i.isGiven(t[e])}))||(t.defaultToEmptyContent?t.content="":up.fail("up.render() needs either { "+r.join(", ")+" } option"))},deriveFailOptions:function(t){return i.merge(t.defaults,i.pick(t,n),function(t){var e={};for(var n in t){var r=t[n],o=up.fragment.successKey(n);o&&(e[o]=r)}return e}(t))}})},606:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.RenderResult=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["fragments","layer"]},n}(up.Record)},5437:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.element,up.Request=function(t){function r(e){var r=t.call(this,e)||this;return r.params=new up.Params(r.params),r.headers||(r.headers={}),r.preload&&(r.cache=!0),null==r.wrapMethod&&(r.wrapMethod=up.network.config.wrapMethod),r.normalizeForCaching(),e.basic||(r.layer=up.layer.get(r.layer),r.failLayer=up.layer.get(r.failLayer||r.layer),r.context||(r.context=r.layer.context||{}),r.failContext||(r.failContext=r.failLayer.context||{}),r.mode||(r.mode=r.layer.mode),r.failMode||(r.failMode=r.failLayer.mode),r.deferred=n.newDeferred(),r.state="new"),r}return e(r,t),r.prototype.keys=function(){return["method","url","hash","params","target","failTarget","headers","timeout","preload","cache","clearCache","layer","mode","context","failLayer","failMode","failContext","origin","solo","queueTime","wrapMethod","contentType","payload","onQueued"]},r.prototype.followState=function(t){n.delegate(this,["deferred","state","preload"],(function(){return t}))},r.prototype.normalizeForCaching=function(){this.method=n.normalizeMethod(this.method),this.extractHashFromURL(),this.transferParamsToURL(),this.url=n.normalizeURL(this.url)},r.prototype.evictExpensiveAttrs=function(){var t=this;n.task((function(){return t.layer=void 0,t.failLayer=void 0,t.origin=void 0}))},r.prototype.extractHashFromURL=function(){var t,e=null===(t=this.url)||void 0===t?void 0:t.match(/^([^#]*)(#.+)$/);if(e)return this.url=e[1],this.hash=e[2]},r.prototype.transferParamsToURL=function(){!this.url||this.allowsPayload()||n.isBlank(this.params)||(this.url=this.params.toURL(this.url),this.params.clear())},r.prototype.isSafe=function(){return up.network.isSafeMethod(this.method)},r.prototype.allowsPayload=function(){return n.methodAllowsPayload(this.method)},r.prototype.will302RedirectWithGET=function(){return this.isSafe()||"POST"===this.method},r.prototype.willCache=function(){return"auto"===this.cache?up.network.config.autoCache(this):this.cache},r.prototype.runQueuedCallbacks=function(){var t,e=this;n.always(this,(function(){return e.evictExpensiveAttrs()})),null===(t=this.onQueued)||void 0===t||t.call(this,this)},r.prototype.load=function(){var t=this;"new"===this.state&&(this.state="loading",this.xhr=new up.Request.XHRRenderer(this).buildAndSend({onload:function(){return t.onXHRLoad()},onerror:function(){return t.onXHRError()},ontimeout:function(){return t.onXHRTimeout()},onabort:function(){return t.onXHRAbort()}}))},r.prototype.loadPage=function(){up.network.abort(),new up.Request.FormRenderer(this).buildAndSubmit()},r.prototype.onXHRLoad=function(){var t=this.extractResponseFromXHR(),e=["Server responded HTTP %d to %s %s (%d characters)",t.status,this.method,this.url,t.text.length];this.emit("up:request:loaded",{request:t.request,response:t,log:e}),this.respondWith(t)},r.prototype.onXHRError=function(){var t="Fatal error during request";this.deferred.reject(up.error.failed(t)),this.emit("up:request:fatal",{log:t})},r.prototype.onXHRTimeout=function(){this.setAbortedState("Requested timed out")},r.prototype.onXHRAbort=function(){this.setAbortedState()},r.prototype.abort=function(){this.setAbortedState()&&this.xhr&&this.xhr.abort()},r.prototype.setAbortedState=function(t){if(void 0===t&&(t=["Request to %s %s was aborted",this.method,this.url]),"new"===this.state||"loading"===this.state)return this.state="aborted",this.emit("up:request:aborted",{log:t}),this.deferred.reject(up.error.aborted(t)),!0},r.prototype.respondWith=function(t){if("loading"===this.state)return this.state="loaded",t.ok?this.deferred.resolve(t):this.deferred.reject(t)},r.prototype.csrfHeader=function(){return up.protocol.csrfHeader()},r.prototype.csrfParam=function(){return up.protocol.csrfParam()},r.prototype.csrfToken=function(){if(!this.isSafe()&&!this.isCrossOrigin())return up.protocol.csrfToken()},r.prototype.isCrossOrigin=function(){return n.isCrossOrigin(this.url)},r.prototype.extractResponseFromXHR=function(){var t={method:this.method,url:this.url,request:this,xhr:this.xhr,text:this.xhr.responseText,status:this.xhr.status,title:up.protocol.titleFromXHR(this.xhr),target:up.protocol.targetFromXHR(this.xhr),acceptLayer:up.protocol.acceptLayerFromXHR(this.xhr),dismissLayer:up.protocol.dismissLayerFromXHR(this.xhr),eventPlans:up.protocol.eventPlansFromXHR(this.xhr),context:up.protocol.contextFromXHR(this.xhr),clearCache:up.protocol.clearCacheFromXHR(this.xhr)},e=up.protocol.methodFromXHR(this.xhr),r=up.protocol.locationFromXHR(this.xhr);return r&&(e||n.matchURLs(t.url,r)||(e="GET"),t.url=r),e&&(t.method=e),new up.Response(t)},r.prototype.cacheKey=function(){return JSON.stringify([this.method,this.url,this.params.toQuery(),this.metaProps()])},r.prototype.metaProps=function(){for(var t={},e=0,r=n.evalOption(up.network.config.requestMetaKeys,this);e<r.length;e++){var o=r[e],i=this[o];n.isGiven(i)&&(t[o]=i)}return t},r.prototype.buildEventEmitter=function(t){return up.EventEmitter.fromEmitArgs(t,{request:this,layer:this.layer})},r.prototype.emit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventEmitter(t).emit()},r.prototype.assertEmitted=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.buildEventEmitter(t).assertEmitted()},Object.defineProperty(r.prototype,"description",{get:function(){return this.method+" "+this.url},enumerable:!1,configurable:!0}),r}(up.Record),n.delegate(up.Request.prototype,["then","catch","finally"],(function(){return this.deferred}))},7974:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.Request.Cache=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.maxSize=function(){return up.network.config.cacheSize},r.prototype.expiryMillis=function(){return up.network.config.cacheExpiry},r.prototype.normalizeStoreKey=function(t){return n.wrapValue(up.Request,t).cacheKey()},r.prototype.clear=function(e){var n=this;if(e&&"*"!==e&&!0!==e)return e=new up.URLPattern(e),this.each((function(t,r){e.test(r.url)&&n.store.remove(t)}));t.prototype.clear.call(this)},r}(up.Cache)},5221:function(){var t=up.util,e=up.element,n=["GET","POST"];up.Request.FormRenderer=function(){function r(t){this.request=t}return r.prototype.buildAndSubmit=function(){this.params=t.copy(this.request.params);var r=this.request.url,o=this.request.method,i=up.Params.fromURL(r);this.params.addAll(i),r=up.Params.stripURL(r),t.contains(n,o)||(o=up.protocol.wrapMethod(o,this.params)),this.form=e.affix(document.body,"form.up-request-loader",{method:o,action:r});var s,u,a=this.request.contentType;a&&this.form.setAttribute("enctype",a),(s=this.request.csrfParam())&&(u=this.request.csrfToken())&&this.params.add(s,u),t.each(this.params.toArray(),this.addField.bind(this)),up.browser.submitForm(this.form)},r.prototype.addField=function(t){e.affix(this.form,"input[type=hidden]",t)},r}()},6413:function(){var t=up.util;up.Request.Queue=function(){function e(t){var e,n;void 0===t&&(t={}),this.concurrency=null!==(e=t.concurrency)&&void 0!==e?e:function(){return up.network.config.concurrency},this.badResponseTime=null!==(n=t.badResponseTime)&&void 0!==n?n:function(){return up.network.config.badResponseTime},this.reset()}return e.prototype.reset=function(){this.queuedRequests=[],this.currentRequests=[],clearTimeout(this.checkSlowTimout),this.emittedSlow=!1},Object.defineProperty(e.prototype,"allRequests",{get:function(){return this.currentRequests.concat(this.queuedRequests)},enumerable:!1,configurable:!0}),e.prototype.asap=function(e){var n=this;e.runQueuedCallbacks(),t.always(e,(function(t){return n.onRequestSettled(e,t)})),e.queueTime=new Date,this.setSlowTimer(),this.hasConcurrencyLeft()?this.sendRequestNow(e):this.queueRequest(e)},e.prototype.promoteToForeground=function(t){if(t.preload)return t.preload=!1,this.setSlowTimer()},e.prototype.setSlowTimer=function(){var e=this,n=t.evalOption(this.badResponseTime);this.checkSlowTimout=t.timer(n,(function(){return e.checkSlow()}))},e.prototype.hasConcurrencyLeft=function(){var e=t.evalOption(this.concurrency);return-1===e||this.currentRequests.length<e},e.prototype.isBusy=function(){return this.currentRequests.length>0},e.prototype.queueRequest=function(t){this.queuedRequests.push(t)},e.prototype.pluckNextRequest=function(){var e=t.find(this.queuedRequests,(function(t){return!t.preload}));return e||(e=this.queuedRequests[0]),t.remove(this.queuedRequests,e)},e.prototype.sendRequestNow=function(t){t.emit("up:request:load",{log:["Loading %s %s",t.method,t.url]}).defaultPrevented?t.abort("Prevented by event listener"):(t.normalizeForCaching(),this.currentRequests.push(t),t.load())},e.prototype.onRequestSettled=function(e,n){var r=this;t.remove(this.currentRequests,e),n instanceof up.Response&&n.ok&&up.network.registerAliasForRedirect(e,n),this.checkSlow(),t.microtask((function(){return r.poke()}))},e.prototype.poke=function(){var t;if(this.hasConcurrencyLeft()&&(t=this.pluckNextRequest()))return this.sendRequestNow(t)},e.prototype.abort=function(e){var n=this;void 0===e&&(e=!0);for(var r=function(r){t.filter(r,(function(t){return n.requestMatches(t,e)})).forEach((function(e){e.abort(),t.remove(r,e)}))},o=0,i=[this.currentRequests,this.queuedRequests];o<i.length;o++)r(i[o])},e.prototype.abortExcept=function(e,n){void 0===n&&(n=!0);var r=e.cacheKey();this.abort((function(e){return e.cacheKey()!==r&&t.evalOption(n,e)}))},e.prototype.requestMatches=function(e,n){return e===n||t.evalOption(n,e)},e.prototype.checkSlow=function(){var t=this.isSlow();this.emittedSlow!==t&&(this.emittedSlow=t,t?up.emit("up:request:late",{log:"Server is slow to respond"}):up.emit("up:request:recover",{log:"Slow requests were loaded"}))},e.prototype.isSlow=function(){var e=new Date,n=t.evalOption(this.badResponseTime),r=t.reject(this.allRequests,"preload");return t.some(r,(function(t){return e-t.queueTime>=n-1}))},e}()},2298:function(){var t="multipart/form-data",e=up.util;up.Request.XHRRenderer=function(){function n(t){this.request=t}return n.prototype.buildAndSend=function(t){this.xhr=new XMLHttpRequest,this.params=e.copy(this.request.params),this.request.timeout&&(this.xhr.timeout=this.request.timeout),this.xhr.open(this.getMethod(),this.request.url);var n,r,o=this.request.metaProps();for(var i in o)this.addHeader(up.protocol.headerize(i),o[i]);for(var s in this.request.headers)this.addHeader(s,this.request.headers[s]);(n=this.request.csrfHeader())&&(r=this.request.csrfToken())&&this.addHeader(n,r),this.addHeader(up.protocol.headerize("version"),up.version);var u=this.getContentType();return u&&this.addHeader("Content-Type",u),e.assign(this.xhr,t),this.xhr.send(this.getPayload()),this.xhr},n.prototype.getMethod=function(){return this.method||(this.method=this.request.method,this.request.wrapMethod&&!this.request.will302RedirectWithGET()&&(this.method=up.protocol.wrapMethod(this.method,this.params))),this.method},n.prototype.getContentType=function(){return this.finalizePayload(),this.contentType},n.prototype.getPayload=function(){return this.finalizePayload(),this.payload},n.prototype.addHeader=function(t,n){(e.isOptions(n)||e.isArray(n))&&(n=JSON.stringify(n)),this.xhr.setRequestHeader(t,n)},n.prototype.finalizePayload=function(){this.payloadFinalized||(this.payloadFinalized=!0,this.payload=this.request.payload,this.contentType=this.request.contentType,!this.payload&&this.request.allowsPayload()&&(this.contentType||(this.contentType=this.params.hasBinaryValues()?t:"application/x-www-form-urlencoded"),this.contentType===t?(this.contentType=null,this.payload=this.params.toFormData()):this.payload=this.params.toQuery().replace(/%20/g,"+")))},n}()},4517:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Response=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["method","url","text","status","request","xhr","target","title","acceptLayer","dismissLayer","eventPlans","context","clearCache","headers"]},n.prototype.defaults=function(){return{headers:{}}},Object.defineProperty(n.prototype,"ok",{get:function(){return this.status&&this.status>=200&&this.status<=299},enumerable:!1,configurable:!0}),n.prototype.getHeader=function(t){var e;return this.headers[t]||(null===(e=this.xhr)||void 0===e?void 0:e.getResponseHeader(t))},Object.defineProperty(n.prototype,"contentType",{get:function(){return this.getHeader("Content-Type")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"json",{get:function(){return this.parsedJSON||(this.parsedJSON=JSON.parse(this.text))},enumerable:!1,configurable:!0}),n}(up.Record)},7241:function(){var t=up.util,e=up.element;up.ResponseDoc=function(){function n(t){this.noscriptWrapper=new up.HTMLWrapper("noscript"),this.scriptWrapper=new up.HTMLWrapper("script"),this.root=this.parseDocument(t)||this.parseFragment(t)||this.parseContent(t)}return n.prototype.parseDocument=function(t){return this.parse(t.document,e.createDocumentFromHTML)},n.prototype.parseContent=function(n){var r=n.content||"",o=n.target||up.fail("must pass a { target } when passing { content }"),i=e.createFromSelector(o);return t.isString(r)?(r=this.wrapHTML(r),i.innerHTML=r):i.appendChild(r),i},n.prototype.parseFragment=function(t){return this.parse(t.fragment)},n.prototype.parse=function(n,r){return void 0===r&&(r=e.createFromHTML),t.isString(n)&&(n=r(n=this.wrapHTML(n))),n},n.prototype.rootSelector=function(){return up.fragment.toTarget(this.root)},n.prototype.wrapHTML=function(t){return t=this.noscriptWrapper.wrap(t),up.fragment.config.runScripts?this.scriptWrapper.wrap(t):this.scriptWrapper.strip(t)},n.prototype.getTitle=function(){var t;return this.titleParsed||(this.title=null===(t=this.root.querySelector("head title"))||void 0===t?void 0:t.textContent,this.titleParsed=!0),this.title},n.prototype.select=function(t){return up.fragment.subtree(this.root,t,{layer:"any"})[0]},n.prototype.finalizeElement=function(t){this.noscriptWrapper.unwrap(t),this.scriptWrapper.unwrap(t)},n}()},2723:function(){var t=up.element,e=up.util;up.RevealMotion=function(){function n(e,n){var r,o,i,s,u,a,c,p;void 0===n&&(n={}),this.element=e,this.options=n;var l=up.viewport.config;this.viewport=t.get(this.options.viewport)||up.viewport.get(this.element),this.obstructionsLayer=up.layer.get(this.viewport),this.snap=null!==(o=null!==(r=this.options.snap)&&void 0!==r?r:this.options.revealSnap)&&void 0!==o?o:l.revealSnap,this.padding=null!==(s=null!==(i=this.options.padding)&&void 0!==i?i:this.options.revealPadding)&&void 0!==s?s:l.revealPadding,this.top=null!==(a=null!==(u=this.options.top)&&void 0!==u?u:this.options.revealTop)&&void 0!==a?a:l.revealTop,this.max=null!==(p=null!==(c=this.options.max)&&void 0!==c?c:this.options.revealMax)&&void 0!==p?p:l.revealMax,this.topObstructions=l.fixedTop,this.bottomObstructions=l.fixedBottom}return n.prototype.start=function(){var t=this.getViewportRect(this.viewport),n=up.Rect.fromElement(this.element);if(this.max){var r=e.evalOption(this.max,this.element);n.height=Math.min(n.height,r)}if(this.addPadding(n),this.substractObstructions(t),t.height<0)return up.error.failed.async("Viewport has no visible area");var o=this.viewport.scrollTop,i=o;return this.top||n.height>t.height?i+=n.top-t.top:n.top<t.top?i-=t.top-n.top:n.bottom>t.bottom&&(i+=n.bottom-t.bottom),e.isNumber(this.snap)&&i<this.snap&&n.top<.5*t.height&&(i=0),i!==o?this.scrollTo(i):Promise.resolve()},n.prototype.scrollTo=function(t){return this.scrollMotion=new up.ScrollMotion(this.viewport,t,this.options),this.scrollMotion.start()},n.prototype.getViewportRect=function(){return up.viewport.isRoot(this.viewport)?new up.Rect({left:0,top:0,width:up.viewport.rootWidth(),height:up.viewport.rootHeight()}):up.Rect.fromElement(this.viewport)},n.prototype.addPadding=function(t){t.top-=this.padding,t.height+=2*this.padding},n.prototype.selectObstructions=function(t){return up.fragment.all(t.join(","),{layer:this.obstructionsLayer})},n.prototype.substractObstructions=function(t){for(var e=0,n=this.selectObstructions(this.topObstructions);e<n.length;e++){var r=n[e];(s=(u=up.Rect.fromElement(r)).bottom-t.top)>0&&(t.top+=s,t.height-=s)}for(var o=0,i=this.selectObstructions(this.bottomObstructions);o<i.length;o++){r=i[o];var s,u=up.Rect.fromElement(r);(s=t.bottom-u.top)>0&&(t.height-=s)}},n.prototype.finish=function(){var t;null===(t=this.scrollMotion)||void 0===t||t.finish()},n}()},6956:function(){var t=up.util;SPEED_CALIBRATION=.065,up.ScrollMotion=function(){function e(t,e,n){var r,o,i,s;void 0===n&&(n={}),this.scrollable=t,this.targetTop=e,this.behavior=null!==(o=null!==(r=n.behavior)&&void 0!==r?r:n.scrollBehavior)&&void 0!==o?o:"auto",this.speed=(null!==(s=null!==(i=n.speed)&&void 0!==i?i:n.scrollSpeed)&&void 0!==s?s:up.viewport.config.scrollSpeed)*SPEED_CALIBRATION}return e.prototype.start=function(){var t=this;return new Promise((function(e,n){t.resolve=e,t.reject=n,"smooth"===t.behavior&&up.motion.isEnabled()?t.startAnimation():t.finish()}))},e.prototype.startAnimation=function(){var t=this;this.startTime=Date.now(),this.startTop=this.scrollable.scrollTop,this.topDiff=this.targetTop-this.startTop,this.duration=Math.sqrt(Math.abs(this.topDiff))/this.speed,requestAnimationFrame((function(){return t.animationFrame()}))},e.prototype.animationFrame=function(){var e=this;if(!this.settled){this.frameTop&&Math.abs(this.frameTop-this.scrollable.scrollTop)>1.5&&this.abort("Animation aborted due to user intervention");var n=Date.now()-this.startTime,r=Math.min(n/this.duration,1);this.frameTop=this.startTop+t.simpleEase(r)*this.topDiff,Math.abs(this.targetTop-this.frameTop)<.3?this.finish():(this.scrollable.scrollTop=this.frameTop,requestAnimationFrame((function(){return e.animationFrame()})))}},e.prototype.abort=function(t){this.settled=!0,this.reject(up.error.aborted(t))},e.prototype.finish=function(){this.settled=!0,this.scrollable.scrollTop=this.targetTop,this.resolve()},e}()},8720:function(){var t=up.element,e=up.util;up.Selector=function(){function n(t,e){void 0===e&&(e=[]),this.selectors=t,this.filters=e,this.unionSelector=this.selectors.join(",")||"match-none"}return n.prototype.matches=function(e){return t.matches(e,this.unionSelector)&&this.passesFilter(e)},n.prototype.closest=function(t){var e;return this.matches(t)?t:(e=t.parentElement)?this.closest(e):void 0},n.prototype.passesFilter=function(t){return e.every(this.filters,(function(e){return e(t)}))},n.prototype.descendants=function(n){var r=this,o=e.flatMap(this.selectors,(function(e){return t.all(n,e)}));return e.filter(o,(function(t){return r.passesFilter(t)}))},n.prototype.subtree=function(t){var e=[];return this.matches(t)&&e.push(t),e.push.apply(e,this.descendants(t)),e},n}()},104:function(){var t=up.util;up.store||(up.store={}),up.store.Memory=function(){function e(){this.clear()}return e.prototype.clear=function(){this.data={}},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,e){this.data[t]=e},e.prototype.remove=function(t){delete this.data[t]},e.prototype.keys=function(){return Object.keys(this.data)},e.prototype.size=function(){return this.keys().length},e.prototype.values=function(){return t.values(this.data)},e}()},5438:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.store.Session=function(t){function n(e){var n=t.call(this)||this;return n.rootKey=e,n.loadFromSessionStorage(),n}return e(n,t),n.prototype.clear=function(){t.prototype.clear.call(this),this.saveToSessionStorage()},n.prototype.set=function(e,n){t.prototype.set.call(this,e,n),this.saveToSessionStorage()},n.prototype.remove=function(e){t.prototype.remove.call(this,e),this.saveToSessionStorage()},n.prototype.loadFromSessionStorage=function(){try{var t=null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem(this.rootKey);t&&(this.data=JSON.parse(t))}catch(t){}},n.prototype.saveToSessionStorage=function(){var t=JSON.stringify(this.data);try{return null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.setItem(this.rootKey,t)}catch(t){}},n}(up.store.Memory)},7885:function(){var t=up.util,e=up.element;up.Tether=function(){function n(t){var n,r;null===(r=(n=up.migrate).handleTetherOptions)||void 0===r||r.call(n,t),this.anchor=t.anchor,this.align=t.align,this.position=t.position,this.alignAxis="top"===this.position||"bottom"===this.position?"horizontal":"vertical",this.viewport=up.viewport.get(this.anchor),this.parent=this.viewport===e.root?document.body:this.viewport,this.syncOnScroll=!this.viewport.contains(this.anchor.offsetParent)}return n.prototype.start=function(t){this.element=t,this.element.style.position="absolute",this.setOffset(0,0),this.sync(),this.changeEventSubscription("on")},n.prototype.stop=function(){this.changeEventSubscription("off")},n.prototype.changeEventSubscription=function(t){var e=this.scheduleSync.bind(this);up[t](window,"resize",e),this.syncOnScroll&&up[t](this.viewport,"scroll",e)},n.prototype.scheduleSync=function(){return clearTimeout(this.syncTimer),this.syncTimer=t.task(this.sync.bind(this))},n.prototype.isDetached=function(){return e.isDetached(this.parent)||e.isDetached(this.anchor)},n.prototype.sync=function(){var n,r,o=this.element.getBoundingClientRect(),i=e.styleNumber(this.element,"marginTop"),s=e.styleNumber(this.element,"marginRight"),u=e.styleNumber(this.element,"marginBottom"),a=e.styleNumber(this.element,"marginLeft"),c=this.anchor.getBoundingClientRect();switch(this.alignAxis){case"horizontal":switch(this.position){case"top":r=c.top-u-o.height;break;case"bottom":r=c.top+c.height+i}switch(this.align){case"left":n=c.left+a;break;case"center":n=c.left+.5*(c.width-o.width);break;case"right":n=c.left+c.width-o.width-s}break;case"vertical":switch(this.align){case"top":r=c.top+i;break;case"center":r=c.top+.5*(c.height-o.height);break;case"bottom":r=c.top+c.height-o.height-u}switch(this.position){case"left":n=c.left-s-o.width;break;case"right":n=c.left+c.width+a}}t.isDefined(n)||t.isDefined(r)?this.moveTo(n,r):up.fail("Invalid tether constraints: %o",this.describeConstraints())},n.prototype.describeConstraints=function(){return{position:this.position,align:this.align}},n.prototype.moveTo=function(t,e){var n=this.element.getBoundingClientRect();this.setOffset(t-n.left+this.offsetLeft,e-n.top+this.offsetTop)},n.prototype.setOffset=function(t,n){this.offsetLeft=t,this.offsetTop=n,e.setStyle(this.element,{left:t,top:n})},n}()},4818:function(){var t=up.util;up.URLPattern=function(){function e(e,n){void 0===n&&(n=t.normalizeURL),this.normalizeURL=n,this.groups=[];for(var r=[],o=[],i=0,s=t.splitValues(e);i<s.length;i++){var u=s[i];"-"===u[0]?o.push(u.substring(1)):r.push(u)}this.positiveRegexp=this.buildRegexp(r,!0),this.negativeRegexp=this.buildRegexp(o,!1)}return e.prototype.buildRegexp=function(e,n){var r=this;if(e.length){var o=e.map(this.normalizeURL).map(t.escapeRegExp).join("|");return o=(o=o.replace(/\\\*/g,".*?")).replace(/(\:|\\\$)([a-z][\w-]*)/gi,(function(t,e,o){return"\\$"===e?(n&&r.groups.push({name:o,cast:Number}),"(\\d+)"):(n&&r.groups.push({name:o,cast:String}),"([^/?#]+)")})),new RegExp("^"+o+"$")}},e.prototype.test=function(t,e){return void 0===e&&(e=!0),e&&(t=this.normalizeURL(t)),this.positiveRegexp.test(t)&&!this.isExcluded(t)},e.prototype.recognize=function(t,e){void 0===e&&(e=!0),e&&(t=this.normalizeURL(t));var n=this.positiveRegexp.exec(t);if(n&&!this.isExcluded(t)){var r={};return this.groups.forEach((function(t,e){var o=n[e+1];if(o)return r[t.name]=t.cast(o)})),r}},e.prototype.isExcluded=function(t){var e;return null===(e=this.negativeRegexp)||void 0===e?void 0:e.test(t)},e}()},9675:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.element=function(){var e=up.util,n=up.browser.isIE11()?"msMatchesSelector":"matches";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.pop(),r=t[0]||document;return r.querySelector(n)}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.pop(),r=t[0]||document;return r.querySelectorAll(n)}function i(t,e){var n=[];return u(t,e)&&n.push(t),n.push.apply(n,o(t,e)),n}function s(t,e){return t.closest?t.closest(e):u(t,e)?t:a(t,e)}function u(t,e){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e)}function a(t,e){var n=t.parentElement;if(n)return u(n,e)?n:a(n,e)}function c(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.pop();return e.isElement(i)?i:e.isString(i)?r.apply(void 0,t(t([],n),[i])):e.isList(i)?(i.length>1&&up.fail("up.element.get(): Cannot cast multiple elements (%o) to a single element",i),i[0]):i}function p(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.flatMap(t,l)}function l(t){return e.isString(t)?o(t):e.wrapList(t)}function f(t){t.style.display="none"}function h(t){t.style.display=""}function d(t,n){for(var r in n){var o=n[r];e.isGiven(o)?t.setAttribute(r,o):t.removeAttribute(r)}}function y(t,n){for(var r,o,i,s=[],u=function(e){var n;if(e=e.replace(/^[\w-]+/,(function(t){return n=t,""})),o=document.createElement(n||"div"),r||(r=o),e=(e=e.replace(/\#([\w-]+)/,(function(t,e){return o.id=e,""}))).replace(/\.([\w-]+)/g,(function(t,e){return o.classList.add(e),""})),s.length&&(e=e.replace(/\[([\w-]+)\]/g,(function(t,e){return o.setAttribute(e,s.shift()),""}))),""!==e)throw up.error.invalidSelector(t);null==i||i.appendChild(o),i=o},a=0,c=t.replace(/\[([\w-]+)(?:[\~\|\^\$\*]?=(["'])?([^\2\]]*?)\2)?\]/g,(function(t,e,n,r){return s.push(r||""),"["+e+"]"})).split(/[ >]+/);a<c.length;a++)u(c[a]);if(n){var p=void 0;if(p=e.pluckKey(n,"class"))for(var l=0,f=e.wrapList(p);l<f.length;l++){var h=f[l];r.classList.add(h)}(p=e.pluckKey(n,"style"))&&A(r,p),(p=e.pluckKey(n,"text"))&&(r.textContent=p),(p=e.pluckKey(n,"content"))&&(r.innerHTML=p),d(r,n)}return r}var m=["HTML","BODY","HEAD","TITLE"],v=new RegExp("\\b("+m.join("|")+")\\b","i"),g=up.mockable((function(t){return u(t,m.join(","))}));function b(t,e){return"["+t+'="'+(e=e.replace(/"/g,'\\"'))+'"]'}function w(){return document.documentElement}function O(t){t.offsetHeight}function k(t,n,r){e.isMissing(t.getAttribute(n))&&t.setAttribute(n,r)}function E(t,n){return e.nullToUndefined(t.getAttribute(n))}function S(t,e,n){var r=E(t,e);switch(r){case"false":return!1;case"true":case"":case e:return!0;default:if(n)return r}}function _(t,e){var n=L(t,Object.keys(e));return A(t,e),function(){return A(t,n)}}function x(t,e){return T(window.getComputedStyle(t),e)}function C(t,n){var r=x(t,n);if(e.isGiven(r))return parseFloat(r)}function L(t,e){return T(t.style,e)}function T(t,n){return e.isString(n)?t[n]:e.pick(t,n)}function A(t,e){var n=t.style;for(var r in e){var o=e[r];o=P(r,o),n[r]=o}}function P(t,n){var r;return e.isMissing(n)?n="":R.has(t.toLowerCase().replace(/-/,""))&&(r=n,n=e.isNumber(r)||e.isString(r)&&/^\d+$/.test(r)?r.toString()+"px":r),n}var R=e.arrayToSet(["top","right","bottom","left","padding","paddingtop","paddingright","paddingbottom","paddingleft","margin","margintop","marginright","marginbottom","marginleft","borderwidth","bordertopwidth","borderrightwidth","borderbottomwidth","borderleftwidth","width","height","maxwidth","maxheight","minwidth","minheight"]);function F(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}return{all:o,subtree:i,isInSubtree:function(t,e){var n=c(e);return t.contains(n)},closest:s,closestAttr:function(t,e){var n;return null===(n=s(t,"["+e+"]"))||void 0===n?void 0:n.getAttribute(e)},matches:u,ancestor:a,around:function(t,e){return p(s(t,e),i(t,e))},get:c,list:p,remove:function(t){var e=t.parentNode;e&&e.removeChild(t)},toggle:function(t,e){null==e&&(e=!F(t)),(e?h:f)(t)},toggleClass:function(t,e,n){var r=t.classList;return null==n&&(n=!r.contains(e)),n?r.add(e):r.remove(e)},hide:f,show:h,metaContent:function(t){var e;return null===(e=r("meta"+b("name",t)))||void 0===e?void 0:e.getAttribute("content")},replace:function(t,e){t.parentElement.replaceChild(e,t)},insertBefore:function(t,e){t.insertAdjacentElement("beforebegin",e)},createFromSelector:y,setAttrs:d,setTemporaryAttrs:function(t,e){for(var n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n[i]=t.getAttribute(i)}return d(t,e),function(){return d(t,n)}},affix:function(t){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var s=e.extractOptions(o);2===o.length?(n=o[0],r=o[1]):(n="beforeend",r=o[0]);var u=y(r,s);return t.insertAdjacentElement(n,u),u},toSelector:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=up.fragment).toTarget.apply(t,e)},idSelector:function(t){return t.match(/^[a-z0-9\-_]+$/i)?"#"+t:b("id",t)},classSelector:function(t){return"."+t.replace(/:/g,"\\:")},isSingleton:g,isSingletonSelector:function(t){return v.test(t)},attributeSelector:b,trueAttributeSelector:function(t){return"["+t+"]:not(["+t+"=false])"},tagName:function(t){return t.tagName.toLowerCase()},createDocumentFromHTML:function(t){return(new DOMParser).parseFromString(t,"text/html")},createFromHTML:function(t){var e=document.createRange();return e.setStart(document.body,0),e.createContextualFragment(t).childNodes[0]},get root(){return w()},paint:O,concludeCSSTransition:function(t){var e=_(t,{transition:"none"});return O(t),e},hasCSSTransition:function(t){var n,r=(n=e.isOptions(t)?t:x(t)).transitionProperty,o=n.transitionDuration;return!("none"===r||"all"===r&&0===o)},fixedToAbsolute:function(t){var e=t.getBoundingClientRect();t.style.position="absolute";var n=t.offsetParent.getBoundingClientRect();A(t,{left:e.left-C(t,"margin-left")-n.left,top:e.top-C(t,"margin-top")-n.top,right:"",bottom:""})},setMissingAttrs:function(t,e){for(var n in e)k(t,n,e[n])},setMissingAttr:k,unwrap:function(t){var n=t.parentNode,r=e.toArray(t.childNodes);e.each(r,(function(e){return n.insertBefore(e,t)})),n.removeChild(t)},wrapChildren:function(t,e){var n;void 0===e&&(e="up-wrapper");for(var r=y(e);n=t.firstChild;)r.appendChild(n);return t.appendChild(r),r},attr:E,booleanAttr:S,numberAttr:function(t,e){var n=t.getAttribute(e);if(n&&(n=n.replace(/_/g,"")).match(/^[\d\.]+$/))return parseFloat(n)},jsonAttr:function(t,e){var n,r,o=null===(r=null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,e))||void 0===r?void 0:r.trim();if(o)return JSON.parse(o)},callbackAttr:function(n,r,o){void 0===o&&(o=[]);var i=n.getAttribute(r);if(i){var s=new(Function.bind.apply(Function,t(t([void 0,"event"],o),[i])));return function(r){var i=e.values(e.pick(r,o));return s.call.apply(s,t([n,r],i))}}},booleanOrStringAttr:function(t,e){return S(t,e,!0)},setTemporaryStyle:_,style:x,styleNumber:C,inlineStyle:L,setStyle:A,isVisible:F,upAttrs:function(t){for(var e=/^up-/,n={},r=0,o=t.attributes;r<o.length;r++){var i=o[r],s=i.name;s.match(e)&&(n[s]=i.value)}return n},toggleAttr:function(t,e,n,r){return null==r&&(r=!t.hasAttribute(e)),r?t.setAttribute(e,n):t.removeAttribute(e)},isDetached:function(t){return t!==document&&!w().contains(t)}}}()},3924:function(){up.error=function(){var t=up.util;function e(e,n){void 0===n&&(n={}),t.isArray(e)&&(e=t.sprintf.apply(t,e));var r=new Error(e);return t.assign(r,n),r}function n(t,n){void 0===n&&(n=e);var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=n.apply(void 0,e);return o.name=t,o};return r.is=function(e){return e.name===t},r.async=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Promise.reject(r.apply(void 0,t))},r}var r=n("up.Failed"),o=n("AbortError",(function(t){return e(t||"Aborted")})),i=n("up.NotImplemented"),s=n("up.NotApplicable",(function(t,n){return e("Cannot apply change: "+t+" ("+n+")")}));return{failed:r,aborted:o,invalidSelector:n("up.InvalidSelector",(function(t){return e("Cannot parse selector: "+t)})),notApplicable:s,notImplemented:i,emitGlobal:function(t){var e=t.message;up.emit(window,"error",{message:e,error:t,log:!1})}}}()},8670:function(){up.event=function(){var t=up.util,e=up.element;function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t).bind()}function r(t,e){return up.EventListenerGroup.fromBindArgs(t,e)}function o(t){return up.EventEmitter.fromEmitArgs(t)}var i=["metaKey","shiftKey","ctrlKey","altKey"];function s(e){return(t.isUndefined(e.button)||0===e.button)&&!t.some(i,(function(t){return e[t]}))}function u(e,n,r){void 0===r&&(r=[]);var o=up.event.build(n,t.pick(e,r));return o.originalEvent=e,["stopPropagation","stopImmediatePropagation","preventDefault"].forEach((function(t){var n=o[t];return o[t]=function(){return e[t](),n.call(o)}})),e.defaultPrevented&&o.preventDefault(),o}return n("up:click","a[up-emit]",(function(n,r){if(s(n)){var o=e.attr(r,"up-emit"),i=e.jsonAttr(r,"up-emit-props"),a=u(n,o);t.assign(a,i),up.emit(r,a)}})),n("up:framework:reset",(function(){for(var t=0,n=[window,document,e.root,document.body];t<n.length;t++)for(var r=n[t],o=0,i=up.EventListener.allNonDefault(r);o<i.length;o++)i[o].unbind()})),{on:n,$on:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t,{jQuery:!0}).bind()},off:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t).unbind()},build:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.extractOptions(e),o=e[0]||r.type||up.fail("Expected event type to be passed as string argument or { type } property"),i=document.createEvent("Event");if(i.initEvent(o,!0,!0),t.assign(i,t.omit(r,["type","target"])),up.browser.isIE11()){var s=i.preventDefault;i.preventDefault=function(){return s.call(i),t.getter(i,"defaultPrevented",(function(){return!0}))}}return i},emit:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t).emit()},assertEmitted:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t).assertEmitted()},onEscape:function(t){return n("keydown",(function(e){if(function(t){var e=t.key;return"Escape"===e||"Esc"===e}(e))return t(e)}))},halt:function(t){t.stopImmediatePropagation(),t.preventDefault()},onReady:function(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},isUnmodified:s,fork:u,keyModifiers:i}}(),up.on=up.event.on,up.$on=up.event.$on,up.off=up.event.off,up.$off=up.event.off,up.emit=up.event.emit},454:function(){up.feedback=function(){var t=up.util,e=up.element,n=new up.Config((function(){return{currentClasses:["up-current"],navSelectors:["[up-nav]","nav"]}})),r="up-active",o="a, [up-href]";function i(){return n.navSelectors.join(",")}function s(e){if(e)return t.normalizeURL(e,{stripTrailingSlash:!0})}function u(t){return t.upFeedbackURLs||(t.upFeedbackURLs=new up.LinkFeedbackURLs(t))}function a(n,r){var s=up.fragment.subtree(n,i(),r);c(t.flatMap(s,(function(t){return e.subtree(t,o)})),r)}function c(t,r){if(void 0===r&&(r={}),t.length){var o=(h=r.layer||up.layer.get(t[0])).feedbackLocation||h.location;if(o)for(var i=0,s=t;i<s.length;i++){for(var a=s[i],c=u(a).isCurrent(o),p=0,l=n.currentClasses;p<l.length;p++){var f=l[p];e.toggleClass(a,f,c)}e.toggleAttr(a,"aria-current","page",c)}}var h}function p(t){return e.ancestor(t,o)||t}function l(t){p(t).classList.add(r)}function f(t){p(t).classList.remove(r)}function h(e,n){l(e);var r=n();return t.always(r,(function(){return f(e)})),r}function d(t){var e=t.feedbackLocation,n=s(t.location);e&&e===n||(t.feedbackLocation=n,a(t.element,{layer:t}))}return up.on("up:location:changed",(function(t){var e;(e=up.layer.front).showsLiveHistory()&&d(e)})),up.on("up:fragment:inserted",(function(t,e){var n,r;n=e,r={layer:up.layer.get(n)},up.fragment.closest(n,i(),r)?c(up.fragment.subtree(n,o,r),r):a(n,r)})),up.on("up:layer:location:changed",(function(t){d(t.layer)})),up.on("up:framework:reset",(function(){n.reset()})),{config:n,start:l,stop:f,around:h,aroundForOptions:function(e,n){var r,o=e.feedback;return o&&(r=t.isBoolean(o)?e.origin:o),r?h(r=up.fragment.get(r),n):n()},normalizeURL:s}}()},2851:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};up.form=function(){var e,n=up.util,r=up.element,o=["[up-submit]","[up-target]","[up-layer]","[up-transition]"],i=new up.Config((function(){return{validateTargets:["[up-fieldset]:has(:origin)","fieldset:has(:origin)","label:has(:origin)","form:has(:origin)"],fieldSelectors:["select","input:not([type=submit]):not([type=image])","button[type]:not([type=submit])","textarea"],submitSelectors:up.link.combineFollowableSelectors(["form"],o),noSubmitSelectors:["[up-submit=false]","[target]"],submitButtonSelectors:["input[type=submit]","input[type=image]","button[type=submit]","button:not([type])"],observeDelay:0}}));function s(){return i.submitSelectors.join(",")}function u(t){return void 0===t&&(t=""),i.fieldSelectors.map((function(e){return e+t})).join(",")}function a(t){t=r.get(t);var e=r.subtree(t,u());if(r.matches(t,"form[id]")){var o=u(r.attributeSelector("form",t.getAttribute("id"))),i=r.all(o);e.push.apply(e,i),e=n.uniq(e)}return e}function c(){return i.submitButtonSelectors.join(",")}var p=up.mockable((function(t,e){return up.render(l(t,e))}));function l(t,e){e=n.options(e),t=up.fragment.get(t),t=r.closest(t,"form");var o=new up.OptionsParser(e,t),i=up.Params.fromForm(t),s=function(t){var e=c(),n=document.activeElement;return n&&r.matches(n,e)&&t.contains(n)?n:r.get(t,e)}(t);return s&&(i.addField(s),e.method||(e.method=s.getAttribute("formmethod")),e.url||(e.url=s.getAttribute("formaction"))),i.addAll(e.params),e.params=i,o.string("url",{attr:"action",default:up.fragment.source(t)}),o.string("method",{attr:["up-method","data-method","method"],default:"GET",normalize:n.normalizeMethod}),"GET"===e.method&&(e.url=up.Params.stripURL(e.url)),o.string("failTarget",{default:up.fragment.toTarget(t)}),e.guardEvent||(e.guardEvent=up.event.build("up:form:submit",{log:"Submitting form"})),n.assign(e,up.link.followOptions(t,e)),e}up.on("up:click",c,(function(t,e){var n=r.closest(e,"form");n&&O(n)&&e.focus()}));var f=function(t){for(var e,o,s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];t=r.list(t);var c=n.flatMap(t,a),p=n.extractCallback(s)||h(t[0])||up.fail("up.observe: No change callback given"),l=n.extractOptions(s);l.delay=null!==(o=null!==(e=l.delay)&&void 0!==e?e:r.numberAttr(t[0],"up-delay"))&&void 0!==o?o:i.observeDelay;var f=new up.FieldObserver(c,l,p);return f.start(),function(){return f.stop()}};function h(t){var e=t.getAttribute("up-observe");if(e)return new Function("value","name",e)}function d(t,e){return f(t,e,(function(){return p(t)}))}function y(e,o){return e=up.fragment.get(e),(o=n.options(o)).navigate=!1,o.origin=e,o.history=!1,o.target=function(e,o){var s,u=b(e);return n.isElementish(o.target)?up.fragment.toTarget(o.target):(s=o.target||e.getAttribute("up-validate")||u.getAttribute("up-validate"))?s:r.matches(e,"form")?up.fragment.toTarget(e):function(e,r){var o=up.layer.get(e);return n.findResult(i.validateTargets,(function(e){if(up.fragment.get(e,t(t({},r),{layer:o})))return e}))}(e,o)||up.fail("Could not find validation target for %o (tried defaults %o)",e,i.validateTargets)}(e,o),o.focus="keep",o.fail=!1,o.headers||(o.headers={}),o.headers[up.protocol.headerize("validate")]=e.getAttribute("name")||":unknown",o.guardEvent=up.event.build("up:form:validate",{field:e,log:"Validating form"}),p(e,o)}function m(t){var e,o;if(r.matches(t,"input[type=checkbox]"))t.checked?(e=t.value,o=":checked"):o=":unchecked";else if(r.matches(t,"input[type=radio]")){var i=b(t),s=t.getAttribute("name"),u=i.querySelector("input[type=radio]"+r.attributeSelector("name",s)+":checked");u?(o=":checked",e=u.value):o=":unchecked"}else e=t.value;var a=[];return n.isPresent(e)?(a.push(e),a.push(":present")):a.push(":blank"),n.isPresent(o)&&a.push(o),a}function v(t,e){void 0===e&&(e={});var n=e.target||e.target||t.getAttribute("up-switch"),o=b(t);n||up.fail("No switch target given for %o",t);for(var i=m(t),s=0,u=r.all(o,n);s<u.length;s++){var a=u[s];g(a,i)}}var g=up.mockable((function(t,e){var o;e||(e=m(function(t){var e=b(t),o=r.all(e,"[up-switch]");return n.find(o,(function(e){var n=e.getAttribute("up-switch");return r.matches(t,n)}))||up.fail("Could not find [up-switch] field for %o",t)}(t)));var i=t.getAttribute("up-hide-for");if(i)i=n.splitValues(i),o=0===n.intersect(e,i).length;else{var s=t.getAttribute("up-show-for");s=s?n.splitValues(s):[":present",":checked"],o=n.intersect(e,s).length>0}return r.toggle(t,o),t.classList.add("up-switched")}));function b(t){return t.form||r.closest(t,"form, "+up.layer.anySelector())}function w(t){return r.matches(t,u())}function O(t){return t=up.fragment.get(t),r.matches(t,s())&&!k(t)}function k(t){return r.matches(t,i.noSubmitSelectors.join(","))}return up.on("submit",s,(function(t,n){t.defaultPrevented||k(n)||(null==e||e(),up.event.halt(t),up.log.muteUncriticalRejection(p(n)))})),up.on("change","[up-validate]",(function(t){var r=a(t.target)[0];e=n.abortableMicrotask((function(){return up.log.muteUncriticalRejection(y(r))}))})),up.compiler("[up-switch]",(function(t){v(t)})),up.on("change","[up-switch]",(function(t,e){v(e)})),up.compiler("[up-show-for]:not(.up-switched), [up-hide-for]:not(.up-switched)",(function(t){g(t)})),up.compiler("[up-observe]",(function(t){return f(t)})),up.compiler("[up-autosubmit]",(function(t){return d(t)})),up.on("up:framework:reset",(function(){i.reset()})),{config:i,submit:p,submitOptions:l,isSubmittable:O,observe:f,validate:y,autosubmit:d,fieldSelector:u,fields:a,focusedField:function(){return n.presence(document.activeElement,w)},switchTarget:g}}(),up.submit=up.form.submit,up.observe=up.form.observe,up.autosubmit=up.form.autosubmit,up.validate=up.form.validate},2667:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};n(7433);var o=up.util,i=up.element;up.fragment=function(){var t=new up.Config((function(){return{badTargetClasses:[/^up-/],navigateOptions:{solo:!0,feedback:!0,cache:"auto",fallback:!0,focus:"auto",scroll:"auto",history:"auto",peel:!0},matchAroundOrigin:!0,runScripts:!1,autoHistoryTargets:[":main"],autoFocus:["hash","autofocus","main-if-main","target-if-lost"],autoScroll:["hash","layer-if-main"]}}));function e(t,e){return void 0===e&&(e={}),t=y(t,e),i.closestAttr(t,"up-source")}function n(t){return i.closestAttr(t,"up-time")||"0"}o.delegate(t,"mainTargets",(function(){return up.layer.config.any}));var s=up.mockable((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.asyncify((function(){var e=O(t);e=up.RenderOptions.preprocess(e),up.browser.assertConfirmed(e);var n=o.pluckKey(e,"guardEvent");return n&&(n.renderOptions=e,up.event.assertEmitted(n,{target:e.origin})),up.RenderOptions.assertContentGiven(e),(e.url?u:a)(e)}))}));function u(t){return up.feedback.aroundForOptions(t,(function(){return new up.Change.FromURL(t).execute()}))}function a(t){return up.network.mimicLocalRequest(t),new up.Change.FromContent(t).execute()}var c=up.mockable((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=O(t);return s(r(r({},n),{navigate:!0}))}));function p(t,e){void 0===e&&(e={}),t=y(t);var n=(e.keepPlans||[]).map((function(t){return f(t),t.oldElement}));return up.syntax.compile(t,{skip:n,layer:e.layer}),l(t,e),t}function l(t,e){return up.emit(t,"up:fragment:inserted",{log:["Inserted fragment %o",t],origin:e.origin})}function f(t){return h(t,"up:fragment:kept",{log:["Kept fragment %o",t.oldElement]})}function h(t,e,n){var r=t.oldElement,o=up.event.build(e,{newFragment:t.newElement,newData:t.newData});return up.emit(r,o,n)}var d=o.negate((function(t){return!!i.closest(t,".up-destroying")}));function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.extractOptions(t),r=t.pop(),s=t[0];return o.isElementish(r)?i.get(r):s?m(s,r,n):new up.FragmentFinder({selector:r,origin:n.origin,layer:n.layer}).find()}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g.apply(void 0,t)[0]}var v=/\:has\(([^\)]+)\)$/;function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.extractOptions(t),r=t.pop(),i=t[0];return(r=_(r,i,n)).descendants(i||document)}function b(t,e,n){return void 0===n&&(n={}),(e=_(e,t,n)).subtree(t)}function w(t,e){return b(t,e).length>0}function O(t){var e=o.parseArgIntoOptions(t,"target");return o.isElement(e.target)&&(e.origin||(e.origin=e.target)),e}function k(t){if(o.isString(t))return t;var e;if(t=i.get(t),i.isSingleton(t))return i.tagName(t);if(e=t.getAttribute("up-id"))return i.attributeSelector("up-id",e);if(e=t.getAttribute("id"))return i.idSelector(e);if(e=t.getAttribute("name"))return i.tagName(t)+i.attributeSelector("name",e);if(e=o.presence(o.filter(t.classList,E))){for(var n="",r=0,s=e;r<s.length;r++){var u=s[r];n+=i.classSelector(u)}return n}return i.tagName(t)}function E(e){return!o.some(t.badTargetClasses,(function(t){return o.isRegExp(t)?t.test(e):t===e}))}function S(t,e){void 0===e&&(e={});var n=e.origin;return t.replace(/&|:origin\b/,(function(e){if(n)return k(n);up.fail('Missing { origin } element to resolve "%s" reference (found in %s)',e,t)}))}function _(t,e,n){void 0===n&&(n={});var s=[];n.destroying||s.push(d),n.layer||(n.layer=e);var u=up.layer.getAll(n);"any"===n.layer||e&&i.isDetached(e)||s.push((function(t){return o.some(u,(function(e){return e.contains(t)}))}));var a=up.fragment.expandTargets(t,r(r({},n),{layer:u[0]}));return a=a.map((function(t){return(t=t.replace(v,(function(t,e){return s.push((function(t){return t.querySelector(e)})),""})))||"*"})),new up.Selector(a,s)}return up.on("up:app:boot",(function(){var t=document.body;if(t.setAttribute("up-source",up.history.location),p(t),!up.browser.canPushState())return up.warn("Cannot push history changes. Next fragment update will load in a new page.")})),up.on("up:framework:reset",(function(){t.reset()})),{config:t,reload:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=O(t);o.target||(o.target=":main");var i=y(o.target,o);return o.url||(o.url=e(i)),o.headers||(o.headers={}),o.headers[up.protocol.headerize("reloadFromTime")]=n(i),s(o)},destroy:function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=O(n);return(o.element=y(o.target,o))&&new up.Change.DestroyFragment(o).execute(),null===(e=(t=up.migrate).formerlyAsync)||void 0===e?void 0:e.call(t,"up.destroy()")},render:s,navigate:c,get:y,getDumb:m,all:g,subtree:b,contains:w,closest:function(t,e,n){return(e=_(e,t=i.get(t),n)).closest(t)},source:e,hello:p,visit:function(t,e){return c(r(r({},e),{url:t}))},markAsDestroying:function(t){t.classList.add("up-destroying"),t.setAttribute("aria-hidden","true")},emitInserted:l,emitDestroyed:function(t,e){var n,r=null!==(n=e.log)&&void 0!==n?n:["Destroyed fragment %o",t],o=e.parent||document;return up.emit(o,"up:fragment:destroyed",{fragment:t,parent:o,log:r})},emitKeep:function(t){return h(t,"up:fragment:keep",{log:["Keeping fragment %o",t.oldElement],callback:i.callbackAttr(t.oldElement,"up-on-keep",["newFragment","newData"])})},emitKept:f,successKey:function(t){return o.unprefixCamelCase(t,"fail")},failKey:function(t){if(!t.match(/^fail[A-Z]/))return o.prefixCamelCase(t,"fail")},expandTargets:function(t,e){void 0===e&&(e={});var n=e.layer;"new"===n||n instanceof up.Layer||up.fail("Must pass an up.Layer as { layer } option, but got %o",n),t=o.copy(o.wrapList(t));for(var r=[];t.length;){var i=t.shift();if(":main"===i||!0===i){var s="new"===n?e.mode:n.mode;t.unshift.apply(t,up.layer.mainTargets(s))}else":layer"===i?"new"===n||n.opening||t.unshift(n.getFirstSwappableElement()):o.isElementish(i)?r.push(k(i)):o.isString(i)&&r.push(S(i,e))}return o.uniq(r)},toTarget:k,matches:function(t,e,n){return void 0===n&&(n={}),(e=_(e,t=i.get(t),n)).matches(t)},hasAutoHistory:function(e){return!!w(e,t.autoHistoryTargets)||(up.puts("up.render()","Will not auto-update history because fragment doesn't contain a selector from up.fragment.config.autoHistoryTargets"),!1)}}}(),up.reload=up.fragment.reload,up.destroy=up.fragment.destroy,up.render=up.fragment.render,up.navigate=up.fragment.navigate,up.hello=up.fragment.hello,up.visit=up.fragment.visit,o.delegate(up,"context",(function(){return up.layer.current}))},9634:function(){var t;up.framework=(t=!0,{boot:function(){var e=up.browser.supportIssue();e?console.error("Unpoly cannot load: %s",e):(up.emit("up:framework:boot",{log:!1}),t=!1,up.event.onReady((function(){up.emit("up:app:boot",{log:"Booting user application"})})))},startExtension:function(){t=!0},stopExtension:function(){t=!1},reset:function(){up.emit("up:framework:reset",{log:!1})},get booting(){return t}})},8944:function(){var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},e=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};up.history=function(){var n,r,o=up.util,i=up.element,s=new up.Config((function(){return{enabled:!0,restoreTargets:["body"]}}));function u(t,e){return void 0===e&&(e={}),e.hash=!0,o.normalizeURL(t,e)}function a(t){return u(location.href,t)}function c(){var t=a();r!==t&&(n=r,r=t)}function p(t){var e={stripTrailingSlash:!0};return u(t,e)===a(e)}function l(t,e){void 0===e&&(e={}),f("replaceState",t)&&!1!==e.event&&d("up:location:changed",{url:t,reason:"replace",log:"Replaced state for "+o.urlWithoutHost(t)})}function f(t,e){if(s.enabled){return window.history[t]({up:{}},"",e),c(),!0}}function h(r){c(),up.viewport.saveScroll({location:n}),function(n){t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return(null==n?void 0:n.up)?(t=a(),[4,up.render({url:t,history:!0,location:t,peel:!0,layer:"root",target:s.restoreTargets,cache:!0,keep:!1,scroll:"restore",saveScroll:!1})]):[3,2];case 1:return e.sent(),d("up:location:changed",{url:t=a(),reason:"pop",log:"Restored location "+t}),[3,3];case 2:up.puts("pop","Ignoring a state not pushed by Unpoly (%o)",n),e.label=3;case 3:return[2]}}))}))}(r.state)}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.find(up.layer.stack.reversed(),"history");return n.emit.apply(n,t)}function y(){window.history.scrollRestoration="manual",window.addEventListener("popstate",h),"GET"===up.protocol.initialRequestMethod()&&l(a(),{event:!1})}return c(),up.on("up:app:boot",(function(){"jasmine"in window?y():setTimeout(y,100)})),up.macro("a[up-back], [up-href][up-back]",(function(t){n&&(i.setMissingAttrs(t,{"up-href":n,"up-scroll":"restore"}),t.removeAttribute("up-back"),up.link.makeFollowable(t))})),up.on("up:framework:reset",(function(){s.reset(),n=void 0,r=void 0,c()})),{config:s,push:function(t){!p(t=u(t))&&f("pushState",t)&&up.emit("up:location:changed",{url:t,reason:"push",log:"Advanced to location "+o.urlWithoutHost(t)})},replace:l,get location(){return a()},get previousLocation(){return n},isLocation:p,normalizeURL:u}}()},9443:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(7921);var u=up.util,a=up.element;up.layer=function(){var t=[up.Layer.Root,up.Layer.Modal,up.Layer.Popup,up.Layer.Drawer,up.Layer.Cover],e=new up.Config((function(){for(var e={mode:"modal",any:{mainTargets:["[up-main='']","main",":layer"]},root:{mainTargets:["[up-main~=root]"],history:!0},overlay:{mainTargets:["[up-main~=overlay]"],openAnimation:"fade-in",closeAnimation:"fade-out",dismissLabel:"×",dismissAriaLabel:"Dismiss dialog",dismissable:!0,history:"auto"},cover:{mainTargets:["[up-main~=cover]"]},drawer:{mainTargets:["[up-main~=drawer]"],backdrop:!0,position:"left",size:"medium",openAnimation:function(t){switch(t.position){case"left":return"move-from-left";case"right":return"move-from-right"}},closeAnimation:function(t){switch(t.position){case"left":return"move-to-left";case"right":return"move-to-right"}}},modal:{mainTargets:["[up-main~=modal]"],backdrop:!0,size:"medium"},popup:{mainTargets:["[up-main~=popup]"],position:"bottom",size:"medium",align:"left",dismissable:"outside key"}},n=0,r=t;n<r.length;n++){var o=r[n];e[o.mode].Class=o}return e})),n=null,c=[];function p(t){return"root"===t?[e.root,e.any]:[e[t],e.overlay,e.any]}function l(t){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t=u.options(t,{layer:"new",defaultToEmptyContent:!0,navigate:!0}),[4,up.render(t)];case 1:return[2,e.sent().layer]}}))}))}up.on("up:fragment:destroyed",(function(){n.sync()})),up.on("up:framework:boot",(function(){n=new up.LayerStack})),up.on("up:framework:reset",(function(){e.reset(),n.reset(),c=u.filter(c,"isDefault")}));var f={config:e,mainTargets:function(t){return u.flatMap(p(t),"mainTargets")},open:l,build:function(t,r){var o=t.mode,i=e[o].Class,a=u.reverse(p(o)),c=up.migrate.handleLayerConfig;return c&&a.forEach(c),t=u.mergeDefined.apply(u,s(s([],a),[{mode:o,stack:n},t])),r&&(t=r(t)),new i(t)},ask:function(t){return new Promise((function(e,n){l(t=r(r({},t),{onAccepted:function(t){return e(t.value)},onDismissed:function(t){return n(t.value)}}))}))},normalizeOptions:function(t){var o,i;if(null===(i=(o=up.migrate).handleLayerOptions)||void 0===i||i.call(o,t),u.isGiven(t.layer)){var s=String(t.layer).match(/^(new|shatter|swap)( (\w+))?/);if(s){t.layer="new";var a=s[1],c=s[3];t.mode||(t.mode=c||e.mode),"swap"===a?up.layer.isOverlay()&&(t.baseLayer="parent"):"shatter"===a&&(t.baseLayer="root")}}else t.mode?t.layer="new":u.isElementish(t.target)?t.layer=n.get(t.target,{normalizeLayerOptions:!1}):t.origin?t.layer="origin":t.layer="current";t.context||(t.context={}),t.baseLayer=n.get("current",r(r({},t),{normalizeLayerOptions:!1}))},openCallbackAttr:function(t,e){return a.callbackAttr(t,e,["layer"])},closeCallbackAttr:function(t,e){return a.callbackAttr(t,e,["layer","value"])},anySelector:function(){return u.map(t,(function(t){return t.selector()})).join(",")},optionToString:function(t){return u.isString(t)?'layer "'+t+'"':t.toString()},get stack(){return n}};return u.delegate(f,["get","getAll","root","overlays","current","front","sync","count","dismissOverlays"],(function(){return n})),u.delegate(f,["accept","dismiss","isRoot","isOverlay","isFront","on","off","emit","parent","history","location","mode","context","element","contains","size","affix"],(function(){return n.current})),f}()},3849:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(7298),up.link=function(){var t=up.util,e=up.element,n=new up.LinkPreloader,i=null,s=["a[up-content]","a[up-fragment]","a[up-document]"],u=["a[href]","[up-href]"],a=["[up-follow]","[up-target]","[up-layer]","[up-transition]","[up-preload]","[up-instant]"];function c(e,n){return t.flatMap(e,(function(t){return n.map((function(e){return t+e}))}))}var p=new up.Config((function(){return{followSelectors:c(u,a).concat(s),noFollowSelectors:["[up-follow=false]","a[download]","a[target]",'a[href^="#"]:not([up-content]):not([up-fragment]):not([up-document])','a[href^="javascript:"]'],instantSelectors:["[up-instant]"],noInstantSelectors:["[up-instant=false]","[onclick]"],preloadSelectors:c(u,["[up-preload]"]),noPreloadSelectors:["[up-preload=false]"],clickableSelectors:s.concat(["[up-emit]","[up-accept]","[up-dismiss]","[up-clickable]"]),preloadDelay:90,preloadEnabled:"auto"}}));function l(){return p.followSelectors.join(",")}function f(n){return e.matches(n,p.noFollowSelectors.join(","))||t.isCrossOrigin(n)}var h=up.mockable((function(t,e){return up.render(y(t,e))}));function d(e,n){n=t.options(n);var r=new up.OptionsParser(n,e);return n.url=function(t,e){void 0===e&&(e={});var n=e.url||t.getAttribute("href")||t.getAttribute("up-href");if("#"!==n)return n}(e,n),n.method=m(e,n),r.json("headers"),r.json("params"),r.booleanOrString("cache"),r.booleanOrString("clearCache"),r.boolean("solo"),r.string("contentType",{attr:["enctype","up-content-type"]}),n}function y(t,n){var r,o;n=d(t=up.fragment.get(t),n);var i=new up.OptionsParser(n,t,{fail:!0});return i.boolean("feedback"),i.boolean("fail"),null==i.options.origin&&(i.options.origin=t),i.boolean("navigate",{default:!0}),i.string("confirm"),i.string("target"),i.booleanOrString("fallback"),i.parse((function(t,n){return e.callbackAttr(t,n,["request","response","renderOptions"])}),"onLoaded"),i.string("content"),i.string("fragment"),i.string("document"),i.boolean("peel"),i.string("layer"),i.string("baseLayer"),i.json("context"),i.string("mode"),i.string("align"),i.string("position"),i.string("class"),i.string("size"),i.booleanOrString("dismissable"),i.parse(up.layer.openCallbackAttr,"onOpened"),i.parse(up.layer.closeCallbackAttr,"onAccepted"),i.parse(up.layer.closeCallbackAttr,"onDismissed"),i.string("acceptEvent"),i.string("dismissEvent"),i.string("acceptLocation"),i.string("dismissLocation"),i.booleanOrString("history"),i.booleanOrString("focus"),i.boolean("saveScroll"),i.booleanOrString("scroll"),i.boolean("revealTop"),i.number("revealMax"),i.number("revealPadding"),i.number("revealSnap"),i.string("scrollBehavior"),i.booleanOrString("history"),i.booleanOrString("location"),i.booleanOrString("title"),i.booleanOrString("animation"),i.booleanOrString("transition"),i.string("easing"),i.number("duration"),null===(o=(r=up.migrate).parseFollowOptions)||void 0===o||o.call(r,i),n.guardEvent||(n.guardEvent=up.event.build("up:link:follow",{log:"Following link"})),n}function m(e,n){return void 0===n&&(n={}),t.normalizeMethod(n.method||e.getAttribute("up-method")||e.getAttribute("data-method"))}function v(t){return t=up.fragment.get(t),e.matches(t,l())&&!f(t)}function g(t){v(t)||t.setAttribute("up-follow","")}function b(t){e.matches(t,"a[href], button")||(e.setMissingAttrs(t,{tabindex:"0",role:"link"}),t.addEventListener("keydown",(function(t){if("Enter"===t.key||"Space"===t.key)return k(t)})))}function w(t,n){if(t.defaultPrevented||f(n))return!1;var r="a, [up-href], "+up.form.fieldSelector(),o=e.closest(t.target,r);return!o||o===n}function O(t){var n,r=e.closest(t,p.instantSelectors.join(","));return r&&(n=r,!(e.matches(n,p.noInstantSelectors.join(","))||f(n)))}function k(t){var e=o(["clientX","clientY","button"],up.event.keyModifiers),n=up.event.fork(t,"up:click",e);up.emit(t.target,n,{log:!1})}return up.macro((function(){return p.clickableSelectors.join(",")}),b),up.on("up:click",l,(function(t,e){w(t,e)&&(up.event.halt(t),up.log.muteUncriticalRejection(h(e)))})),up.macro("[up-expand]",(function(t){var n=t.getAttribute("up-expand")||"a, [up-href]",r=e.get(t,n);if(r){var o=e.upAttrs(r);o["up-href"]||(o["up-href"]=r.getAttribute("href")),e.setMissingAttrs(t,o),g(t)}})),up.compiler((function(){return p.preloadSelectors.join(",")}),(function(t){(function(t){return!up.browser.canPushState()||e.matches(t,p.noPreloadSelectors.join(","))||f(t)||!function(t){var e=d(t);if(e.url)return null==e.cache&&(e.cache="auto"),e.basic=!0,new up.Request(e).willCache()}(t)})(t)||n.observeLink(t)})),up.on("up:framework:reset",(function(){i=null,p.reset(),n.reset()})),{follow:h,followOptions:y,preload:function(t,e){if(t=up.fragment.get(t),!("auto"===(n=p.preloadEnabled)?!up.network.shouldReduceRequests():n))return up.error.failed.async("Link preloading is disabled");var n,o=up.event.build("up:link:preload",{log:["Preloading link %o",t]});return h(t,r(r({},e),{guardEvent:o,preload:!0}))},makeFollowable:g,makeClickable:b,isSafe:function(t){var e=m(t);return up.network.isSafeMethod(e)},isFollowable:v,shouldFollowEvent:w,followMethod:m,convertClicks:function(t){t.on("click",(function(e,n){if(up.event.isUnmodified(e))return O(n)&&i?up.event.halt(e):t.wasHitByMouseEvent(e)&&(!i||i===e.target)&&k(e),i=null})),t.on("mousedown",(function(t,e){up.event.isUnmodified(t)&&(i=t.target,O(e)&&k(t))}))},config:p,combineFollowableSelectors:c}}(),up.follow=up.link.follow},4453:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.log=function(){var e=new up.store.Session("up.log"),n=new up.Config((function(){return{enabled:e.get("enabled"),banner:!0}})),r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.apply(void 0,t(["error"],e))};function o(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];r&&(up.browser.canFormatLog()?(o.unshift(""),o.unshift("color: #666666; padding: 1px 3px; border: 1px solid #bbbbbb; border-radius: 2px; font-size: 90%; display: inline-block"),r="%c"+n+"%c "+r):r="["+n+"] "+r,console[e].apply(console,t([r],o)))}function i(t){e.set("enabled",t),n.enabled=t}return up.on("up:app:boot",(function(){if(n.banner){var t=" __ _____ ___ ___ / /_ __\n/ // / _ \\/ _ \\/ _ \\/ / // / "+up.version+"\n\\___/_//_/ .__/\\___/_/\\_. / \n / / / /\n\n",e="";up.migrate.loaded||(e+="Load unpoly-migrate.js to enable deprecated APIs.\n\n"),n.enabled?e+="Call `up.log.disable()` to disable logging for this session.":e+="Call `up.log.enable()` to enable logging for this session.";var r="color: #777777";up.browser.canFormatLog()?console.log("%c"+t+"%c"+e,"font-family: monospace;"+r,r):console.log(t+e)}})),up.on("up:framework:reset",(function(){n.reset()})),{puts:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.enabled&&o.apply(void 0,t(["log"],e))},error:r,warn:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.apply(void 0,t(["warn"],e))},config:n,enable:function(){i(!0)},disable:function(){i(!1)},fail:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];throw r.apply(void 0,t(["error"],e)),up.error.failed(e)},muteUncriticalRejection:function(t){return t.catch((function(t){if("object"!=typeof t||!("AbortError"===t.name||t instanceof up.RenderResult||t instanceof up.Response))throw t}))},isEnabled:function(){return n.enabled}}}(),up.puts=up.log.puts,up.warn=up.log.warn,up.fail=up.log.fail},6535:function(){up.migrate={config:{}}},8374:function(){up.mockable=function(t){var e,n=function(){return(e||t).apply(null,arguments)};return n.mock=function(){return e=jasmine.createSpy("mockable",t)},document.addEventListener("up:framework:reset",(function(){return e=null})),n}},4034:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};up.motion=function(){var r=up.util,o=up.element,i={},s={},u=new up.MotionController("motion"),a=new up.Config((function(){return{duration:175,easing:"ease",enabled:!matchMedia("(prefers-reduced-motion: reduce)").matches}}));function c(t){return r.pickBy(t,(function(t){return t.isDefault}))}function p(){return a.enabled}function l(t,e,n){return h(n),p()&&!w(e)&&n.duration>0&&!o.isSingleton(t)}function f(e,n,r){return r=t(t({},r),{finishEvent:u.finishEvent}),new up.CSSTransition(e,n,r).start()}function h(t){t.easing||(t.easing=a.easing),t.duration||(t.duration=a.duration)}function d(t){if(!w(t)){if(r.isFunction(t))return t;if(r.isArray(t))return y.apply(void 0,t);if(!r.isString(t))return up.fail("Unknown transition %o",t);var e=void 0;return t.indexOf("/")>=0?y.apply(void 0,t.split("/")):(e=s[t])?d(e):void 0}}function y(t,e){if(!w(t)&&!w(e)){var n=m(t)||r.asyncNoop,o=m(e)||r.asyncNoop;return function(t,e,r){return Promise.all([n(t,r),o(e,r)])}}}function m(t){return w(t)?void 0:r.isFunction(t)?t:r.isString(t)?i[e=t]||up.fail("Unknown animation %o",e):r.isOptions(t)?function(e,n){return f(e,t,n)}:up.fail("Unknown animation %o",t);var e}var v=up.mockable((function(t,e){o.replace(t,e)}));function g(t,e){var n=d(e);n.isDefault=up.framework.booting,s[t]=n}function b(t,e){var n=m(e);n.isDefault=up.framework.booting,i[t]=n}function w(t){return!t||"none"===t}function O(t,e,n){b(t,(function(t,r){return t.style.opacity=0,o.setStyle(t,{opacity:e}),f(t,{opacity:n},r)}))}function k(t,e){return{transform:"translate("+t+"px, "+e+"px)"}}function E(t){return o.setStyle(t,k(0,0)),t.getBoundingClientRect()}function S(t,e){var n="move-from-"+t;b("move-to-"+t,(function(t,n){var r=E(t);return f(t,e(r),n)})),b(n,(function(t,n){var r=E(t),i=e(r);return o.setStyle(t,i),f(t,k(0,0),n)}))}return O("fade-in",0,1),O("fade-out",1,0),S("top",(function(t){return k(0,-(t.top+t.height))})),S("bottom",(function(t){return k(0,up.viewport.rootHeight()-t.top)})),S("left",(function(t){return k(-(t.left+t.width),0)})),S("right",(function(t){return k(up.viewport.rootWidth()-t.left,0)})),g("cross-fade",["fade-out","fade-in"]),g("move-left",["move-to-left","move-from-right"]),g("move-right",["move-to-right","move-from-left"]),g("move-up",["move-to-top","move-from-bottom"]),g("move-down",["move-to-bottom","move-from-top"]),up.on("up:framework:boot",(function(){p()||up.puts("up.motion","Animations are disabled")})),up.on("up:framework:reset",(function(){u.reset(),i=c(i),s=c(s),a.reset()})),{morph:function(t,i,s,a){h(a=r.options(a)),t=up.fragment.get(t),i=up.fragment.get(i);var c=d(s),p=l(t,c,a),f=r.pluckKey(a,"beforeStart")||r.noop,y=r.pluckKey(a,"afterInsert")||r.noop,m=r.pluckKey(a,"beforeDetach")||r.noop,g=r.pluckKey(a,"afterDetach")||r.noop,b=r.pluckKey(a,"scrollNew")||r.asyncNoop;if(f(),p){if(u.isActive(t)&&!1===a.trackMotion)return c(t,i,a);up.puts("up.morph()","Morphing %o to %o with transition %O",t,i,s);var w=up.viewport.get(t),O=w.scrollTop,k=up.viewport.absolutize(t,{afterMeasure:function(){o.insertBefore(t,i),y()}});return u.startFunction([t,i],(function(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return[4,b()];case 1:return n.sent(),e=w.scrollTop,k.moveBounds(0,e-O),[4,c(t,i,a)];case 2:return n.sent(),m(),o.remove(k.bounds),g(),[2]}}))}))}),a)}return m(),v(t,i),y(),g(),b()},animate:function(t,e,n){t=up.fragment.get(t),n=r.options(n);var i=m(e);return l(t,e,n)?u.startFunction(t,(function(){return i(t,n)}),n):function(t,e){return r.isOptions(e)&&o.setStyle(t,e),Promise.resolve()}(t,e)},finish:function(t){return u.finish(t)},finishCount:function(){return u.finishCount},transition:g,animation:b,config:a,isEnabled:p,isNone:w,willAnimate:l,swapElementsDirectly:v}}(),up.transition=up.motion.transition,up.animation=up.motion.animation,up.morph=up.motion.morph,up.animate=up.motion.animate},1647:function(t,e,n){n(2903);var r=up.util;up.network=function(){var t=new up.Config((function(){return{concurrency:4,wrapMethod:!0,cacheSize:70,cacheExpiry:3e5,badDownlink:.6,badRTT:750,badResponseTime:400,autoCache:function(t){return t.isSafe()},clearCache:function(t,e){return!t.isSafe()},requestMetaKeys:["target","failTarget","mode","failMode","context","failContext"],progressBar:!0}})),e=new up.Request.Queue,n=new up.Request.Cache,o=null;function i(t){var e,n,o=r.extractOptions(t);return o.url||(o.url=t[0]),null===(n=(e=up.migrate).handleRequestOptions)||void 0===n||n.call(e,o),o}function s(t){var r;if(t.willCache()&&(r=n.get(t)))return up.puts("up.request()","Re-using previous request to %s %s",t.method,t.url),t.preload||e.promoteToForeground(r),t.followState(r),!0}function u(o){return o.preload&&!o.isSafe()&&up.fail("Will not preload request to %s",o.description),function(e){e.willCache()&&n.set(e,e),r.always(e,(function(r){var o,i,s=null!==(i=null!==(o=r.clearCache)&&void 0!==o?o:e.clearCache)&&void 0!==i?i:t.clearCache(e,r);s&&n.clear(s),(e.willCache()||n.get(e))&&n.set(e,e),r.ok||n.remove(e)}))}(o),e.asap(o),!0}function a(){return e.isBusy()}var c=r.negate(a);function p(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.abort.apply(e,t)}return up.on("up:request:late",(function(){r.evalOption(t.progressBar)&&(o=new up.ProgressBar)})),up.on("up:request:recover",(function(){null==o||o.conclude()})),up.on("up:framework:reset",(function(){p(),e.reset(),t.reset(),n.clear(),null==o||o.destroy(),o=null})),{request:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new up.Request(i(t));s(r)||u(r);var o=r.solo;return o&&e.abortExcept(r,o),r},cache:n,isIdle:c,isBusy:a,isSafeMethod:function(t){return r.contains(["GET","OPTIONS","HEAD"],r.normalizeMethod(t))},config:t,abort:p,registerAliasForRedirect:function(t,e){if(t.cache&&e.url&&t.url!==e.url){var r=t.variant({method:e.method,url:e.url});n.alias(t,r)}},queue:e,shouldReduceRequests:function(){var e=navigator.connection;if(e)return e.saveData||e.rtt&&e.rtt>t.badRTT||e.downlink&&e.downlink<t.badDownlink},mimicLocalRequest:function(t){var e=t.solo;e&&p(e);var r=t.clearCache;r&&n.clear(r)}}}(),up.request=up.network.request,up.cache=up.network.cache},3535:function(){up.protocol=function(){var t=up.util,e=up.element,n=function(t){return"X-Up"+t.replace(/(^.|[A-Z])/g,(function(t){return"-"+t.toUpperCase()}))},r=function(e,r,o){void 0===o&&(o=t.identity);var i=e.getResponseHeader(n(r));if(i)return o(i)};function o(t){switch(t){case"true":return!0;case"false":return!1;default:return t}}var i=t.memoize((function(){return t.normalizeMethod(up.browser.popCookie("_up_method"))})),s=new up.Config((function(){return{methodParam:"_method",csrfParam:function(){return e.metaContent("csrf-param")},csrfToken:function(){return e.metaContent("csrf-token")},csrfHeader:"X-CSRF-Token"}}));function u(){s.reset()}return up.on("up:framework:reset",u),{config:s,reset:u,locationFromXHR:function(t){return r(t,"location")||t.responseURL},titleFromXHR:function(t){return r(t,"title")},targetFromXHR:function(t){return r(t,"target")},methodFromXHR:function(e){return r(e,"method",t.normalizeMethod)},acceptLayerFromXHR:function(t){return r(t,"acceptLayer",JSON.parse)},contextFromXHR:function(t){return r(t,"context",JSON.parse)},dismissLayerFromXHR:function(t){return r(t,"dismissLayer",JSON.parse)},eventPlansFromXHR:function(t){return r(t,"events",JSON.parse)},clearCacheFromXHR:function(t){return r(t,"clearCache",o)},csrfHeader:function(){return t.evalOption(s.csrfHeader)},csrfParam:function(){return t.evalOption(s.csrfParam)},csrfToken:function(){return t.evalOption(s.csrfToken)},initialRequestMethod:i,headerize:n,wrapMethod:function(t,e){return e.add(s.methodParam,t),"POST"}}}()},9615:function(){up.radio=function(){var t=up.util,e=up.element,n=new up.Config((function(){return{hungrySelectors:["[up-hungry]"],pollInterval:3e4,pollEnabled:"auto"}}));function r(r,o){var i,s;void 0===o&&(o={});var u=null!==(s=null!==(i=o.interval)&&void 0!==i?i:e.numberAttr(r,"up-interval"))&&void 0!==s?s:n.pollInterval,a=!1,c=null;function p(){a||(function(e){var r,o,i=t.evalOption(n.pollEnabled,e);return"auto"===i?!document.hidden&&!up.network.shouldReduceRequests()&&(null===(o=null===(r=up.layer.get(e))||void 0===r?void 0:r.isFront)||void 0===o?void 0:o.call(r)):i}(r)?t.always(up.reload(r,o),l):(up.puts("[up-poll]","Polling is disabled"),l(Math.min(1e4,u))))}function l(t){void 0===t&&(t=u),a||setTimeout(p,t)}function f(){a=!0,null==c||c.abort()}return o.onQueued=function(t){return c=t},up.on(r,"up:poll:stop",f),l(),f}return up.compiler("[up-poll]",r),up.on("up:framework:reset",(function(){n.reset()})),{config:n,hungrySelector:function(){return n.hungrySelectors.join(",")},startPolling:r,stopPolling:function(t){up.emit(t,"up:poll:stop")}}}()},6774:function(){var t,e;up.rails=(t=up.util,e=up.element,t.each(["method","confirm"],(function(t){var n="data-"+t,r="up-"+t;up.macro("a["+n+"]",(function(t){if((window._rails_loaded||window.Rails||(null===(o=window.jQuery)||void 0===o?void 0:o.rails))&&up.link.isFollowable(t))return e.setMissingAttr(t,r,t.getAttribute(n)),t.removeAttribute(n);var o}))})))},2514:function(){up.syntax=function(){var t=up.util,e=up.element,n={"[up-back]":-100,"[up-content]":-200,"[up-drawer]":-200,"[up-modal]":-200,"[up-cover]":-200,"[up-popup]":-200,"[up-tooltip]":-200,"[up-dash]":-200,"[up-expand]":-300,"[data-method]":-400,"[data-confirm]":-400},r=[],o=[];function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a(t);return c(r,n)}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a(t);return up.framework.booting&&(n.priority=u(n.selector)||up.fail("Unregistered priority for system macro %o",n.selector)),c(o,n)}function u(e){for(var r in e=t.evalOption(e),n){var o=n[r];if(e.indexOf(r)>=0)return o}}function a(e){var n=function(e){var n=e.shift(),r=e.pop();return[n,t.extractOptions(e),r]}(e),r=n[0],o=n[1],i=n[2];return o=t.options(o,{selector:r,isDefault:up.framework.booting,priority:0,batch:!1,keep:!1,jQuery:!1}),t.assign(i,o)}function c(t,e){for(var n,r=0;(n=t[r])&&n.priority>=e.priority;)r+=1;return t.splice(r,0,e),e}return up.on("up:framework:reset",(function(){r=t.filter(r,"isDefault"),o=t.filter(o,"isDefault")})),{compiler:i,macro:s,$compiler:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=i.apply(void 0,t);n.jQuery=!0},$macro:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.apply(void 0,t);return n.jQuery=!0,n},destructor:function(e,n){var r=e.upDestructors;r||(r=[],e.upDestructors=r,e.classList.add("up-can-clean")),t.isArray(n)?r.push.apply(r,n):r.push(n)},compile:function(t,e){var n=o.concat(r);new up.CompilerPass(t,n,e).run()},clean:function(t,e){void 0===e&&(e={}),new up.DestructorPass(t,e).run()},data:function(t){return t=up.fragment.get(t),e.jsonAttr(t,"up-data")||{}}}}(),up.compiler=up.syntax.compiler,up.$compiler=up.syntax.$compiler,up.destructor=up.syntax.destructor,up.macro=up.syntax.macro,up.$macro=up.syntax.$macro,up.data=up.syntax.data},7924:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.util=function(){function e(){}var n={host:"cross-domain",stripTrailingSlash:!1,search:!0,hash:!1};function r(t,e){e=M(e,n);var r,o,i=u(t),a="";"cross-domain"===e.host&&(e.host=s(i)),e.host&&(a+=i.protocol+"//"+i.hostname,r=i.protocol,(""===(o=(o=i.port).toString())||"80"===o)&&"http:"===r||"443"===o&&"https:"===r||(a+=":"+i.port));var c=i.pathname;return e.stripTrailingSlash&&(c=c.replace(/\/$/,"")),a+=c,e.search&&(a+=i.search),e.hash&&(a+=i.hash),a}var o=location.protocol,i=location.hostname;function s(t){if(k(t)&&-1===t.indexOf("//"))return!1;var e=u(t);return i!==e.hostname||o!==e.protocol}function u(t){var e;return L(t)?e=up.element.get(t):t.pathname?e=t:(e=document.createElement("a")).href=t,e.hostname||(e.href=e.href),"/"!==e.pathname[0]&&((e=W(e,["protocol","hostname","port","pathname","search","hash"])).pathname="/"+e.pathname),e}function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++){var i=o[r];for(var s in i)t[s]=i[s]}return t}var c=Object.assign||a,p=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))};function l(t){return k(t)?function(e){return e[t]}:t}function f(t,e){if(0===t.length)return[];e=l(e);for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n}function h(t,e){for(var n=0;n<t.length;n++)e(t[n],n)}function d(t){return null===t}function y(t){return void 0===t}var m=ct(y);function v(t){return y(t)||d(t)}var g=ct(v);function b(t){return!!v(t)||(_(t)&&t[b.key]?t[b.key]():k(t)||A(t)?0===t.length:!!S(t)&&0===Object.keys(t).length)}b.key="up.util.isBlank";var w=ct(b);function O(t){return"function"==typeof t}function k(t){return"string"==typeof t||t instanceof String}function E(t){return"number"==typeof t||t instanceof Number}function S(t){return"object"==typeof t&&!d(t)&&(y(t.constructor)||t.constructor===Object)}function _(t){var e=typeof t;return"object"===e&&!d(t)||"function"===e}function x(t){return t instanceof Element}function C(t){return t instanceof RegExp}function L(t){return up.browser.canJQuery()&&t instanceof jQuery}var T=Array.isArray;function A(t){return T(t)||P(t)||R(t)||L(t)||function(t){return t instanceof HTMLCollection}(t)}function P(t){return t instanceof NodeList}function R(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function F(t){return A(t)?t:v(t)?[]:[t]}function j(t){return _(t)&&t[j.key]?t=t[j.key]():A(t)?t=q(t):S(t)&&(t=c({},t)),t}function q(t){return Array.prototype.slice.call(t)}function D(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return c.apply(void 0,t([{}],e))}function M(t,e){return e?D(e,t):t?j(t):{}}function H(t,e){e=l(e);for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r)return r}}function N(t,e){e=l(e);for(var n=!0,r=0;r<t.length;r++)if(!e(t[r],r)){n=!1;break}return n}function B(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}function z(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}function U(t,e){e=l(e);var n=[];return h(t,(function(t,r){if(e(t,r))return n.push(t)})),n}function K(t){return Promise.resolve().then(t)}function V(t){return t[t.length-1]}function I(t,e){return t.indexOf(e)>=0}function W(t,e){for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];i in t&&(n[i]=t[i])}return n}function Q(t,e){e=l(e);var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n}j.key="up.util.copy",Date.prototype[j.key]=function(){return new Date(+this)};var G={"&":"&","<":"<",">":">",'"':""","'":"'"};function X(t,e){var n=t[e];return delete t[e],n}function $(t,e){if(e(V(t)))return t.pop()}function J(t){return $(t,S)||{}}function Y(t){return t}function Z(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];A(o)?e.push.apply(e,o):e.push(o)}return e}function tt(t){return null==t?void 0:t.catch(e)}function et(t,e){if((null==t?void 0:t.valueOf)&&(t=t.valueOf()),(null==e?void 0:e.valueOf)&&(e=e.valueOf()),typeof t!=typeof e)return!1;if(A(t)&&A(e))return nt(t,e);if(_(t)&&t[et.key])return t[et.key](e);if(S(t)&&S(e)){var n=Object.keys(t);return!!nt(n,Object.keys(e))&&N(n,(function(n){return et(t[n],e[n])}))}return t===e}function nt(t,e){return t.length===e.length&&N(t,(function(t,n){return et(t,e[n])}))}et.key="up.util.isEqual";var rt=0;function ot(t){return t[0].toLowerCase()+t.slice(1)}function it(t){return t[0].toUpperCase()+t.slice(1)}function st(t){var e,n="";if(k(t))e=(e=(e=t.replace(/[\n\r\t ]+/g," ")).replace(/^[\n\r\t ]+/,"")).replace(/[\n\r\t ]$/,"");else if(y(t))e="undefined";else if(E(t)||O(t))e=t.toString();else if(T(t))e="["+f(t,st).join(", ")+"]",n="]";else if(L(t))e="$("+f(t,st).join(", ")+")",n=")";else if(x(t)){e="<"+t.tagName.toLowerCase();for(var r=0,o=["id","name","class"];r<o.length;r++){var i=o[r],s=t.getAttribute(i);s&&(e+=" "+i+'="'+s+'"')}e+=">",n=">"}else if(C(t))e=t.toString();else try{e=JSON.stringify(t)}catch(t){if("TypeError"!==t.name)throw t;e="(circular structure)"}return e.length>200&&(e=e.substr(0,200)+" …",e+=n),e}var ut=/\%[oOdisf]/g;function at(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!e)return"";var o=0;return e.replace(ut,(function(){var e=n[o];return e=t(st(e)),o+=1,e}))}function ct(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(void 0,e)}}return{parseURL:u,normalizeURL:r,urlWithoutHost:function(t){return r(t,{host:!1})},matchURLs:function(t,e){return r(t)===r(e)},normalizeMethod:function(t){return t?t.toUpperCase():"GET"},methodAllowsPayload:function(t){return"GET"!==t&&"HEAD"!==t},assign:c,assignPolyfill:a,copy:j,copyArrayLike:q,merge:D,mergeDefined:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];if(i)for(var s in i){var u=i[s];m(u)&&(n[s]=u)}}return n},options:M,parseArgIntoOptions:function(t,e){var n=J(t);return m(t[0])&&((n=j(n))[e]=t[0]),n},each:h,eachIterator:function(t,e){for(var n;(n=t.next())&&!n.done;)e(n.value)},map:f,flatMap:function(t,e){return Z(f(t,e))},mapObject:function(t,e){return f(t,e).reduce((function(t,e){return t[e[0]]=e[1],t}),{})},findResult:H,some:function(t,e){return!!H(t,e)},every:N,find:function(t,e){var n;e=l(e);for(var r=0,o=t;r<o.length;r++){var i=o[r];if(e(i)){n=i;break}}return n},filter:U,reject:function(t,e){return U(t,e=ct(l(e)))},intersect:function(t,e){return U(t,(function(t){return I(e,t)}))},compact:function(t){return U(t,g)},compactObject:function(t){return Q(t,g)},uniq:function(t){return t.length<2?t:B(z(t))},uniqBy:function(t,e){if(t.length<2)return t;e=l(e);var n=new Set;return U(t,(function(t,r){var o=e(t,r);return!n.has(o)&&(n.add(o),!0)}))},last:V,isNull:d,isDefined:m,isUndefined:y,isGiven:g,isMissing:v,isPresent:w,isBlank:b,presence:function(t,e){if(void 0===e&&(e=w),e(t))return t},isObject:_,isFunction:O,isString:k,isBoolean:function(t){return"boolean"==typeof t||t instanceof Boolean},isNumber:E,isElement:x,isJQuery:L,isElementish:function(t){var e;return!(!t||!t.addEventListener&&!(null===(e=t[0])||void 0===e?void 0:e.addEventListener))},isPromise:function(t){return _(t)&&O(t.then)},isOptions:S,isArray:T,isFormData:function(t){return t instanceof FormData},isNodeList:P,isArguments:R,isList:A,isRegExp:C,timer:function(t,e){return setTimeout(e,t)},contains:I,objectContains:function(t,e){return et(e,W(t,Object.keys(e)))},toArray:function(t){return T(t)?t:q(t)},pick:W,pickBy:Q,omit:function(t,e){return Q(t,(function(t,n){return!I(e,n)}))},unresolvablePromise:function(){return new Promise(e)},remove:function(t,e){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e},memoize:function(t){var e,n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n?e:(n=!0,e=t.apply(this,r))}},pluckKey:X,renameKey:function(t,e,n){return t[n]=X(t,e)},extractOptions:J,extractCallback:function(t){return $(t,O)},noop:e,asyncNoop:function(){return Promise.resolve()},identity:Y,escapeHTML:function(t){return t.replace(/[&<>"']/g,(function(t){return G[t]}))},escapeRegExp:function(t){return t.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},sequence:function(t){return 1===t.length?t[0]:function(){return f(t,(function(t){return t()}))}},evalOption:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return O(t)?t.apply(void 0,e):t},flatten:Z,isTruthy:function(t){return!!t},newDeferred:function(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n.promise=function(){return n},n},always:function(t,e){return t.then(e,e)},muteRejection:tt,asyncify:function(t){try{return Promise.resolve(t())}catch(t){return Promise.reject(t)}},isBasicObjectProperty:function(t){return Object.prototype.hasOwnProperty(t)},isCrossOrigin:s,task:function(t){return setTimeout(t)},microtask:K,abortableMicrotask:function(t){var e=!1;return K((function(){if(!e)return t()})),function(){return e=!0}},isEqual:et,splitValues:function(t,e){return void 0===e&&(e=" "),k(t)?t=U(t=f(t=t.split(e),(function(t){return t.trim()})),w):F(t)},endsWith:function(t,e){return t.substring(t.length-e.length)===e},wrapList:F,wrapValue:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n[0]instanceof e?n[0]:new(e.bind.apply(e,t([void 0],n)))},simpleEase:function(t){return t<.5?2*t*t:t*(4-2*t)-1},values:p,arrayToSet:z,setToArray:B,uid:function(){return rt++},upperCaseFirst:it,lowerCaseFirst:ot,getter:function(t,e,n){Object.defineProperty(t,e,{get:n})},delegate:function(t,e,n){F(e).forEach((function(e){Object.defineProperty(t,e,{get:function(){var t=n.call(this),r=t[e];return O(r)&&(r=r.bind(t)),r},set:function(t){n.call(this)[e]=t}})}))},reverse:function(t){return j(t).reverse()},prefixCamelCase:function(t,e){return e+it(t)},unprefixCamelCase:function(t,e){var n=new RegExp("^"+e+"(.+)$"),r=t.match(n);if(r)return ot(r[1])},camelToKebabCase:function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))},nullToUndefined:function(t){if(!d(t))return t},sprintf:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return at.apply(void 0,t([Y,e],n))},sprintfWithFormattedArgs:at,renameKeys:function(t,e){var n={};for(var r in t)n[e(r)]=t[r];return n},timestamp:function(){return Math.floor(.001*Date.now())},allSettled:function(t){return Promise.all(f(t,tt))},negate:ct}}()},4606:function(t,e,n){var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(573),up.viewport=function(){var t=up.util,e=up.element,n=up.fragment,o=new up.Config((function(){return{viewportSelectors:["[up-viewport]","[up-fixed]"],fixedTop:["[up-fixed~=top]"],fixedBottom:["[up-fixed~=bottom]"],anchoredRight:["[up-anchored~=right]","[up-fixed~=top]","[up-fixed~=bottom]","[up-fixed~=right]"],revealSnap:200,revealPadding:0,revealTop:!1,revealMax:function(){return.5*window.innerHeight},scrollSpeed:1}})),i=new up.MotionController("scrolling");function s(t,e,r){void 0===r&&(r={}),t=n.get(t,r);var o=new up.ScrollMotion(t,e,r);i.startMotion(t,o,r)}function u(e,r){if(r=t.options(r),e=n.get(e,r),!(r.layer=up.layer.get(e)))return up.error.failed.async("Cannot reveal a detached element");r.peel&&r.layer.peel();var o=new up.RevealMotion(e,r);return i.startMotion(e,o,r)}function a(t,e){if(void 0===e&&(e={}),up.browser.isIE11()){var n=l(t),r=n.scrollTop;t.focus(),n.scrollTop=r}else t.focus({preventScroll:!0});if(!e.preventScroll)return u(t)}function c(t,e){void 0===t&&(t=location.hash);var n=E(t,e);if(n)return up.reveal(n,{top:!0})}function p(){return r([d()],o.viewportSelectors).join(",")}function l(t,r){void 0===r&&(r={});var o=n.get(t,r);return e.closest(o,p())}function f(t,r){return void 0===r&&(r={}),t=n.get(t,r),e.around(t,p())}function h(t){return void 0===t&&(t={}),n.all(p(),t)}function d(){var t;return(t=document.scrollingElement)?t.tagName:"html"}function y(){return document.querySelector(d())}function m(t){var n=e.style(t,"overflow-y");return"auto"===n||"scroll"===n}var v=t.memoize((function(){var t=up.element.affix(document.body,"[up-viewport]",{style:{position:"absolute",top:"0",left:"0",width:"100px",height:"100px",overflowY:"scroll"}}),e=t.offsetWidth-t.clientWidth;return up.element.remove(t),e}));function g(t){return up.fragment.toTarget(t)}function b(t){void 0===t&&(t=document);var e=["[up-fixed]"].concat(o.fixedTop).concat(o.fixedBottom);return t.querySelectorAll(e.join(","))}function w(e){return t.mapObject(e,(function(t){return[g(t),t.scrollTop]}))}function O(e){var n=t.copy(t.extractOptions(e));return n.layer=up.layer.get(n),[e[0]?[l(e[0],n)]:n.around?f(n.around,n):h(n),n]}function k(e,n){var r=t.map(e,(function(t){var e=g(t);return s(t,n[e]||0,{duration:0})}));return Promise.all(r)}function E(t,r){if(void 0===r&&(r={}),t=null==(i=t)?void 0:i.replace(/^#/,"")){var o=[e.attributeSelector("id",t),"a"+e.attributeSelector("name",t)].join(",");return n.get(o,r)}var i}var S=!1;return up.on("scroll",{once:!0},(function(){return S=!0})),up.on("up:app:boot",(function(){return t.task((function(){if(!S)return c()}))})),up.on(window,"hashchange",(function(){return c()})),up.on("up:framework:reset",(function(){o.reset(),i.reset()})),{reveal:u,revealHash:c,firstHashTarget:E,scroll:s,config:o,get:l,subtree:function(t,r){return void 0===r&&(r={}),t=n.get(t,r),e.subtree(t,p())},around:f,all:h,rootSelector:d,get root(){return y()},rootWidth:function(){return e.root.clientWidth},rootHeight:function(){return e.root.clientHeight},rootHasReducedWidthFromScrollbar:function(){return window.innerWidth>document.documentElement.offsetWidth},rootOverflowElement:function(){var e=document.body,n=document.documentElement;return t.find([n,e],m)||y()},isRoot:function(t){return e.matches(t,d())},scrollbarWidth:v,scrollTops:function(e){return void 0===e&&(e={}),t.mapObject(h(e),(function(t){return[g(t),t.scrollTop]}))},saveScroll:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=O(e),o=r[0],i=r[1],s=i.location||i.layer.location;if(s){var u=null!==(t=i.tops)&&void 0!==t?t:w(o);i.layer.lastScrollTops.set(s,u)}},restoreScroll:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=O(e),o=r[0],i=r[1],s=i.layer.location,u=i.layer.lastScrollTops.get(s)||{};return up.puts("up.viewport.restoreScroll()","Restoring scroll positions for URL %s to %o",t.urlWithoutHost(s),u),k(o,u)},resetScroll:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=O(t),r=n[0];return n[1],k(r,{})},anchoredRight:function(){var t=o.anchoredRight.join(",");return n.all(t,{layer:"root"})},fixedElements:b,absolutize:function(n,r){var o;void 0===r&&(r={});var i=l(n).getBoundingClientRect(),s=n.getBoundingClientRect(),u=new up.Rect({left:s.left-i.left,top:s.top-i.top,width:s.width,height:s.height});null===(o=r.afterMeasure)||void 0===o||o.call(r),e.setStyle(n,{position:"static"===n.style.position?"static":"relative",top:"auto",right:"auto",bottom:"auto",left:"auto",width:"100%",height:"100%"});var a=e.createFromSelector("up-bounds");e.insertBefore(n,a),a.appendChild(n);var c=function(t,n){return u.left+=t,u.top+=n,e.setStyle(a,u)};c(0,0);var p=n.getBoundingClientRect();return c(s.left-p.left,s.top-p.top),t.each(b(n),e.fixedToAbsolute),{bounds:a,moveBounds:c}},focus:a,tryFocus:function(t,e){return a(t,e),t===document.activeElement},makeFocusable:function(t){t.hasAttribute("tabindex")||function(t){return e.matches(t,"a[href], button, textarea, input, select")}(t)||(t.setAttribute("tabindex","-1"),t.classList.add("up-focusable-content"))}}}(),up.focus=up.viewport.focus,up.scroll=up.viewport.scroll,up.reveal=up.viewport.reveal},3507:function(){window.up={version:"2.2.0"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n(3507),n(8374),n(7924),n(3924),n(6535),n(2811),n(9675),n(2406),n(3742),n(3115),n(1279),n(6346),n(3030),n(7948),n(1752),n(8228),n(7050),n(9441),n(7422),n(9005),n(2200),n(1569),n(2737),n(3635),n(1906),n(4158),n(3139),n(6866),n(665),n(2828),n(2587),n(7031),n(4850),n(6267),n(7956),n(7403),n(6412),n(7965),n(7771),n(86),n(4552),n(5580),n(7101),n(6066),n(6387),n(5390),n(2618),n(7792),n(1104),n(8665),n(3645),n(7782),n(2705),n(606),n(5437),n(7974),n(6413),n(5221),n(2298),n(4517),n(7241),n(2723),n(6956),n(8720),n(104),n(5438),n(7885),n(4818),n(9634),n(8670),n(3535),n(4453),n(2514),n(8944),n(2667),n(4606),n(4034),n(1647),n(9443),n(3849),n(2851),n(454),n(9615),n(6774),up.framework.boot()}();
|
1
|
+
!function(){var t={7433:function(){},7921:function(){},7298:function(){},2903:function(){},573:function(){},2811:function(){up.browser=function(){var t=up.util;function e(){return"ActiveXObject"in window}function n(){return!!window.jQuery}function r(){return window.Promise?"BackCompat"===document.compatMode?"Browser is in quirks mode (missing DOCTYPE?)":void 0:"Browser doesn't support promises"}return{loadPage:function(t){new up.Request(t).loadPage()},submitForm:function(t){t.submit()},canPushState:function(){return history.pushState&&"GET"===up.protocol.initialRequestMethod()},canFormatLog:t.negate(e),canPassiveEventListener:t.negate(e),canJQuery:n,assertConfirmed:function(t){if(t.confirm&&!window.confirm(t.confirm))throw up.error.aborted("User canceled action");return!0},isSupported:function(){return!r()},supportIssue:r,popCookie:function(t){var e,n=null===(e=document.cookie.match(new RegExp(t+"=(\\w+)")))||void 0===e?void 0:e[1];if(n)return document.cookie=t+"=;Max-Age=0;Path=/",n},get jQuery(){return n()||up.fail("jQuery must be published as window.jQuery"),jQuery},isIE11:e}}()},6346:function(){var t=up.element;up.BodyShifter=function(){function e(){this.unshiftFns=[],this.reset()}return e.prototype.reset=function(){this.unshiftNow(),this.shiftCount=0},e.prototype.shift=function(){if(this.shiftCount++,!(this.shiftCount>1)){var e=up.viewport.rootHasReducedWidthFromScrollbar(),n=up.viewport.rootOverflowElement();if(this.changeStyle(n,{overflowY:"hidden"}),e){var r=document.body,o=up.viewport.scrollbarWidth(),i=o+t.styleNumber(r,"paddingRight");this.changeStyle(r,{paddingRight:i});for(var s=0,u=up.viewport.anchoredRight();s<u.length;s++){var a=u[s],c=o+t.styleNumber(a,"right");this.changeStyle(a,{right:c})}}}},e.prototype.changeStyle=function(e,n){this.unshiftFns.push(t.setTemporaryStyle(e,n))},e.prototype.unshift=function(){this.shiftCount--,0==this.shiftCount&&this.unshiftNow()},e.prototype.unshiftNow=function(){for(var t;t=this.unshiftFns.pop();)t()},e}()},3115:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},e=up.util;up.Cache=function(){function n(t){void 0===t&&(t={}),this.config=t,this.store=this.config.store||new up.store.Memory}return n.prototype.size=function(){return this.store.size()},n.prototype.maxSize=function(){return e.evalOption(this.config.size)},n.prototype.expiryMillis=function(){return e.evalOption(this.config.expiry)},n.prototype.normalizeStoreKey=function(t){return this.config.key?this.config.key(t):t.toString()},n.prototype.isEnabled=function(){return 0!==this.maxSize()&&0!==this.expiryMillis()},n.prototype.clear=function(){this.store.clear()},n.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.config.logPrefix&&(e[0]="["+this.config.logPrefix+"] "+e[0],up.puts.apply(up,t(["up.Cache"],e)))},n.prototype.keys=function(){return this.store.keys()},n.prototype.each=function(t){var n=this;e.each(this.keys(),(function(e){var r=n.store.get(e);t(e,r.value,r.timestamp)}))},n.prototype.makeRoomForAnotherEntry=function(){var t,e;this.hasRoomForAnotherEntry()||(this.each((function(n,r,o){(!e||e>o)&&(t=n,e=o)})),t&&this.store.remove(t))},n.prototype.hasRoomForAnotherEntry=function(){var t=this.maxSize();return!t||this.size()<t},n.prototype.alias=function(t,n){var r=this.get(t,{silent:!0});e.isDefined(r)&&this.set(n,r)},n.prototype.timestamp=function(){return(new Date).valueOf()},n.prototype.set=function(t,e){if(this.isEnabled()){this.makeRoomForAnotherEntry();var n=this.normalizeStoreKey(t),r={timestamp:this.timestamp(),value:e};this.store.set(n,r)}},n.prototype.remove=function(t){var e=this.normalizeStoreKey(t);this.store.remove(e)},n.prototype.isFresh=function(t){var e=this.expiryMillis();return!e||this.timestamp()-t.timestamp<e},n.prototype.get=function(t,e){void 0===e&&(e={});var n=this.normalizeStoreKey(t),r=this.store.get(n);if(r){if(this.isFresh(r))return e.silent||this.log("Cache hit for '%s'",t),r.value;e.silent||this.log("Discarding stale cache entry for '%s'",t),this.remove(t)}else e.silent||this.log("Cache miss for '%s'",t)},n}()},7948:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util,r=up.element;up.Change.Addition=function(t){function o(e){var n=t.call(this,e)||this;return n.responseDoc=e.responseDoc,n.acceptLayer=e.acceptLayer,n.dismissLayer=e.dismissLayer,n.eventPlans=e.eventPlans||[],n}return e(o,t),o.prototype.handleLayerChangeRequests=function(){var t=this;this.layer.isOverlay()&&(this.tryAcceptLayerFromServer(),this.abortWhenLayerClosed(),this.layer.tryAcceptForLocation(),this.abortWhenLayerClosed(),this.tryDismissLayerFromServer(),this.abortWhenLayerClosed(),this.layer.tryDismissForLocation(),this.abortWhenLayerClosed()),this.layer.asCurrent((function(){for(var e=0,n=t.eventPlans;e<n.length;e++){var r=n[e];up.emit(r),t.abortWhenLayerClosed()}}))},o.prototype.tryAcceptLayerFromServer=function(){n.isDefined(this.acceptLayer)&&this.layer.isOverlay()&&this.layer.accept(this.acceptLayer)},o.prototype.tryDismissLayerFromServer=function(){n.isDefined(this.dismissLayer)&&this.layer.isOverlay()&&this.layer.dismiss(this.dismissLayer)},o.prototype.abortWhenLayerClosed=function(){if(this.layer.isClosed())throw up.error.aborted("Layer was closed")},o.prototype.setSource=function(t){var e=t.oldElement,o=t.newElement,i=t.source;"keep"===i&&(i=e&&up.fragment.source(e)),i&&r.setMissingAttr(o,"up-source",n.normalizeURL(i))},o}(up.Change)},3030:function(){var t=up.util;up.Change=function(){function e(t){this.options=t}return e.prototype.notApplicable=function(t){return up.error.notApplicable(this,t)},e.prototype.execute=function(){throw up.error.notImplemented()},e.prototype.onFinished=function(){var t,e;return null===(e=(t=this.options).onFinished)||void 0===e?void 0:e.call(t)},e.prototype.improveHistoryValue=function(e,n){return!1===e||t.isString(e)?e:n},e}()},7422:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.Change.CloseLayer=function(t){function r(e){var n,r=t.call(this,e)||this;return r.verb=e.verb,r.layer=up.layer.get(e),r.origin=e.origin,r.value=e.value,r.preventable=null===(n=e.preventable)||void 0===n||n,r}return e(r,t),r.prototype.execute=function(){var t=this;if(!this.layer.isOpen())return Promise.resolve();if(up.browser.assertConfirmed(this.options),up.network.abort((function(e){return e.layer===t.layer})),this.emitCloseEvent().defaultPrevented&&this.preventable)throw up.error.aborted("Close event was prevented");var e=this.layer.parent;this.layer.peel(),this.layer.stack.remove(this.layer),e.restoreHistory(),this.handleFocus(e),this.layer.teardownHandlers(),this.layer.destroyElements(this.options),this.emitClosedEvent(e)},r.prototype.emitCloseEvent=function(){return this.layer.emit(this.buildEvent("up:layer:"+this.verb),{callback:this.layer.callback("on"+n.upperCaseFirst(this.verb)),log:"Will "+this.verb+" "+this.layer})},r.prototype.emitClosedEvent=function(t){var e=this.verb+"ed",r=n.upperCaseFirst(e);return this.layer.emit(this.buildEvent("up:layer:"+e),{baseLayer:t,callback:this.layer.callback("on"+r),ensureBubbles:!0,log:r+" "+this.layer})},r.prototype.buildEvent=function(t){return up.event.build(t,{layer:this.layer,value:this.value,origin:this.origin})},r.prototype.handleFocus=function(t){var e;this.layer.overlayFocus.teardown(),null===(e=t.overlayFocus)||void 0===e||e.moveToFront(),(this.layer.origin||t.element).focus({preventScroll:!0})},r}(up.Change.Removal)},8228:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},o=up.element;up.Change.DestroyFragment=function(t){function i(e){var n=t.call(this,e)||this;return n.layer=up.layer.get(e)||up.layer.current,n.element=n.options.element,n.animation=n.options.animation,n.log=n.options.log,n}return e(i,t),i.prototype.execute=function(){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return this.parent=this.element.parentNode,up.fragment.markAsDestroying(this.element),up.motion.willAnimate(this.element,this.animation,this.options)?(this.emitDestroyed(),[4,this.animate()]):[3,2];case 1:return t.sent(),this.wipe(),this.onFinished(),[3,3];case 2:this.wipe(),this.emitDestroyed(),this.onFinished(),t.label=3;case 3:return[2]}}))}))},i.prototype.animate=function(){return up.motion.animate(this.element,this.animation,this.options)},i.prototype.wipe=function(){var t=this;this.layer.asCurrent((function(){up.syntax.clean(t.element,{layer:t.layer}),up.browser.canJQuery()?jQuery(t.element).remove():o.remove(t.element)}))},i.prototype.emitDestroyed=function(){up.fragment.emitDestroyed(this.element,{parent:this.parent,log:this.log})},i}(up.Change.Removal)},9005:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.Change.FromContent=function(t){function o(e){var n=t.call(this,e)||this;return n.layers=r.filter(up.layer.getAll(n.options),n.isRenderableLayer),n.origin=n.options.origin,n.preview=n.options.preview,n.mode=n.options.mode,n.origin&&(n.originLayer=up.layer.get(n.origin)),n}return e(o,t),o.prototype.isRenderableLayer=function(t){return"new"===t||t.isOpen()},o.prototype.getPlans=function(){return this.plans||(this.plans=[],this.options.fragment&&(this.options.target=this.getResponseDoc().rootSelector()),this.expandIntoPlans(this.layers,this.options.target),this.expandIntoPlans(this.layers,this.options.fallback)),this.plans},o.prototype.expandIntoPlans=function(t,e){for(var r=0,o=t;r<o.length;r++)for(var i=o[r],s=0,u=this.expandTargets(e,i);s<u.length;s++){var a=u[s],c=n(n({},this.options),{target:a,layer:i,placement:this.defaultPlacement()}),p="new"===i?new up.Change.OpenLayer(c):new up.Change.UpdateLayer(c);this.plans.push(p)}},o.prototype.expandTargets=function(t,e){return up.fragment.expandTargets(t,{layer:e,mode:this.mode,origin:this.origin})},o.prototype.execute=function(){var t=this;return this.options.preload?Promise.resolve():this.seekPlan((function(e){return e.execute(t.getResponseDoc())}))||this.postflightTargetNotApplicable()},o.prototype.getResponseDoc=function(){var t,e;if(!this.preview&&!this.responseDoc){var n=r.pick(this.options,["target","content","fragment","document","html"]);null===(e=(t=up.migrate).handleResponseDocOptions)||void 0===e||e.call(t,n),"content"===this.defaultPlacement()&&(n.target=this.firstExpandedTarget(n.target)),this.responseDoc=new up.ResponseDoc(n)}return this.responseDoc},o.prototype.defaultPlacement=function(){if(!this.options.document&&!this.options.fragment)return"content"},o.prototype.firstExpandedTarget=function(t){return this.expandTargets(t||":main",this.layers[0])[0]},o.prototype.preflightProps=function(t){return void 0===t&&(t={}),this.seekPlan((function(t){return t.preflightProps()}))||t.optional||this.preflightTargetNotApplicable()},o.prototype.preflightTargetNotApplicable=function(){this.targetNotApplicable("Could not find target in current page")},o.prototype.postflightTargetNotApplicable=function(){this.targetNotApplicable("Could not find common target in current page and response")},o.prototype.targetNotApplicable=function(t){if(this.getPlans().length){var e=r.uniq(r.map(this.getPlans(),"target")),n=up.layer.optionToString(this.options.layer);up.fail(t+" (tried selectors %o in %s)",e,n)}else this.layers.length?up.fail("No target selector given"):up.fail("Layer %o does not exist",this.options.layer)},o.prototype.seekPlan=function(t){for(var e=0,n=this.getPlans();e<n.length;e++){var r=n[e];try{return t(r)}catch(t){if(!up.error.notApplicable.is(t))throw t}}},o}(up.Change)},2200:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.Change.FromURL=function(t){function o(e){var n=t.call(this,e)||this;return n.options.layer=up.layer.getAll(n.options),n.options.normalizeLayerOptions=!1,n.successOptions=n.options,n.failOptions=up.RenderOptions.deriveFailOptions(n.successOptions),n}return e(o,t),o.prototype.execute=function(){var t=this,e=this.newPageReason();if(e)return up.puts("up.render()",e),up.browser.loadPage(this.options),r.unresolvablePromise();var n=this.makeRequest();return this.options.preload?n:r.always(n,(function(e){return t.onRequestSettled(e)}))},o.prototype.newPageReason=function(){return r.isCrossOrigin(this.options.url)?"Loading cross-origin content in new page":up.browser.canPushState()?void 0:"Loading content in new page to restore history support"},o.prototype.makeRequest=function(){var t=this.preflightPropsForRenderOptions(this.successOptions),e=this.preflightPropsForRenderOptions(this.failOptions,{optional:!0}),n=r.merge(this.successOptions,t,r.renameKeys(e,up.fragment.failKey));return this.request=up.request(n),this.request},o.prototype.preflightPropsForRenderOptions=function(t,e){return new up.Change.FromContent(n(n({},t),{preview:!0})).preflightProps(e)},o.prototype.onRequestSettled=function(t){if(this.response=t,t instanceof up.Response){if(this.isSuccessfulResponse())return this.updateContentFromResponse(["Loaded fragment from successful response to %s",this.request.description],this.successOptions);var e=["Loaded fragment from failed response to %s (HTTP %d)",this.request.description,this.response.status];throw this.updateContentFromResponse(e,this.failOptions)}throw t},o.prototype.isSuccessfulResponse=function(){return!1===this.successOptions.fail||this.response.ok},o.prototype.buildEvent=function(t,e){var n={request:this.request,response:this.response,renderOptions:this.options};return up.event.build(t,r.merge(n,e))},o.prototype.updateContentFromResponse=function(t,e){var n=this.buildEvent("up:fragment:loaded",{renderOptions:e});return this.request.assertEmitted(n,{log:t,callback:this.options.onLoaded}),this.augmentOptionsFromResponse(e),new up.Change.FromContent(e).execute()},o.prototype.augmentOptionsFromResponse=function(t){var e=this.response.url,n=e,o=this.request.hash;o&&(t.hash=o,n+=o),"GET"===this.response.method?t.source=this.improveHistoryValue(t.source,e):(t.source=this.improveHistoryValue(t.source,"keep"),t.history=!!t.location),t.location=this.improveHistoryValue(t.location,n),t.title=this.improveHistoryValue(t.title,this.response.title),t.eventPlans=this.response.eventPlans;var i=this.response.target;i&&(t.target=i),t.document=this.response.text,t.acceptLayer=this.response.acceptLayer,t.dismissLayer=this.response.dismissLayer,t.document||!r.isDefined(t.acceptLayer)&&!r.isDefined(t.dismissLayer)||(t.target=":none"),t.context=r.merge(t.context,this.response.context)},o}(up.Change)},7050:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};up.Change.OpenLayer=function(t){function r(e){var n=t.call(this,e)||this;return n.target=e.target,n.origin=e.origin,n.baseLayer=e.baseLayer,n}return e(r,t),r.prototype.preflightProps=function(){return{layer:this.baseLayer,mode:this.options.mode,context:this.buildLayer().context,target:this.target}},r.prototype.bestPreflightSelector=function(){return this.target},r.prototype.execute=function(t){var e=this;if(":none"===this.target?this.content=document.createElement("up-none"):this.content=t.select(this.target),!this.content||this.baseLayer.isClosed())throw this.notApplicable();if(up.puts("up.render()",'Opening element "'+this.target+'" in new overlay'),this.options.title=this.improveHistoryValue(this.options.title,t.getTitle()),this.emitOpenEvent().defaultPrevented)throw up.error.aborted("Open event was prevented");return this.baseLayer.peel(),this.layer=this.buildLayer(),up.layer.stack.push(this.layer),this.layer.createElements(this.content),this.layer.setupHandlers(),this.handleHistory(),this.setSource({newElement:this.content,source:this.options.source}),t.finalizeElement(this.content),up.hello(this.layer.element,{layer:this.layer,origin:this.origin}),this.handleLayerChangeRequests(),this.handleScroll(),this.layer.startOpenAnimation().then((function(){e.layer.isOpen()&&e.handleFocus(),e.onFinished()})),this.layer.opening=!1,this.emitOpenedEvent(),this.abortWhenLayerClosed(),new up.RenderResult({layer:this.layer,fragments:[this.content]})},r.prototype.buildLayer=function(){var t=this,e=n(n({},this.options),{opening:!0});return up.layer.build(e,(function(e){return t.options=up.RenderOptions.finalize(e)}))},r.prototype.handleHistory=function(){"auto"===this.layer.history&&(this.layer.history=up.fragment.hasAutoHistory(this.content)),this.layer.parent.saveHistory(),this.layer.updateHistory(this.options)},r.prototype.handleFocus=function(){var t;null===(t=this.baseLayer.overlayFocus)||void 0===t||t.moveToBack(),this.layer.overlayFocus.moveToFront(),new up.FragmentFocus({fragment:this.content,layer:this.layer,autoMeans:["autofocus","layer"]}).process(this.options.focus)},r.prototype.handleScroll=function(){var t=n(n({},this.options),{fragment:this.content,layer:this.layer,autoMeans:["hash","layer"]});new up.FragmentScrolling(t).process(this.options.scroll)},r.prototype.emitOpenEvent=function(){return up.emit("up:layer:open",{origin:this.origin,baseLayer:this.baseLayer,layerOptions:this.options,log:"Opening new overlay"})},r.prototype.emitOpenedEvent=function(){return this.layer.emit("up:layer:opened",{origin:this.origin,callback:this.layer.callback("onOpened"),log:"Opened new "+this.layer})},r}(up.Change.Addition)},1752:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Change.Removal=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(up.Change)},9441:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},i=up.util,s=up.element;up.Change.UpdateLayer=function(t){function u(e){var n=this;return e=up.RenderOptions.finalize(e),(n=t.call(this,e)||this).layer=e.layer,n.target=e.target,n.placement=e.placement,n.context=e.context,n.parseSteps(),n}return e(u,t),u.prototype.preflightProps=function(){return this.matchPreflight(),{layer:this.layer,mode:this.layer.mode,context:i.merge(this.layer.context,this.context),target:this.bestPreflightSelector()}},u.prototype.bestPreflightSelector=function(){return this.matchPreflight(),i.map(this.steps,"selector").join(", ")||":none"},u.prototype.execute=function(t){var e=this;this.responseDoc=t,this.matchPostflight(),up.puts("up.render()",'Updating "'+this.bestPreflightSelector()+'" in '+this.layer),this.options.title=this.improveHistoryValue(this.options.title,this.responseDoc.getTitle()),this.setScrollAndFocusOptions(),this.options.saveScroll&&up.viewport.saveScroll({layer:this.layer}),this.options.peel&&this.layer.peel(),i.assign(this.layer.context,this.context),"auto"===this.options.history&&(this.options.history=this.hasAutoHistory()),this.options.history&&this.layer.updateHistory(this.options),this.handleLayerChangeRequests();var n=this.steps.map((function(t){return e.executeStep(t)}));return Promise.all(n).then((function(){return e.abortWhenLayerClosed(),e.onFinished()})),new up.RenderResult({layer:this.layer,fragments:i.map(this.steps,"newElement")})},u.prototype.executeStep=function(t){return r(this,void 0,void 0,(function(){var e,r,i,u,a,c,p,l,f=this;return o(this,(function(o){switch(o.label){case 0:switch(this.setSource(t),t.placement){case"swap":return[3,1];case"content":return[3,6];case"before":case"after":return[3,9]}return[3,13];case 1:return(e=this.findKeepPlan(t))?(up.fragment.emitKept(e),this.handleFocus(t.oldElement,t),[4,this.handleScroll(t.oldElement,t)]):[3,3];case 2:return o.sent(),[3,5];case 3:return this.transferKeepableElements(t),r=t.oldElement.parentNode,i=n(n({},t),{beforeStart:function(){up.fragment.markAsDestroying(t.oldElement)},afterInsert:function(){f.responseDoc.finalizeElement(t.newElement),up.hello(t.newElement,t)},beforeDetach:function(){up.syntax.clean(t.oldElement,{layer:f.layer})},afterDetach:function(){s.remove(t.oldElement),up.fragment.emitDestroyed(t.oldElement,{parent:r,log:!1})},scrollNew:function(){return f.handleFocus(t.newElement,t),f.handleScroll(t.newElement,t)}}),[4,up.morph(t.oldElement,t.newElement,t.transition,i)];case 4:o.sent(),o.label=5;case 5:return[3,14];case 6:return u=s.wrapChildren(t.oldElement),a=s.wrapChildren(t.newElement),c=n(n({},t),{placement:"swap",oldElement:u,newElement:a,focus:!1}),[4,this.executeStep(c)];case 7:return o.sent(),s.unwrap(a),[4,this.handleFocus(t.oldElement,t)];case 8:return o.sent(),[3,14];case 9:return p=s.wrapChildren(t.newElement),l="before"===t.placement?"afterbegin":"beforeend",t.oldElement.insertAdjacentElement(l,p),this.responseDoc.finalizeElement(p),up.hello(p,t),this.handleFocus(p,t),[4,this.handleScroll(p,t)];case 10:return o.sent(),[4,up.animate(p,t.transition,t)];case 11:return o.sent(),[4,s.unwrap(p)];case 12:return o.sent(),[3,14];case 13:up.fail("Unknown placement: %o",t.placement),o.label=14;case 14:return[2]}}))}))},u.prototype.findKeepPlan=function(t){if(t.keep){var e=t.oldElement,n=t.newElement,r=s.booleanOrStringAttr(e,"up-keep");if(r){!0===r&&(r="&");var o,i={layer:this.layer,origin:e};if((o=t.descendantsOnly?up.fragment.get(n,r,i):up.fragment.subtree(n,r,i)[0])&&s.matches(o,"[up-keep]")){var u={oldElement:e,newElement:o,newData:up.syntax.data(o)};if(!up.fragment.emitKeep(u).defaultPrevented)return u}}}},u.prototype.transferKeepableElements=function(t){var e=[];if(t.keep)for(var r=0,o=t.oldElement.querySelectorAll("[up-keep]");r<o.length;r++){var i=o[r],u=this.findKeepPlan(n(n({},t),{oldElement:i,descendantsOnly:!0}));if(u){var a=i.cloneNode(!0);s.replace(i,a),s.replace(u.newElement,i),e.push(u)}}t.keepPlans=e},u.prototype.parseSteps=function(){this.steps=[];for(var t=0,e=i.splitValues(this.target,",");t<e.length;t++){var r=e[t];if(":none"!==r){var o=r.match(/^(.+?)(?::(before|after))?$/);if(!o)throw up.error.invalidSelector(r);var s=n(n({},this.options),{selector:o[1],placement:o[2]||this.placement||"swap"});this.steps.push(s)}}},u.prototype.matchPreflight=function(){if(!this.matchedPreflight){for(var t=0,e=this.steps;t<e.length;t++){var n=e[t],r=new up.FragmentFinder(n);if(n.oldElement||(n.oldElement=r.find()),!n.oldElement)throw this.notApplicable('Could not find element "'+this.target+'" in current page')}this.resolveOldNesting(),this.matchedPreflight=!0}},u.prototype.matchPostflight=function(){if(!this.matchedPostflight){this.matchPreflight();for(var t=0,e=this.steps;t<e.length;t++){var n=e[t],r=this.responseDoc.select(n.selector);if(!r)throw this.notApplicable('Could not find element "'+this.target+'" in server response');n.newElement=r}this.options.hungry&&this.addHungrySteps(),this.resolveOldNesting(),this.matchedPostflight=!0}},u.prototype.addHungrySteps=function(){for(var t=0,e=up.fragment.all(up.radio.hungrySelector(),this.options);t<e.length;t++){var n=e[t],r=up.fragment.toTarget(n),o=this.responseDoc.select(r);if(o){var i={selector:r,oldElement:n,newElement:o,transition:s.booleanOrStringAttr(n,"transition"),placement:"swap"};this.steps.push(i)}}},u.prototype.containedByRivalStep=function(t,e){return i.some(t,(function(t){return t!==e&&("swap"===t.placement||"content"===t.placement)&&t.oldElement.contains(e.oldElement)}))},u.prototype.resolveOldNesting=function(){var t=this,e=i.uniqBy(this.steps,"oldElement");e=i.reject(e,(function(n){return t.containedByRivalStep(e,n)})),this.steps=e},u.prototype.setScrollAndFocusOptions=function(){var t=this;this.steps.forEach((function(e,n){n>0&&(e.scroll=!1,e.focus=!1),"swap"!==e.placement&&"content"!==e.placement||(e.scrollBehavior="auto",t.focusCapsule||(t.focusCapsule=up.FocusCapsule.preserveWithin(e.oldElement)))}))},u.prototype.handleFocus=function(t,e){return new up.FragmentFocus(n(n({},e),{fragment:t,layer:this.layer,focusCapsule:this.focusCapsule,autoMeans:up.fragment.config.autoFocus})).process(e.focus)},u.prototype.handleScroll=function(t,e){return new up.FragmentScrolling(n(n({},e),{fragment:t,layer:this.layer,autoMeans:up.fragment.config.autoScroll})).process(e.scroll)},u.prototype.hasAutoHistory=function(){var t=i.map(this.steps,"oldElement");return i.some(t,(function(t){return up.fragment.hasAutoHistory(t)}))},u}(up.Change.Addition)},1569:function(){var t=up.util,e=up.element;up.CompilerPass=function(){function n(t,e,n){void 0===n&&(n={}),this.root=t,this.compilers=e,this.skipSubtrees=n.skip,this.skipSubtrees.length&&this.root.querySelector("[up-keep]")||(this.skipSubtrees=void 0),this.layer=n.layer||up.layer.get(this.root)||up.layer.current,this.errors=[]}return n.prototype.run=function(){var t=this;if(up.puts("up.hello()","Compiling fragment %o",this.root),this.layer.asCurrent((function(){for(var e=0,n=t.compilers;e<n.length;e++){var r=n[e];t.runCompiler(r)}})),this.errors.length)throw up.error.failed("Errors while compiling",{errors:this.errors})},n.prototype.runCompiler=function(t){var e,n,r=this.select(t.selector);if(r.length){if(t.isDefault||up.puts("up.hello()",'Compiling "%s" on %d element(s)',t.selector,r.length),t.batch)this.compileBatch(t,r);else for(var o=0,i=r;o<i.length;o++){var s=i[o];this.compileOneElement(t,s)}return null===(n=(e=up.migrate).postCompile)||void 0===n?void 0:n.call(e,r,t)}},n.prototype.compileOneElement=function(t,e){var n=[t.jQuery?up.browser.jQuery(e):e];if(1!==t.length){var r=up.syntax.data(e);n.push(r)}var o=this.applyCompilerFunction(t,e,n),i=this.destructorPresence(o);i&&up.destructor(e,i)},n.prototype.compileBatch=function(e,n){var r=[e.jQuery?up.browser.jQuery(n):n];if(1!==e.length){var o=t.map(n,up.syntax.data);r.push(o)}var i=this.applyCompilerFunction(e,n,r);this.destructorPresence(i)&&up.fail("Compilers with { batch: true } cannot return destructors")},n.prototype.applyCompilerFunction=function(t,e,n){try{return t.apply(e,n)}catch(t){this.errors.push(t),up.log.error("up.hello()","While compiling %o: %o",e,t),up.error.emitGlobal(t)}},n.prototype.destructorPresence=function(e){if(t.isFunction(e)||t.isArray(e)&&t.every(e,t.isFunction))return e},n.prototype.select=function(n){var r=this,o=e.subtree(this.root,t.evalOption(n));return this.skipSubtrees&&(o=t.reject(o,(function(t){return r.isInSkippedSubtree(t)}))),o},n.prototype.isInSkippedSubtree=function(e){var n;return!!t.contains(this.skipSubtrees,e)||!!(n=e.parentElement)&&this.isInSkippedSubtree(n)},n}()},3742:function(){var t=up.util;up.Config=function(){function e(t){void 0===t&&(t=function(){return{}}),this.blueprintFn=t,this.reset()}return e.prototype.reset=function(){t.assign(this,this.blueprintFn())},e}()},2737:function(){var t=up.util,e=up.element;up.CSSTransition=function(){function n(e,n,r){this.element=e,this.lastFrameKebab=n,this.lastFrameKeysKebab=Object.keys(this.lastFrameKebab),t.some(this.lastFrameKeysKebab,(function(t){return t.match(/A-Z/)}))&&up.fail("Animation keys must be kebab-case"),this.finishEvent=r.finishEvent,this.duration=r.duration,this.easing=r.easing,this.finished=!1}return n.prototype.start=function(){return 0===this.lastFrameKeysKebab.length?(this.finished=!0,Promise.resolve()):(this.deferred=t.newDeferred(),this.pauseOldTransition(),this.startTime=new Date,this.startFallbackTimer(),this.listenToFinishEvent(),this.listenToTransitionEnd(),this.startMotion(),this.deferred.promise())},n.prototype.listenToFinishEvent=function(){this.finishEvent&&(this.stopListenToFinishEvent=up.on(this.element,this.finishEvent,this.onFinishEvent.bind(this)))},n.prototype.onFinishEvent=function(t){t.stopPropagation(),this.finish()},n.prototype.startFallbackTimer=function(){var e=this;this.fallbackTimer=t.timer(this.duration+100,(function(){e.finish()}))},n.prototype.stopFallbackTimer=function(){clearTimeout(this.fallbackTimer)},n.prototype.listenToTransitionEnd=function(){this.stopListenToTransitionEnd=up.on(this.element,"transitionend",this.onTransitionEnd.bind(this))},n.prototype.onTransitionEnd=function(e){if(e.target===this.element&&!(new Date-this.startTime<=.25*this.duration)){var n=e.propertyName;t.contains(this.lastFrameKeysKebab,n)&&this.finish()}},n.prototype.finish=function(){var t,n;this.finished||(this.finished=!0,this.stopFallbackTimer(),null===(t=this.stopListenToFinishEvent)||void 0===t||t.call(this),null===(n=this.stopListenToTransitionEnd)||void 0===n||n.call(this),e.concludeCSSTransition(this.element),this.resumeOldTransition(),this.deferred.resolve())},n.prototype.pauseOldTransition=function(){var t=e.style(this.element,["transitionProperty","transitionDuration","transitionDelay","transitionTimingFunction"]);if(e.hasCSSTransition(t)){if("all"!==t.transitionProperty){var n=t.transitionProperty.split(/\s*,\s*/),r=e.style(this.element,n);this.setOldTransitionTargetFrame=e.setTemporaryStyle(this.element,r)}this.setOldTransition=e.concludeCSSTransition(this.element)}},n.prototype.resumeOldTransition=function(){var t,e;null===(t=this.setOldTransitionTargetFrame)||void 0===t||t.call(this),null===(e=this.setOldTransition)||void 0===e||e.call(this)},n.prototype.startMotion=function(){e.setStyle(this.element,{transitionProperty:Object.keys(this.lastFrameKebab).join(", "),transitionDuration:this.duration+"ms",transitionTimingFunction:this.easing}),e.setStyle(this.element,this.lastFrameKebab)},n}()},3635:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=up.util;up.DestructorPass=function(){function n(t,e){this.fragment=t,this.options=e,this.errors=[]}return n.prototype.run=function(){for(var t=0,n=this.selectCleanables();t<n.length;t++){var r=n[t],o=e.pluckKey(r,"upDestructors");if(o)for(var i=0,s=o;i<s.length;i++){var u=s[i];this.applyDestructorFunction(u,r)}r.classList.remove("up-can-clean")}if(this.errors.length)throw up.error.failed("Errors while destroying",{errors:this.errors})},n.prototype.selectCleanables=function(){var e=t(t({},this.options),{destroying:!0});return up.fragment.subtree(this.fragment,".up-can-clean",e)},n.prototype.applyDestructorFunction=function(t,e){try{t()}catch(t){this.errors.push(t),up.log.error("up.destroy()","While destroying %o: %o",e,t),up.error.emitGlobal(t)}},n}()},1906:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.util,o=up.element;up.EventEmitter=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.keys=function(){return["target","event","baseLayer","callback","log","ensureBubbles"]},i.prototype.emit=function(){var t=this;return this.logEmission(),this.baseLayer?this.baseLayer.asCurrent((function(){return t.dispatchEvent()})):this.dispatchEvent(),this.event},i.prototype.dispatchEvent=function(){var t;this.target.dispatchEvent(this.event),this.ensureBubbles&&o.isDetached(this.target)&&document.dispatchEvent(this.event),null===(t=this.callback)||void 0===t||t.call(this,this.event)},i.prototype.assertEmitted=function(){var t=this.emit();if(t.defaultPrevented)throw up.error.aborted("Event "+t.type+" was prevented")},i.prototype.logEmission=function(){var t;if(up.log.isEnabled()){var e,o=this.log;r.isArray(o)?(o=(t=o)[0],e=t.slice(1)):e=[];var i=this.event.type;r.isString(o)?up.puts.apply(up,n([i,o],e)):!1!==o&&up.puts(i,"Event "+i)}},i.fromEmitArgs=function(t,e){var n;void 0===e&&(e={});var i,s=r.extractOptions(t);return s=r.merge(e,s),r.isElementish(t[0])?s.target=o.get(t.shift()):t[0]instanceof up.Layer&&(s.layer=t.shift()),s.layer&&(i=up.layer.get(s.layer),null==s.target&&(s.target=i.element),null==s.baseLayer&&(s.baseLayer=i)),s.baseLayer&&(s.baseLayer=up.layer.get(s.baseLayer)),r.isString(s.target)?s.target=up.fragment.get(s.target,{layer:s.layer}):s.target||(s.target=document),(null===(n=t[0])||void 0===n?void 0:n.preventDefault)?(s.event=t[0],null==s.log&&(s.log=t[0].log)):r.isString(t[0])?s.event=up.event.build(t[0],s):s.event=up.event.build(s),new this(s)},i}(up.Record)},4158:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.util,o=up.element;up.EventListener=function(t){function i(e){var n=t.call(this,e)||this;return n.key=n.constructor.buildKey(e),n.isDefault=up.framework.booting,n.nativeCallback=n.nativeCallback.bind(n),n}return e(i,t),i.prototype.keys=function(){return["element","eventType","selector","callback","jQuery","guard","baseLayer","passive","once"]},i.prototype.bind=function(){var t,e,n=(e=this.element).upEventListeners||(e.upEventListeners={});n[this.key]&&up.fail("up.on(): The %o callback %o cannot be registered more than once",this.eventType,this.callback),n[this.key]=this,(t=this.element).addEventListener.apply(t,this.addListenerArgs())},i.prototype.addListenerArgs=function(){var t=[this.eventType,this.nativeCallback];return this.passive&&up.browser.canPassiveEventListener()&&t.push({passive:!0}),t},i.prototype.unbind=function(){var t,e=this.element.upEventListeners;e&&delete e[this.key],(t=this.element).removeEventListener.apply(t,this.addListenerArgs())},i.prototype.nativeCallback=function(t){var e;this.once&&this.unbind();var i=t.target;if(this.selector&&(i=o.closest(i,r.evalOption(this.selector))),(!this.guard||this.guard(t))&&i){var s=[t,this.jQuery?up.browser.jQuery(i):i],u=this.callback.length;if(1!==u&&2!==u){var a=up.syntax.data(i);s.push(a)}var c=(e=this.callback).bind.apply(e,n([i],s));this.baseLayer?this.baseLayer.asCurrent(c):c()}},i.fromElement=function(t){var e=t.element.upEventListeners;if(e)return e[this.buildKey(t)]},i.buildKey=function(t){var e;return(e=t.callback).upUid||(e.upUid=r.uid()),[t.eventType,t.selector,t.callback.upUid].join("|")},i.allNonDefault=function(t){var e=t.upEventListeners;if(e){var n=r.values(e);return r.reject(n,"isDefault")}return[]},i}(up.Record)},3139:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.EventListenerGroup=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return e(o,t),o.prototype.keys=function(){return["elements","eventTypes","selector","callback","jQuery","guard","baseLayer","passive","once"]},o.prototype.bind=function(){var t=[];return this.eachListenerAttributes((function(e){var n=new up.EventListener(e);return n.bind(),t.push(n.unbind.bind(n))})),r.sequence(t)},o.prototype.eachListenerAttributes=function(t){for(var e=0,n=this.elements;e<n.length;e++)for(var r=n[e],o=0,i=this.eventTypes;o<i.length;o++){var s=i[o];t(this.listenerAttributes(r,s))}},o.prototype.listenerAttributes=function(t,e){return n(n({},this.attributes()),{element:t,eventType:e})},o.prototype.unbind=function(){this.eachListenerAttributes((function(t){var e=up.EventListener.fromElement(t);e&&e.unbind()}))},o.fromBindArgs=function(t,e){var o,i=(t=r.copy(t)).pop();o=t[0].addEventListener?[t.shift()]:r.isJQuery(t[0])||r.isList(t[0])&&t[0][0].addEventListener?t.shift():[document];var s=r.splitValues(t.shift()),u=up.migrate.fixEventTypes;u&&(s=u(s));var a=r.extractOptions(t),c=t[0];return new this(n(n({elements:o,eventTypes:s,selector:c,callback:i},a),e))},o}(up.Record)},6866:function(){var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},e=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},n=up.util,r=up.element;up.FieldObserver=function(){function o(t,e,n){this.scheduleValues=this.scheduleValues.bind(this),this.isNewValues=this.isNewValues.bind(this),this.callback=n,this.fields=r.list(t),this.delay=e.delay,this.batch=e.batch}return o.prototype.start=function(){var t=this;this.scheduledValues=null,this.processedValues=this.readFieldValues(),this.currentTimer=void 0,this.callbackRunning=!1,this.unbind=up.on(this.fields,"input change",(function(){return t.check()}))},o.prototype.stop=function(){this.unbind(),this.cancelTimer()},o.prototype.cancelTimer=function(){clearTimeout(this.currentTimer),this.currentTimer=void 0},o.prototype.scheduleTimer=function(){var t=this;this.cancelTimer(),this.currentTimer=n.timer(this.delay,(function(){t.currentTimer=void 0,t.requestCallback()}))},o.prototype.scheduleValues=function(t){this.scheduledValues=t,this.scheduleTimer()},o.prototype.isNewValues=function(t){return!n.isEqual(t,this.processedValues)&&!n.isEqual(this.scheduledValues,t)},o.prototype.requestCallback=function(){return t(this,void 0,void 0,(function(){var t,r,o,i;return e(this,(function(e){switch(e.label){case 0:if(null===this.scheduledValues||this.currentTimer||this.callbackRunning)return[3,2];if(t=this.changedValues(this.processedValues,this.scheduledValues),this.processedValues=this.scheduledValues,this.scheduledValues=null,this.callbackRunning=!0,r=[],this.batch)r.push(this.callback(t));else for(o in t)i=t[o],r.push(this.callback(i,o));return[4,n.allSettled(r)];case 1:e.sent(),this.callbackRunning=!1,this.requestCallback(),e.label=2;case 2:return[2]}}))}))},o.prototype.changedValues=function(t,e){var r={},o=Object.keys(t);o=o.concat(Object.keys(e));for(var i=0,s=o=n.uniq(o);i<s.length;i++){var u=s[i],a=t[u],c=e[u];n.isEqual(a,c)||(r[u]=c)}return r},o.prototype.readFieldValues=function(){return up.Params.fromFields(this.fields).toObject()},o.prototype.check=function(){var t=this.readFieldValues();this.isNewValues(t)&&this.scheduleValues(t)},o}()},665:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.element,r=["selectionStart","selectionEnd","scrollLeft","scrollTop"];function o(t,e){for(var n=0,o=r;n<o.length;n++){var i=o[n];try{e[i]=t[i]}catch(t){}}}function i(t){var e=document.activeElement;if(n.isInSubtree(t,e))return e}up.FocusCapsule=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return e(s,t),s.prototype.keys=function(){return["selector","oldElement"].concat(r)},s.prototype.restore=function(t,e){if(this.wasLost()){var r=n.get(t,this.selector);return r?(o(this,r),up.focus(r,e),!0):void 0}},s.preserveWithin=function(t){var e=i(t);if(e){var n={oldElement:t,selector:up.fragment.toTarget(e)};return o(e,n),new this(n)}},s.prototype.wasLost=function(){return!i(this.oldElement)},s}(up.Record)},2587:function(){var t=/^([^ >+(]+) (.+)$/;up.FragmentFinder=function(){function e(t){this.options=t,this.origin=this.options.origin,this.selector=this.options.selector,this.layer=this.options.layer}return e.prototype.find=function(){return this.findAroundOrigin()||this.findInLayer()},e.prototype.findAroundOrigin=function(){if(this.origin&&up.fragment.config.matchAroundOrigin&&!up.element.isDetached(this.origin))return this.findClosest()||this.findInVicinity()},e.prototype.findClosest=function(){return up.fragment.closest(this.origin,this.selector,this.options)},e.prototype.findInVicinity=function(){var e=this.selector.match(t);if(e){var n=up.fragment.closest(this.origin,e[1],this.options);if(n)return up.fragment.getDumb(n,e[2])}},e.prototype.findInLayer=function(){return up.fragment.getDumb(this.selector,this.options)},e}()},7031:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util,r=up.element,o={preventScroll:!0};up.FragmentFocus=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.keys=function(){return t.prototype.keys.call(this).concat(["hash","focusCapsule"])},i.prototype.processPrimitive=function(t){switch(t){case"keep":return this.restoreFocus();case"target":case!0:return this.focusElement(this.fragment);case"layer":return this.focusElement(this.layer.getFocusElement());case"main":return this.focusSelector(":main");case"hash":return this.focusHash();case"autofocus":return this.autofocus();default:if(n.isString(t))return this.focusSelector(t)}},i.prototype.processElement=function(t){return this.focusElement(t)},i.prototype.resolveCondition=function(e){return"lost"===e?this.wasFocusLost():t.prototype.resolveCondition.call(this,e)},i.prototype.focusSelector=function(t){var e=this.findSelector(t);if(e)return this.focusElement(e)},i.prototype.restoreFocus=function(){var t;return null===(t=this.focusCapsule)||void 0===t?void 0:t.restore(this.fragment,o)},i.prototype.autofocus=function(){var t=r.subtree(this.fragment,"[autofocus]")[0];if(t)return up.focus(t,o),!0},i.prototype.focusElement=function(t){return up.viewport.makeFocusable(t),up.focus(t,o),!0},i.prototype.focusHash=function(){var t=up.viewport.firstHashTarget(this.hash,{layer:this.layer});if(t)return this.focusElement(t)},i.prototype.wasFocusLost=function(){var t;return null===(t=this.focusCapsule)||void 0===t?void 0:t.wasLost()},i}(up.FragmentProcessor)},2828:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.FragmentProcessor=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.keys=function(){return["fragment","autoMeans","origin","layer"]},r.prototype.process=function(t){return this.tryProcess(t)},r.prototype.tryProcess=function(t){var e=this;if(n.isArray(t))return n.find(t,(function(t){return e.tryProcess(t)}));if(n.isFunction(t))return this.tryProcess(t(this.fragment,this.attributes()));if(n.isElement(t))return this.processElement();if(n.isString(t)){if("auto"===t)return this.tryProcess(this.autoMeans);var r=t.match(/^(.+?)-if-(.+?)$/);if(r)return this.resolveCondition(r[2])&&this.process(r[1])}return this.processPrimitive(t)},r.prototype.resolveCondition=function(t){if("main"===t)return up.fragment.contains(this.fragment,":main")},r.prototype.findSelector=function(t){var e={layer:this.layer,origin:this.origin},n=up.fragment.get(this.fragment,t,e)||up.fragment.get(t,e);if(n)return n;up.warn("up.render()",'Could not find an element matching "%s"',t)},r}(up.Record)},4850:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.util;up.FragmentScrolling=function(t){function o(e){var n,r;return null===(r=(n=up.migrate).handleScrollOptions)||void 0===r||r.call(n,e),t.call(this,e)||this}return e(o,t),o.prototype.keys=function(){return t.prototype.keys.call(this).concat(["hash","mode","revealTop","revealMax","revealSnap","scrollBehavior","scrollSpeed"])},o.prototype.process=function(e){return t.prototype.process.call(this,e)||Promise.resolve()},o.prototype.processPrimitive=function(t){switch(t){case"reset":return this.reset();case"layer":return this.revealLayer();case"main":return this.revealSelector(":main");case"restore":return this.restore();case"hash":return this.hash&&up.viewport.revealHash(this.hash,this.attributes());case"target":case"reveal":case!0:return this.revealElement(this.fragment);default:if(r.isString(t))return this.revealSelector(t)}},o.prototype.processElement=function(t){return this.revealElement(t)},o.prototype.revealElement=function(t){return up.reveal(t,this.attributes())},o.prototype.revealSelector=function(t){var e=this.findSelector(t);if(e)return this.revealElement(e)},o.prototype.revealLayer=function(){return this.revealElement(this.layer.getBoxElement())},o.prototype.reset=function(){return up.viewport.resetScroll(n(n({},this.attributes()),{around:this.fragment}))},o.prototype.restore=function(){return up.viewport.restoreScroll(n(n({},this.attributes()),{around:this.fragment}))},o}(up.FragmentProcessor)},6267:function(){var t=up.util,e=up.element;up.HTMLWrapper=function(){function n(t){this.tagName=t;var e="<"+this.tagName+"[^>]*>",n="</"+this.tagName+">";this.pattern=new RegExp(e+"(.|\\s)*?"+n,"ig"),this.attrName="up-wrapped-"+this.tagName}return n.prototype.strip=function(t){return t.replace(this.pattern,"")},n.prototype.wrap=function(t){return t.replace(this.pattern,this.wrapMatch.bind(this))},n.prototype.wrapMatch=function(e){return this.didWrap=!0,'<meta name="'+this.attrName+'" value="'+t.escapeHTML(e)+'">'},n.prototype.unwrap=function(t){if(this.didWrap)for(var n=0,r=t.querySelectorAll("meta[name='"+this.attrName+"']");n<r.length;n++){var o=r[n],i=o.getAttribute("value"),s=e.createFromHTML(i);e.replace(o,s)}},n}()},7956:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},r=up.element,o=up.util;up.Layer=function(t){function i(e){void 0===e&&(e={});var n=t.call(this,e)||this;if(!n.mode)throw"missing { mode } option";return n}return e(i,t),i.prototype.keys=function(){return["element","stack","history","mode","context","lastScrollTops"]},i.prototype.defaults=function(){return{context:{},lastScrollTops:new up.Cache({size:30,key:up.history.normalizeURL})}},i.prototype.setupHandlers=function(){up.link.convertClicks(this)},i.prototype.teardownHandlers=function(){},i.prototype.mainTargets=function(){return up.layer.mainTargets(this.mode)},i.prototype.sync=function(){},i.prototype.accept=function(){throw up.error.notImplemented()},i.prototype.dismiss=function(){throw up.error.notImplemented()},i.prototype.peel=function(t){this.stack.peel(this,t)},i.prototype.evalOption=function(t){return o.evalOption(t,this)},i.prototype.isCurrent=function(){return this.stack.isCurrent(this)},i.prototype.isFront=function(){return this.stack.isFront(this)},i.prototype.isRoot=function(){return this.stack.isRoot(this)},i.prototype.isOverlay=function(){return this.stack.isOverlay(this)},i.prototype.isOpen=function(){return this.stack.isOpen(this)},i.prototype.isClosed=function(){return this.stack.isClosed(this)},Object.defineProperty(i.prototype,"parent",{get:function(){return this.stack.parentOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"child",{get:function(){return this.stack.childOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ancestors",{get:function(){return this.stack.ancestorsOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"descendants",{get:function(){return this.stack.descendantsOf(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"index",{get:function(){return this.stack.indexOf(this)},enumerable:!1,configurable:!0}),i.prototype.getContentElement=function(){return this.contentElement||this.element},i.prototype.getBoxElement=function(){return this.boxElement||this.element},i.prototype.getFocusElement=function(){return this.getBoxElement()},i.prototype.getFirstSwappableElement=function(){throw up.error.notImplemented()},i.prototype.contains=function(t){return r.closest(t,up.layer.anySelector())===this.element},i.prototype.on=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventListenerGroup(t).bind()},i.prototype.off=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventListenerGroup(t).unbind()},i.prototype.buildEventListenerGroup=function(t){var e=this;return up.EventListenerGroup.fromBindArgs(t,{guard:function(t){return e.containsEventTarget(t)},elements:[this.element],baseLayer:this})},i.prototype.containsEventTarget=function(t){return this.contains(t.target)},i.prototype.wasHitByMouseEvent=function(t){var e=document.elementFromPoint(t.clientX,t.clientY);return!e||this.contains(e)},i.prototype.buildEventEmitter=function(t){return up.EventEmitter.fromEmitArgs(t,{layer:this})},i.prototype.emit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventEmitter(t).emit()},i.prototype.isDetached=function(){return r.isDetached(this.element)},i.prototype.saveHistory=function(){this.isHistoryVisible()&&(this.savedTitle=document.title,this.savedLocation=up.history.location)},i.prototype.restoreHistory=function(){this.savedLocation&&(up.history.push(this.savedLocation),this.savedLocation=null),this.savedTitle&&(document.title=this.savedTitle,this.savedTitle=null)},i.prototype.asCurrent=function(t){return this.stack.asCurrent(this,t)},i.prototype.updateHistory=function(t){o.isString(t.title)&&(this.title=t.title),o.isString(t.location)&&(this.location=t.location)},i.prototype.isHistoryVisible=function(){return this.history&&(this.isRoot()||this.parent.isHistoryVisible())},i.prototype.showsLiveHistory=function(){return this.isHistoryVisible()&&this.isFront()&&(up.history.config.enabled||this.isRoot())},Object.defineProperty(i.prototype,"title",{get:function(){return this.showsLiveHistory()?document.title:this.savedTitle},set:function(t){this.savedTitle=t,this.showsLiveHistory()&&(document.title=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this.showsLiveHistory()?up.history.location:this.savedLocation},set:function(t){this.savedLocation!==(t=up.history.normalizeURL(t))&&(this.savedLocation=t,this.emit("up:layer:location:changed",{location:t,log:!1}),this.showsLiveHistory()&&up.history.push(t))},enumerable:!1,configurable:!0}),i.prototype.selector=function(t){return this.constructor.selector(t)},i.selector=function(t){throw up.error.notImplemented()},i.prototype.toString=function(){throw up.error.notImplemented()},i.prototype.affix=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.affix.apply(r,n([this.getFirstSwappableElement()],t))},i.prototype[o.isEqual.key]=function(t){return this.constructor===t.constructor&&this.element===t.element},i}(up.Record)},7101:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Cover=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="cover",e)},5580:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Drawer=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="drawer",e)},86:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Modal=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithViewport)).mode="modal",e)},7403:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=up.element,o=up.util;up.Layer.Overlay=function(t){function i(e){var n=t.call(this,e)||this;return!0===n.dismissable?n.dismissable=["button","key","outside"]:!1===n.dismissable?n.dismissable=[]:n.dismissable=o.splitValues(n.dismissable),n.acceptLocation&&(n.acceptLocation=new up.URLPattern(n.acceptLocation)),n.dismissLocation&&(n.dismissLocation=new up.URLPattern(n.dismissLocation)),n}return e(i,t),i.prototype.keys=function(){return t.prototype.keys.call(this).concat(["position","align","size","origin","class","backdrop","openAnimation","closeAnimation","openDuration","closeDuration","openEasing","closeEasing","backdropOpenAnimation","backdropCloseAnimation","dismissable","dismissLabel","dismissAriaLabel","onOpened","onAccept","onAccepted","onDismiss","onDismissed","acceptEvent","dismissEvent","acceptLocation","dismissLocation","opening"])},i.prototype.callback=function(t){var e=this[t];if(e)return e.bind(this)},i.prototype.createElement=function(t){this.nesting||(this.nesting=this.suggestVisualNesting());var e=o.compactObject(o.pick(this,["align","position","size","class","nesting"]));this.element=this.affixPart(t,null,e)},i.prototype.createBackdropElement=function(t){this.backdropElement=this.affixPart(t,"backdrop")},i.prototype.createViewportElement=function(t){this.viewportElement=this.affixPart(t,"viewport",{"up-viewport":""})},i.prototype.createBoxElement=function(t){this.boxElement=this.affixPart(t,"box")},i.prototype.createContentElement=function(t,e){this.contentElement=this.affixPart(t,"content"),this.contentElement.appendChild(e)},i.prototype.createDismissElement=function(t){return this.dismissElement=this.affixPart(t,"dismiss",{"up-dismiss":'":button"',"aria-label":this.dismissAriaLabel}),r.affix(this.dismissElement,'span[aria-hidden="true"]',{text:this.dismissLabel})},i.prototype.affixPart=function(t,e,n){return void 0===n&&(n={}),r.affix(t,this.selector(e),n)},i.selector=function(t){return o.compact(["up",this.mode,t]).join("-")},i.prototype.suggestVisualNesting=function(){var t=this.parent;return this.mode===t.mode?1+t.suggestVisualNesting():0},i.prototype.setupHandlers=function(){var e,n,r=this;t.prototype.setupHandlers.call(this),this.overlayFocus=new up.OverlayFocus(this),this.supportsDismissMethod("button")&&this.createDismissElement(this.getBoxElement()),this.supportsDismissMethod("outside")&&(this.unbindParentClicked=this.parent.on("up:click",(function(t,e){var n=r.origin&&r.origin.contains(e);r.onOutsideClicked(t,n)})),this.viewportElement&&up.on(this.viewportElement,"up:click",(function(t){t.target===r.viewportElement&&r.onOutsideClicked(t,!0)}))),this.supportsDismissMethod("key")&&(this.unbindEscapePressed=up.event.onEscape((function(t){return r.onEscapePressed(t)}))),this.registerClickCloser("up-accept",(function(t,e){r.accept(t,e)})),this.registerClickCloser("up-dismiss",(function(t,e){r.dismiss(t,e)})),null===(n=(e=up.migrate).registerLayerCloser)||void 0===n||n.call(e,this),this.registerEventCloser(this.acceptEvent,this.accept),this.registerEventCloser(this.dismissEvent,this.dismiss)},i.prototype.onOutsideClicked=function(t,e){e&&up.event.halt(t),this.dismiss(":outside")},i.prototype.onEscapePressed=function(t){if(this.isFront()){var e=up.form.focusedField();e?e.blur():this.supportsDismissMethod("key")&&(up.event.halt(t),this.dismiss(":key"))}},i.prototype.registerClickCloser=function(t,e){this.on("up:click","["+t+"]",(function(n){up.event.halt(n);var o=n.target,i=r.jsonAttr(o,t),s={origin:o},u=new up.OptionsParser(s,o);u.booleanOrString("animation"),u.string("easing"),u.number("duration"),u.string("confirm"),e(i,s)}))},i.prototype.registerEventCloser=function(t,e){var n=this;if(t)return this.on(t,(function(t){t.preventDefault(),e.call(n,t)}))},i.prototype.tryAcceptForLocation=function(){this.tryCloseForLocation(this.acceptLocation,this.accept)},i.prototype.tryDismissForLocation=function(){this.tryCloseForLocation(this.dismissLocation,this.dismiss)},i.prototype.tryCloseForLocation=function(t,e){var r,o;if(t&&(r=this.location)&&(o=t.recognize(r))){var i=n(n({},o),{location:r});e.call(this,i)}},i.prototype.teardownHandlers=function(){var e,n;t.prototype.teardownHandlers.call(this),null===(e=this.unbindParentClicked)||void 0===e||e.call(this),null===(n=this.unbindEscapePressed)||void 0===n||n.call(this),this.overlayFocus.teardown()},i.prototype.destroyElements=function(t){var e=this,r=n(n({},t),{animation:function(){return e.startCloseAnimation(t)},onFinished:function(){var n;e.onElementsRemoved(),null===(n=t.onFinished)||void 0===n||n.call(t)},log:!1});up.destroy(this.element,r)},i.prototype.onElementsRemoved=function(){},i.prototype.startAnimation=function(t){void 0===t&&(t={});var e,n=up.animate(this.getBoxElement(),t.boxAnimation,t);return this.backdrop&&!up.motion.isNone(t.boxAnimation)&&(e=up.animate(this.backdropElement,t.backdropAnimation,t)),Promise.all([n,e])},i.prototype.startOpenAnimation=function(t){var e,n=this;return void 0===t&&(t={}),this.startAnimation({boxAnimation:null!==(e=t.animation)&&void 0!==e?e:this.evalOption(this.openAnimation),backdropAnimation:"fade-in",easing:t.easing||this.openEasing,duration:t.duration||this.openDuration}).then((function(){return n.wasEverVisible=!0}))},i.prototype.startCloseAnimation=function(t){var e;void 0===t&&(t={});var n=this.wasEverVisible&&(null!==(e=t.animation)&&void 0!==e?e:this.evalOption(this.closeAnimation));return this.startAnimation({boxAnimation:n,backdropAnimation:"fade-out",easing:t.easing||this.closeEasing,duration:t.duration||this.closeDuration})},i.prototype.accept=function(t,e){return void 0===t&&(t=null),void 0===e&&(e={}),this.executeCloseChange("accept",t,e)},i.prototype.dismiss=function(t,e){return void 0===t&&(t=null),void 0===e&&(e={}),this.executeCloseChange("dismiss",t,e)},i.prototype.supportsDismissMethod=function(t){return o.contains(this.dismissable,t)},i.prototype.executeCloseChange=function(t,e,r){return r=n(n({},r),{verb:t,value:e,layer:this}),new up.Change.CloseLayer(r).execute()},i.prototype.getFirstSwappableElement=function(){return this.getContentElement().children[0]},i.prototype.toString=function(){return this.mode+" overlay"},i}(up.Layer)},6412:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.OverlayWithTether=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createElements=function(t){this.origin||up.fail("Missing { origin } option"),this.tether=new up.Tether({anchor:this.origin,align:this.align,position:this.position}),this.createElement(this.tether.parent),this.createContentElement(this.element,t),this.tether.start(this.element)},n.prototype.onElementsRemoved=function(){this.tether.stop()},n.prototype.sync=function(){this.isOpen()&&(this.isDetached()||this.tether.isDetached()?this.dismiss(":detached",{animation:!1,preventable:!1}):this.tether.sync())},n}(up.Layer.Overlay)},7965:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.OverlayWithViewport=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.getParentElement=function(){return document.body},e.prototype.createElements=function(t){this.shiftBody(),this.createElement(this.constructor.getParentElement()),this.backdrop&&this.createBackdropElement(this.element),this.createViewportElement(this.element),this.createBoxElement(this.viewportElement),this.createContentElement(this.boxElement,t)},e.prototype.onElementsRemoved=function(){this.unshiftBody()},e.prototype.shiftBody=function(){this.constructor.bodyShifter.shift()},e.prototype.unshiftBody=function(){this.constructor.bodyShifter.unshift()},e.prototype.sync=function(){this.isDetached()&&this.isOpen()&&this.constructor.getParentElement().appendChild(this.element)},e}(up.Layer.Overlay)).bodyShifter=new up.BodyShifter,e)},4552:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Layer.Popup=((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(up.Layer.OverlayWithTether)).mode="popup",e)},7771:function(){var t,e,n=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=up.util,o=up.element;up.Layer.Root=((e=function(t){function e(e){var n=t.call(this,e)||this;return n.setupHandlers(),n}return n(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return o.root},enumerable:!1,configurable:!0}),e.prototype.getFirstSwappableElement=function(){return document.body},e.selector=function(){return"html"},e.prototype.setupHandlers=function(){this.element.upHandlersApplied||(this.element.upHandlersApplied=!0,t.prototype.setupHandlers.call(this))},e.prototype.sync=function(){this.setupHandlers()},e.prototype.accept=function(){this.cannotCloseRoot()},e.prototype.dismiss=function(){this.cannotCloseRoot()},e.prototype.cannotCloseRoot=function(){throw up.error.failed("Cannot close the root layer")},e.prototype.reset=function(){r.assign(this,this.defaults())},e.prototype.toString=function(){return"root layer"},e}(up.Layer)).mode="root",e)},6066:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},n=up.util,r=up.element;up.LayerLookup=function(){function o(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];this.stack=e;var i=n.parseArgIntoOptions(r,"layer");if(!1!==i.normalizeLayerOptions&&up.layer.normalizeOptions(i),this.values=n.splitValues(i.layer),this.origin=i.origin,this.baseLayer=i.baseLayer||this.stack.current,n.isString(this.baseLayer)){var s=t(t({},i),{baseLayer:this.stack.current,normalizeLayerOptions:!1});this.baseLayer=new this.constructor(this.stack,this.baseLayer,s).first()}}return o.prototype.originLayer=function(){if(this.origin)return this.forElement(this.origin)},o.prototype.first=function(){return this.all()[0]},o.prototype.all=function(){var t=this,e=n.flatMap(this.values,(function(e){return t.resolveValue(e)}));return e=n.compact(e),n.uniq(e)},o.prototype.forElement=function(t){return t=r.get(t),n.find(this.stack.reversed(),(function(e){return e.contains(t)}))},o.prototype.forIndex=function(t){return this.stack[t]},o.prototype.resolveValue=function(t){if(t instanceof up.Layer)return t;if(n.isNumber(t))return this.forIndex(t);if(/^\d+$/.test(t))return this.forIndex(Number(t));if(n.isElementish(t))return this.forElement(t);switch(t){case"any":return e([this.baseLayer],this.stack.reversed());case"current":return this.baseLayer;case"closest":return this.stack.selfAndAncestorsOf(this.baseLayer);case"parent":return this.baseLayer.parent;case"ancestor":case"ancestors":return this.baseLayer.ancestors;case"child":return this.baseLayer.child;case"descendant":case"descendants":return this.baseLayer.descendants;case"new":return"new";case"root":return this.stack.root;case"overlay":case"overlays":return n.reverse(this.stack.overlays);case"front":return this.stack.front;case"origin":return this.originLayer();default:return up.fail("Unknown { layer } option: %o",t)}},o}()},6387:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},o=up.util;up.LayerStack=function(t){function i(){var e=t.call(this)||this;return Object.setPrototypeOf(e,up.LayerStack.prototype),e.currentOverrides=[],e.push(e.buildRoot()),e}return e(i,t),i.prototype.buildRoot=function(){return up.layer.build({mode:"root",stack:this})},i.prototype.remove=function(t){o.remove(this,t)},i.prototype.peel=function(t,e){for(var r=o.reverse(t.descendants),i=n(n({},e),{preventable:!1}),s=0,u=r;s<u.length;s++)u[s].dismiss(":peel",i)},i.prototype.reset=function(){this.peel(this.root,{animation:!1}),this.currentOverrides=[],this.root.reset()},i.prototype.isOpen=function(t){return t.index>=0},i.prototype.isClosed=function(t){return!this.isOpen(t)},i.prototype.parentOf=function(t){return this[t.index-1]},i.prototype.childOf=function(t){return this[t.index+1]},i.prototype.ancestorsOf=function(t){return o.reverse(this.slice(0,t.index))},i.prototype.selfAndAncestorsOf=function(t){return r([t],t.ancestors)},i.prototype.descendantsOf=function(t){return this.slice(t.index+1)},i.prototype.isRoot=function(t){return this[0]===t},i.prototype.isOverlay=function(t){return!this.isRoot(t)},i.prototype.isCurrent=function(t){return this.current===t},i.prototype.isFront=function(t){return this.front===t},i.prototype.get=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.getAll.apply(this,t)[0]},i.prototype.getAll=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(new((t=up.LayerLookup).bind.apply(t,r([void 0,this],e)))).all()},i.prototype.sync=function(){for(var t=0;t<this.length;t++)this[t].sync()},i.prototype.asCurrent=function(t,e){try{return this.currentOverrides.push(t),e()}finally{this.currentOverrides.pop()}},i.prototype.reversed=function(){return o.reverse(this)},i.prototype.dismissOverlays=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),e.dismissable=!1;for(var n=0,r=o.reverse(this.overlays);n<r.length;n++)r[n].dismiss(t,e)},i.prototype[o.copy.key]=function(){return o.copyArrayLike(this)},Object.defineProperty(i.prototype,"count",{get:function(){return this.length},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"root",{get:function(){return this[0]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"overlays",{get:function(){return this.root.descendants},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"current",{get:function(){return o.last(this.currentOverrides)||this.front},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"front",{get:function(){return o.last(this)},enumerable:!1,configurable:!0}),i}(Array)},5390:function(){up.LinkFeedbackURLs=function(){function t(t){var e=up.feedback.normalizeURL;if(this.isSafe=up.link.isSafe(t),this.isSafe){var n=t.getAttribute("href");n&&"#"!==n&&(this.href=e(n));var r=t.getAttribute("up-href");r&&(this.upHREF=e(r));var o=t.getAttribute("up-alias");o&&(this.aliasPattern=new up.URLPattern(o,e))}}return t.prototype.isCurrent=function(t){return this.isSafe&&!!(this.href&&this.href===t||this.upHREF&&this.upHREF===t||this.aliasPattern&&this.aliasPattern.test(t,!1))},t}()},2618:function(){var t=up.util,e=up.element;up.LinkPreloader=function(){function n(){this.considerPreload=this.considerPreload.bind(this)}return n.prototype.observeLink=function(t){var e=this;up.link.isSafe(t)&&(this.on(t,"mouseenter",(function(t){return e.considerPreload(t,!0)})),this.on(t,"mousedown touchstart",(function(t){return e.considerPreload(t)})),this.on(t,"mouseleave",(function(t){return e.stopPreload(t)})))},n.prototype.on=function(t,e,n){up.on(t,e,{passive:!0},n)},n.prototype.considerPreload=function(t,e){var n=t.target;n!==this.currentLink&&(this.reset(),this.currentLink=n,up.link.shouldFollowEvent(t,n)&&(e?this.preloadAfterDelay(n):this.preloadNow(n)))},n.prototype.stopPreload=function(t){if(t.target===this.currentLink)return this.reset()},n.prototype.reset=function(){var t;this.currentLink&&(clearTimeout(this.timer),(null===(t=this.currentRequest)||void 0===t?void 0:t.preload)&&this.currentRequest.abort(),this.currentLink=void 0,this.currentRequest=void 0)},n.prototype.preloadAfterDelay=function(n){var r,o=this,i=null!==(r=e.numberAttr(n,"up-delay"))&&void 0!==r?r:up.link.config.preloadDelay;this.timer=t.timer(i,(function(){return o.preloadNow(n)}))},n.prototype.preloadNow=function(t){var n=this;e.isDetached(t)?this.reset():(up.log.muteUncriticalRejection(up.link.preload(t,{onQueued:function(t){return n.currentRequest=t}})),this.queued=!0)},n}()},7792:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},r=up.util,o=up.element;up.MotionController=function(){function i(t){this.activeClass="up-"+t,this.dataKey="up-"+t+"-finished",this.selector="."+this.activeClass,this.finishEvent="up:"+t+":finish",this.finishCount=0,this.clusterCount=0}return i.prototype.startFunction=function(t,i,s){var u;return void 0===s&&(s={}),e(this,void 0,void 0,(function(){var e,a,c=this;return n(this,(function(n){switch(n.label){case 0:return t=o.list(t),e=function(){return up.log.muteUncriticalRejection(i())},s.trackMotion=null!==(u=s.trackMotion)&&void 0!==u?u:up.motion.isEnabled(),!1!==s.trackMotion?[3,2]:[4,r.microtask(e)];case 1:return n.sent(),[3,5];case 2:return s.trackMotion=!1,[4,this.finish(t)];case 3:return n.sent(),a=this.whileForwardingFinishEvent(t,e),this.markCluster(t,a),[4,a=a.then((function(){return c.unmarkCluster(t)}))];case 4:return[2,n.sent()];case 5:return[2]}}))}))},i.prototype.startMotion=function(t,e,n){void 0===n&&(n={});var r=up.on(t,this.finishEvent,(function(){return e.finish()})),o=this.startFunction(t,(function(){return e.start()}),n);return o.then(r)},i.prototype.finish=function(t){if(this.finishCount++,0===this.clusterCount||!up.motion.isEnabled())return Promise.resolve();t=this.expandFinishRequest(t);var e=r.map(t,this.finishOneElement.bind(this));return Promise.all(e)},i.prototype.expandFinishRequest=function(t){var e=this;return t?r.flatMap(t,(function(t){return o.list(o.closest(t,e.selector),o.all(t,e.selector))})):o.all(this.selector)},i.prototype.isActive=function(t){return t.classList.contains(this.activeClass)},i.prototype.finishOneElement=function(t){return this.emitFinishEvent(t),this.whenElementFinished(t)},i.prototype.emitFinishEvent=function(e,n){return void 0===n&&(n={}),n=t({target:e,log:!1},n),up.emit(this.finishEvent,n)},i.prototype.whenElementFinished=function(t){return t[this.dataKey]||Promise.resolve()},i.prototype.markCluster=function(t,e){this.clusterCount++;for(var n=0,r=t;n<r.length;n++){var o=r[n];o.classList.add(this.activeClass),o[this.dataKey]=e}},i.prototype.unmarkCluster=function(t){this.clusterCount--;for(var e=0,n=t;e<n.length;e++){var r=n[e];r.classList.remove(this.activeClass),delete r[this.dataKey]}},i.prototype.whileForwardingFinishEvent=function(t,e){var n=this;if(t.length<2)return e();var r=up.on(t,this.finishEvent,(function(e){if(!e.forwarded)for(var r=0,o=t;r<o.length;r++){var i=o[r];i!==e.target&&n.isActive(i)&&n.emitFinishEvent(i,{forwarded:!0})}}));return e().then(r)},i.prototype.reset=function(){return e(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,this.finish()];case 1:return t.sent(),this.finishCount=0,this.clusterCount=0,[2]}}))}))},i}()},1104:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=up.util,n=up.element;up.OptionsParser=function(){function r(t,e,n){this.options=t,this.element=e,this.fail=null==n?void 0:n.fail}return r.prototype.string=function(t,e){this.parse(n.attr,t,e)},r.prototype.boolean=function(t,e){this.parse(n.booleanAttr,t,e)},r.prototype.number=function(t,e){this.parse(n.numberAttr,t,e)},r.prototype.booleanOrString=function(t,e){this.parse(n.booleanOrStringAttr,t,e)},r.prototype.json=function(t,e){this.parse(n.jsonAttr,t,e)},r.prototype.parse=function(n,r,o){var i;void 0===o&&(o={});var s=e.wrapList(null!==(i=o.attr)&&void 0!==i?i:this.attrNameForKey(r)),u=this.options[r];if(this.element)for(var a=0,c=s;a<c.length;a++){var p=c[a];null!=u||(u=n(this.element,p))}null!=u||(u=o.default);var l,f=o.normalize;if(f&&(u=f(u)),e.isDefined(u)&&(this.options[r]=u),(o.fail||this.fail)&&(l=up.fragment.failKey(r))){var h=e.compact(e.map(s,this.deriveFailAttrName)),d=t(t({},o),{attr:h,fail:!1});this.parse(n,l,d)}},r.prototype.deriveFailAttrName=function(t){if(0===t.indexOf("up-"))return"up-fail-"+t.slice(3)},r.prototype.attrNameForKey=function(t){return"up-"+e.camelToKebabCase(t)},r}()},8665:function(){var t=up.element,e=up.util;up.OverlayFocus=function(){function n(t){this.layer=t,this.focusElement=this.layer.getFocusElement()}return n.prototype.moveToFront=function(){var e=this;this.enabled||(this.enabled=!0,this.untrapFocus=up.on("focusin",(function(t){return e.onFocus(t)})),this.unsetAttrs=t.setTemporaryAttrs(this.focusElement,{tabindex:"0",role:"dialog","aria-modal":"true"}),this.focusTrapBefore=t.affix(this.focusElement,"beforebegin","up-focus-trap[tabindex=0]"),this.focusTrapAfter=t.affix(this.focusElement,"afterend","up-focus-trap[tabindex=0]"))},n.prototype.moveToBack=function(){this.teardown()},n.prototype.teardown=function(){this.enabled&&(this.enabled=!1,this.untrapFocus(),this.unsetAttrs(),t.remove(this.focusTrapBefore),t.remove(this.focusTrapAfter))},n.prototype.onFocus=function(t){var e=t.target;this.processingFocusEvent||(this.processingFocusEvent=!0,e===this.focusTrapBefore?this.focusEnd():e!==this.focusTrapAfter&&this.layer.contains(e)||this.focusStart(),this.processingFocusEvent=!1)},n.prototype.focusStart=function(t){up.focus(this.focusElement,t)},n.prototype.focusEnd=function(){this.focusLastDescendant(this.layer.getBoxElement())||this.focusStart()},n.prototype.focusLastDescendant=function(t){for(var n=0,r=e.reverse(t.children);n<r.length;n++){var o=r[n];if(up.viewport.tryFocus(o)||this.focusLastDescendant(o))return!0}},n}()},3645:function(){var t=up.util,e=up.element;up.Params=function(){function n(t){this.clear(),this.addAll(t)}return n.prototype.clear=function(){this.entries=[]},n.prototype[t.copy.key]=function(){return new up.Params(this)},n.prototype.toObject=function(){for(var e={},n=0,r=this.entries;n<r.length;n++){var o=r[n],i=o.name,s=o.value;t.isBasicObjectProperty(i)||(this.isArrayKey(i)?(e[i]||(e[i]=[]),e[i].push(s)):e[i]=s)}return e},n.prototype.toArray=function(){return this.entries},n.prototype.toFormData=function(){for(var t=new FormData,e=0,n=this.entries;e<n.length;e++){var r=n[e];t.append(r.name,r.value)}return t.entries||(t.originalArray=this.entries),t},n.prototype.toQuery=function(){var e=t.map(this.entries,this.arrayEntryToQuery.bind(this));return(e=t.compact(e)).join("&")},n.prototype.arrayEntryToQuery=function(e){var n=e.value;if(!this.isBinaryValue(n)){var r=encodeURIComponent(e.name);return t.isGiven(n)&&(r+="=",r+=encodeURIComponent(n)),r}},n.prototype.isBinaryValue=function(t){return t instanceof Blob},n.prototype.hasBinaryValues=function(){var e=t.map(this.entries,"value");return t.some(e,this.isBinaryValue)},n.prototype.toURL=function(e){var n=[e,this.toQuery()];n=t.filter(n,t.isPresent);var r=t.contains(e,"?")?"&":"?";return n.join(r)},n.prototype.add=function(t,e){this.entries.push({name:t,value:e})},n.prototype.addAll=function(e){var n,r;t.isMissing(e)||(e instanceof this.constructor?(n=this.entries).push.apply(n,e.entries):t.isArray(e)?(r=this.entries).push.apply(r,e):t.isString(e)?this.addAllFromQuery(e):t.isFormData(e)?this.addAllFromFormData(e):t.isObject(e)?this.addAllFromObject(e):up.fail("Unsupport params type: %o",e))},n.prototype.addAllFromObject=function(e){for(var n in e)for(var r=e[n],o=0,i=t.isArray(r)?r:[r];o<i.length;o++){var s=i[o];this.add(n,s)}},n.prototype.addAllFromQuery=function(e){for(var n=0,r=e.split("&");n<r.length;n++){var o=r[n];if(o){var i=o.split("="),s=i[0],u=i[1];s=decodeURIComponent(s),u=t.isGiven(u)?decodeURIComponent(u):null,this.add(s,u)}}},n.prototype.addAllFromFormData=function(e){var n=this;t.eachIterator(e.entries(),(function(t){n.add.apply(n,t)}))},n.prototype.set=function(t,e){this.delete(t),this.add(t,e)},n.prototype.delete=function(e){this.entries=t.reject(this.entries,this.matchEntryFn(e))},n.prototype.matchEntryFn=function(t){return function(e){return e.name===t}},n.prototype.get=function(t){return this.isArrayKey(t)?this.getAll(t):this.getFirst(t)},n.prototype.getFirst=function(e){var n=t.find(this.entries,this.matchEntryFn(e));return null==n?void 0:n.value},n.prototype.getAll=function(e){if(this.isArrayKey(e))return this.getAll(e);var n=t.map(this.entries,this.matchEntryFn(e));return t.map(n,"value")},n.prototype.isArrayKey=function(e){return t.endsWith(e,"[]")},n.prototype[t.isBlank.key]=function(){return 0===this.entries.length},n.fromForm=function(t){return t=up.fragment.get(t),this.fromFields(up.form.fields(t))},n.fromFields=function(e){for(var n=new this,r=0,o=t.wrapList(e);r<o.length;r++){var i=o[r];n.addField(i)}return n},n.prototype.addField=function(t){var n=(t=e.get(t)).name;if(n&&!t.disabled){var r=t.tagName,o=t.type;if("SELECT"===r)for(var i=0,s=t.querySelectorAll("option");i<s.length;i++){var u=s[i];u.selected&&this.add(n,u.value)}else if("checkbox"===o||"radio"===o)t.checked&&this.add(n,t.value);else{if("file"!==o)return this.add(n,t.value);for(var a=0,c=t.files;a<c.length;a++){var p=c[a];this.add(n,p)}}}},n.prototype[t.isEqual.key]=function(e){return this.constructor===e.constructor&&t.isEqual(this.entries,e.entries)},n.fromURL=function(e){var n=new this,r=t.parseURL(e).search;return r&&(r=r.replace(/^\?/,""),n.addAll(r)),n},n.stripURL=function(e){return t.normalizeURL(e,{search:!1})},n}()},7782:function(){var t=up.element;up.ProgressBar=function(){function e(){this.step=0,this.element=t.affix(document.body,"up-progress-bar"),this.element.style.transition="width 300ms ease-out",this.moveTo(0),up.element.paint(this.element),this.width=31,this.nextStep()}return e.prototype.nextStep=function(){var t;t=this.width<80?Math.random()<.15?7+5*Math.random():1.5+.5*Math.random():.13*(100-this.width)*Math.random(),this.moveTo(this.width+t),this.step++;var e=300+40*this.step;this.timeout=setTimeout(this.nextStep.bind(this),e)},e.prototype.moveTo=function(t){this.width=t,this.element.style.width=t+"vw"},e.prototype.destroy=function(){clearTimeout(this.timeout),t.remove(this.element)},e.prototype.conclude=function(){clearTimeout(this.timeout),this.moveTo(100),setTimeout(this.destroy.bind(this),300)},e}()},2406:function(){var t=up.util;up.Record=function(){function e(e){t.assign(this,this.defaults(e),this.attributes(e))}return e.prototype.keys=function(){throw"Return an array of keys"},e.prototype.defaults=function(t){return{}},e.prototype.attributes=function(e){return void 0===e&&(e=this),t.pick(e,this.keys())},e.prototype[t.copy.key]=function(){return this.variant()},e.prototype.variant=function(e){return void 0===e&&(e={}),new this.constructor(t.merge(this.attributes(),e))},e.prototype[t.isEqual.key]=function(e){return this.constructor===e.constructor&&t.isEqual(this.attributes(),e.attributes())},e}()},1279:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Rect=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["left","top","width","height"]},Object.defineProperty(n.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return this.left+this.width},enumerable:!1,configurable:!0}),n.fromElement=function(t){return new this(t.getBoundingClientRect())},n}(up.Record)},2705:function(){var t,e,n,r,o,i=up.util;up.RenderOptions=(t={hungry:!0,keep:!0,source:!0,saveScroll:!0,fail:"auto"},e={solo:!1,confirm:!1,feedback:!1},n=["url","method","origin","headers","params","cache","clearCache","fallback","solo","confirm","feedback","origin","baseLayer","fail"].concat(["keep","hungry","history","source","saveScroll","navigate"]),r=["url","content","fragment","document"],o=["history","focus","scroll"],{preprocess:function(n){var r,s;null===(s=(r=up.migrate).preprocessRenderOptions)||void 0===s||s.call(r,n);var u=i.merge(t,function(t){if(t.navigate)return up.fragment.config.navigateOptions}(n));return i.merge(i.omit(u,o),{defaults:u},n,function(t){if(t.preload)return e}(n))},finalize:function(t,e){return i.merge(t.defaults,e,t)},assertContentGiven:function(t){i.some(r,(function(e){return i.isGiven(t[e])}))||(t.defaultToEmptyContent?t.content="":up.fail("up.render() needs either { "+r.join(", ")+" } option"))},deriveFailOptions:function(t){return i.merge(t.defaults,i.pick(t,n),function(t){var e={};for(var n in t){var r=t[n],o=up.fragment.successKey(n);o&&(e[o]=r)}return e}(t))}})},606:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.RenderResult=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["fragments","layer"]},n}(up.Record)},5437:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.Request=function(t){function r(e){var r=t.call(this,e)||this;return r.params=new up.Params(r.params),r.headers||(r.headers={}),r.preload&&(r.cache=!0),null==r.wrapMethod&&(r.wrapMethod=up.network.config.wrapMethod),r.normalizeForCaching(),e.basic||(r.layer=up.layer.get(r.layer),r.failLayer=up.layer.get(r.failLayer||r.layer),r.context||(r.context=r.layer.context||{}),r.failContext||(r.failContext=r.failLayer.context||{}),r.mode||(r.mode=r.layer.mode),r.failMode||(r.failMode=r.failLayer.mode),r.deferred=n.newDeferred(),r.state="new"),r}return e(r,t),r.prototype.keys=function(){return["method","url","hash","params","target","failTarget","headers","timeout","preload","cache","clearCache","layer","mode","context","failLayer","failMode","failContext","origin","solo","queueTime","wrapMethod","contentType","payload","onQueued"]},r.prototype.followState=function(t){n.delegate(this,["deferred","state","preload"],(function(){return t}))},r.prototype.normalizeForCaching=function(){this.method=n.normalizeMethod(this.method),this.extractHashFromURL(),this.transferParamsToURL(),this.url=n.normalizeURL(this.url)},r.prototype.evictExpensiveAttrs=function(){var t=this;n.task((function(){return t.layer=void 0,t.failLayer=void 0,t.origin=void 0}))},r.prototype.extractHashFromURL=function(){var t,e=null===(t=this.url)||void 0===t?void 0:t.match(/^([^#]*)(#.+)$/);if(e)return this.url=e[1],this.hash=e[2]},r.prototype.transferParamsToURL=function(){!this.url||this.allowsPayload()||n.isBlank(this.params)||(this.url=this.params.toURL(this.url),this.params.clear())},r.prototype.isSafe=function(){return up.network.isSafeMethod(this.method)},r.prototype.allowsPayload=function(){return n.methodAllowsPayload(this.method)},r.prototype.will302RedirectWithGET=function(){return this.isSafe()||"POST"===this.method},r.prototype.willCache=function(){return"auto"===this.cache?up.network.config.autoCache(this):this.cache},r.prototype.runQueuedCallbacks=function(){var t,e=this;n.always(this,(function(){return e.evictExpensiveAttrs()})),null===(t=this.onQueued)||void 0===t||t.call(this,this)},r.prototype.load=function(){var t=this;"new"===this.state&&(this.state="loading",this.xhr=new up.Request.XHRRenderer(this).buildAndSend({onload:function(){return t.onXHRLoad()},onerror:function(){return t.onXHRError()},ontimeout:function(){return t.onXHRTimeout()},onabort:function(){return t.onXHRAbort()}}))},r.prototype.loadPage=function(){up.network.abort(),new up.Request.FormRenderer(this).buildAndSubmit()},r.prototype.onXHRLoad=function(){var t=this.extractResponseFromXHR(),e=["Server responded HTTP %d to %s %s (%d characters)",t.status,this.method,this.url,t.text.length];this.emit("up:request:loaded",{request:t.request,response:t,log:e}),this.respondWith(t)},r.prototype.onXHRError=function(){var t="Fatal error during request";this.deferred.reject(up.error.failed(t)),this.emit("up:request:fatal",{log:t})},r.prototype.onXHRTimeout=function(){this.setAbortedState("Requested timed out")},r.prototype.onXHRAbort=function(){this.setAbortedState()},r.prototype.abort=function(){this.setAbortedState()&&this.xhr&&this.xhr.abort()},r.prototype.setAbortedState=function(t){if(void 0===t&&(t=["Request to %s %s was aborted",this.method,this.url]),"new"===this.state||"loading"===this.state)return this.state="aborted",this.emit("up:request:aborted",{log:t}),this.deferred.reject(up.error.aborted(t)),!0},r.prototype.respondWith=function(t){if("loading"===this.state)return this.state="loaded",t.ok?this.deferred.resolve(t):this.deferred.reject(t)},r.prototype.csrfHeader=function(){return up.protocol.csrfHeader()},r.prototype.csrfParam=function(){return up.protocol.csrfParam()},r.prototype.csrfToken=function(){if(!this.isSafe()&&!this.isCrossOrigin())return up.protocol.csrfToken()},r.prototype.isCrossOrigin=function(){return n.isCrossOrigin(this.url)},r.prototype.extractResponseFromXHR=function(){var t={method:this.method,url:this.url,request:this,xhr:this.xhr,text:this.xhr.responseText,status:this.xhr.status,title:up.protocol.titleFromXHR(this.xhr),target:up.protocol.targetFromXHR(this.xhr),acceptLayer:up.protocol.acceptLayerFromXHR(this.xhr),dismissLayer:up.protocol.dismissLayerFromXHR(this.xhr),eventPlans:up.protocol.eventPlansFromXHR(this.xhr),context:up.protocol.contextFromXHR(this.xhr),clearCache:up.protocol.clearCacheFromXHR(this.xhr)},e=up.protocol.methodFromXHR(this.xhr),r=up.protocol.locationFromXHR(this.xhr);return r&&(e||n.matchURLs(t.url,r)||(e="GET"),t.url=r),e&&(t.method=e),new up.Response(t)},r.prototype.cacheKey=function(){return JSON.stringify([this.method,this.url,this.params.toQuery(),this.metaProps()])},r.prototype.metaProps=function(){for(var t={},e=0,r=n.evalOption(up.network.config.requestMetaKeys,this);e<r.length;e++){var o=r[e],i=this[o];n.isGiven(i)&&(t[o]=i)}return t},r.prototype.buildEventEmitter=function(t){return up.EventEmitter.fromEmitArgs(t,{request:this,layer:this.layer})},r.prototype.emit=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.buildEventEmitter(t).emit()},r.prototype.assertEmitted=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.buildEventEmitter(t).assertEmitted()},Object.defineProperty(r.prototype,"description",{get:function(){return this.method+" "+this.url},enumerable:!1,configurable:!0}),r}(up.Record),n.delegate(up.Request.prototype,["then","catch","finally"],(function(){return this.deferred}))},7974:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),n=up.util;up.Request.Cache=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.maxSize=function(){return up.network.config.cacheSize},r.prototype.expiryMillis=function(){return up.network.config.cacheExpiry},r.prototype.normalizeStoreKey=function(t){return n.wrapValue(up.Request,t).cacheKey()},r.prototype.clear=function(e){var n=this;if(e&&"*"!==e&&!0!==e)return e=new up.URLPattern(e),this.each((function(t,r){e.test(r.url)&&n.store.remove(t)}));t.prototype.clear.call(this)},r}(up.Cache)},5221:function(){var t=up.util,e=up.element,n=["GET","POST"];up.Request.FormRenderer=function(){function r(t){this.request=t}return r.prototype.buildAndSubmit=function(){this.params=t.copy(this.request.params);var r=this.request.url,o=this.request.method,i=up.Params.fromURL(r);this.params.addAll(i),r=up.Params.stripURL(r),t.contains(n,o)||(o=up.protocol.wrapMethod(o,this.params)),this.form=e.affix(document.body,"form.up-request-loader",{method:o,action:r});var s,u,a=this.request.contentType;a&&this.form.setAttribute("enctype",a),(s=this.request.csrfParam())&&(u=this.request.csrfToken())&&this.params.add(s,u),t.each(this.params.toArray(),this.addField.bind(this)),up.browser.submitForm(this.form)},r.prototype.addField=function(t){e.affix(this.form,"input[type=hidden]",t)},r}()},6413:function(){var t=up.util;up.Request.Queue=function(){function e(t){var e,n;void 0===t&&(t={}),this.concurrency=null!==(e=t.concurrency)&&void 0!==e?e:function(){return up.network.config.concurrency},this.badResponseTime=null!==(n=t.badResponseTime)&&void 0!==n?n:function(){return up.network.config.badResponseTime},this.reset()}return e.prototype.reset=function(){this.queuedRequests=[],this.currentRequests=[],clearTimeout(this.checkSlowTimout),this.emittedSlow=!1},Object.defineProperty(e.prototype,"allRequests",{get:function(){return this.currentRequests.concat(this.queuedRequests)},enumerable:!1,configurable:!0}),e.prototype.asap=function(e){var n=this;e.runQueuedCallbacks(),t.always(e,(function(t){return n.onRequestSettled(e,t)})),e.queueTime=new Date,this.setSlowTimer(),this.hasConcurrencyLeft()?this.sendRequestNow(e):this.queueRequest(e)},e.prototype.promoteToForeground=function(t){if(t.preload)return t.preload=!1,this.setSlowTimer()},e.prototype.setSlowTimer=function(){var e=this,n=t.evalOption(this.badResponseTime);this.checkSlowTimout=t.timer(n,(function(){return e.checkSlow()}))},e.prototype.hasConcurrencyLeft=function(){var e=t.evalOption(this.concurrency);return-1===e||this.currentRequests.length<e},e.prototype.isBusy=function(){return this.currentRequests.length>0},e.prototype.queueRequest=function(t){this.queuedRequests.push(t)},e.prototype.pluckNextRequest=function(){var e=t.find(this.queuedRequests,(function(t){return!t.preload}));return e||(e=this.queuedRequests[0]),t.remove(this.queuedRequests,e)},e.prototype.sendRequestNow=function(t){t.emit("up:request:load",{log:["Loading %s %s",t.method,t.url]}).defaultPrevented?t.abort("Prevented by event listener"):(t.normalizeForCaching(),this.currentRequests.push(t),t.load())},e.prototype.onRequestSettled=function(e,n){var r=this;t.remove(this.currentRequests,e),n instanceof up.Response&&n.ok&&up.network.registerAliasForRedirect(e,n),this.checkSlow(),t.microtask((function(){return r.poke()}))},e.prototype.poke=function(){var t;if(this.hasConcurrencyLeft()&&(t=this.pluckNextRequest()))return this.sendRequestNow(t)},e.prototype.abort=function(e){var n=this;void 0===e&&(e=!0);for(var r=function(r){t.filter(r,(function(t){return n.requestMatches(t,e)})).forEach((function(e){e.abort(),t.remove(r,e)}))},o=0,i=[this.currentRequests,this.queuedRequests];o<i.length;o++)r(i[o])},e.prototype.abortExcept=function(e,n){void 0===n&&(n=!0);var r=e.cacheKey();this.abort((function(e){return e.cacheKey()!==r&&t.evalOption(n,e)}))},e.prototype.requestMatches=function(e,n){return e===n||t.evalOption(n,e)},e.prototype.checkSlow=function(){var t=this.isSlow();this.emittedSlow!==t&&(this.emittedSlow=t,t?up.emit("up:request:late",{log:"Server is slow to respond"}):up.emit("up:request:recover",{log:"Slow requests were loaded"}))},e.prototype.isSlow=function(){var e=new Date,n=t.evalOption(this.badResponseTime),r=t.reject(this.allRequests,"preload");return t.some(r,(function(t){return e-t.queueTime>=n-1}))},e}()},2298:function(){var t="multipart/form-data",e=up.util;up.Request.XHRRenderer=function(){function n(t){this.request=t}return n.prototype.buildAndSend=function(t){this.xhr=new XMLHttpRequest,this.params=e.copy(this.request.params),this.request.timeout&&(this.xhr.timeout=this.request.timeout),this.xhr.open(this.getMethod(),this.request.url);var n,r,o=this.request.metaProps();for(var i in o)this.addHeader(up.protocol.headerize(i),o[i]);for(var s in this.request.headers)this.addHeader(s,this.request.headers[s]);(n=this.request.csrfHeader())&&(r=this.request.csrfToken())&&this.addHeader(n,r),this.addHeader(up.protocol.headerize("version"),up.version);var u=this.getContentType();return u&&this.addHeader("Content-Type",u),e.assign(this.xhr,t),this.xhr.send(this.getPayload()),this.xhr},n.prototype.getMethod=function(){return this.method||(this.method=this.request.method,this.request.wrapMethod&&!this.request.will302RedirectWithGET()&&(this.method=up.protocol.wrapMethod(this.method,this.params))),this.method},n.prototype.getContentType=function(){return this.finalizePayload(),this.contentType},n.prototype.getPayload=function(){return this.finalizePayload(),this.payload},n.prototype.addHeader=function(t,n){(e.isOptions(n)||e.isArray(n))&&(n=JSON.stringify(n)),this.xhr.setRequestHeader(t,n)},n.prototype.finalizePayload=function(){this.payloadFinalized||(this.payloadFinalized=!0,this.payload=this.request.payload,this.contentType=this.request.contentType,!this.payload&&this.request.allowsPayload()&&(this.contentType||(this.contentType=this.params.hasBinaryValues()?t:"application/x-www-form-urlencoded"),this.contentType===t?(this.contentType=null,this.payload=this.params.toFormData()):this.payload=this.params.toQuery().replace(/%20/g,"+")))},n}()},4517:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.Response=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.keys=function(){return["method","url","text","status","request","xhr","target","title","acceptLayer","dismissLayer","eventPlans","context","clearCache","headers"]},n.prototype.defaults=function(){return{headers:{}}},Object.defineProperty(n.prototype,"ok",{get:function(){return this.status&&this.status>=200&&this.status<=299},enumerable:!1,configurable:!0}),n.prototype.getHeader=function(t){var e;return this.headers[t]||(null===(e=this.xhr)||void 0===e?void 0:e.getResponseHeader(t))},Object.defineProperty(n.prototype,"contentType",{get:function(){return this.getHeader("Content-Type")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"json",{get:function(){return this.parsedJSON||(this.parsedJSON=JSON.parse(this.text))},enumerable:!1,configurable:!0}),n}(up.Record)},7241:function(){var t=up.util,e=up.element;up.ResponseDoc=function(){function n(t){this.noscriptWrapper=new up.HTMLWrapper("noscript"),this.scriptWrapper=new up.HTMLWrapper("script"),this.root=this.parseDocument(t)||this.parseFragment(t)||this.parseContent(t)}return n.prototype.parseDocument=function(t){return this.parse(t.document,e.createDocumentFromHTML)},n.prototype.parseContent=function(n){var r=n.content||"",o=n.target||up.fail("must pass a { target } when passing { content }"),i=e.createFromSelector(o);return t.isString(r)?(r=this.wrapHTML(r),i.innerHTML=r):i.appendChild(r),i},n.prototype.parseFragment=function(t){return this.parse(t.fragment)},n.prototype.parse=function(n,r){return void 0===r&&(r=e.createFromHTML),t.isString(n)&&(n=r(n=this.wrapHTML(n))),n},n.prototype.rootSelector=function(){return up.fragment.toTarget(this.root)},n.prototype.wrapHTML=function(t){return t=this.noscriptWrapper.wrap(t),up.fragment.config.runScripts?this.scriptWrapper.wrap(t):this.scriptWrapper.strip(t)},n.prototype.getTitle=function(){var t;return this.titleParsed||(this.title=null===(t=this.root.querySelector("head title"))||void 0===t?void 0:t.textContent,this.titleParsed=!0),this.title},n.prototype.select=function(t){return up.fragment.subtree(this.root,t,{layer:"any"})[0]},n.prototype.finalizeElement=function(t){this.noscriptWrapper.unwrap(t),this.scriptWrapper.unwrap(t)},n}()},2723:function(){var t=up.element,e=up.util;up.RevealMotion=function(){function n(e,n){var r,o,i,s,u,a,c,p;void 0===n&&(n={}),this.element=e,this.options=n;var l=up.viewport.config;this.viewport=t.get(this.options.viewport)||up.viewport.get(this.element),this.obstructionsLayer=up.layer.get(this.viewport),this.snap=null!==(o=null!==(r=this.options.snap)&&void 0!==r?r:this.options.revealSnap)&&void 0!==o?o:l.revealSnap,this.padding=null!==(s=null!==(i=this.options.padding)&&void 0!==i?i:this.options.revealPadding)&&void 0!==s?s:l.revealPadding,this.top=null!==(a=null!==(u=this.options.top)&&void 0!==u?u:this.options.revealTop)&&void 0!==a?a:l.revealTop,this.max=null!==(p=null!==(c=this.options.max)&&void 0!==c?c:this.options.revealMax)&&void 0!==p?p:l.revealMax,this.topObstructions=l.fixedTop,this.bottomObstructions=l.fixedBottom}return n.prototype.start=function(){var t=this.getViewportRect(this.viewport),n=up.Rect.fromElement(this.element);if(this.max){var r=e.evalOption(this.max,this.element);n.height=Math.min(n.height,r)}if(this.addPadding(n),this.substractObstructions(t),t.height<0)return up.error.failed.async("Viewport has no visible area");var o=this.viewport.scrollTop,i=o;return this.top||n.height>t.height?i+=n.top-t.top:n.top<t.top?i-=t.top-n.top:n.bottom>t.bottom&&(i+=n.bottom-t.bottom),e.isNumber(this.snap)&&i<this.snap&&n.top<.5*t.height&&(i=0),i!==o?this.scrollTo(i):Promise.resolve()},n.prototype.scrollTo=function(t){return this.scrollMotion=new up.ScrollMotion(this.viewport,t,this.options),this.scrollMotion.start()},n.prototype.getViewportRect=function(){return up.viewport.isRoot(this.viewport)?new up.Rect({left:0,top:0,width:up.viewport.rootWidth(),height:up.viewport.rootHeight()}):up.Rect.fromElement(this.viewport)},n.prototype.addPadding=function(t){t.top-=this.padding,t.height+=2*this.padding},n.prototype.selectObstructions=function(t){return up.fragment.all(t.join(","),{layer:this.obstructionsLayer})},n.prototype.substractObstructions=function(t){for(var e=0,n=this.selectObstructions(this.topObstructions);e<n.length;e++){var r=n[e];(s=(u=up.Rect.fromElement(r)).bottom-t.top)>0&&(t.top+=s,t.height-=s)}for(var o=0,i=this.selectObstructions(this.bottomObstructions);o<i.length;o++){r=i[o];var s,u=up.Rect.fromElement(r);(s=t.bottom-u.top)>0&&(t.height-=s)}},n.prototype.finish=function(){var t;null===(t=this.scrollMotion)||void 0===t||t.finish()},n}()},6956:function(){var t=up.util;up.ScrollMotion=function(){function e(t,e,n){var r,o,i,s;void 0===n&&(n={}),this.scrollable=t,this.targetTop=e,this.behavior=null!==(o=null!==(r=n.behavior)&&void 0!==r?r:n.scrollBehavior)&&void 0!==o?o:"auto",this.speed=.065*(null!==(s=null!==(i=n.speed)&&void 0!==i?i:n.scrollSpeed)&&void 0!==s?s:up.viewport.config.scrollSpeed)}return e.prototype.start=function(){var t=this;return new Promise((function(e,n){t.resolve=e,t.reject=n,"smooth"===t.behavior&&up.motion.isEnabled()?t.startAnimation():t.finish()}))},e.prototype.startAnimation=function(){var t=this;this.startTime=Date.now(),this.startTop=this.scrollable.scrollTop,this.topDiff=this.targetTop-this.startTop,this.duration=Math.sqrt(Math.abs(this.topDiff))/this.speed,requestAnimationFrame((function(){return t.animationFrame()}))},e.prototype.animationFrame=function(){var e=this;if(!this.settled){this.frameTop&&Math.abs(this.frameTop-this.scrollable.scrollTop)>1.5&&this.abort("Animation aborted due to user intervention");var n=Date.now()-this.startTime,r=Math.min(n/this.duration,1);this.frameTop=this.startTop+t.simpleEase(r)*this.topDiff,Math.abs(this.targetTop-this.frameTop)<.3?this.finish():(this.scrollable.scrollTop=this.frameTop,requestAnimationFrame((function(){return e.animationFrame()})))}},e.prototype.abort=function(t){this.settled=!0,this.reject(up.error.aborted(t))},e.prototype.finish=function(){this.settled=!0,this.scrollable.scrollTop=this.targetTop,this.resolve()},e}()},8720:function(){var t=up.element,e=up.util;up.Selector=function(){function n(t,e){void 0===e&&(e=[]),this.selectors=t,this.filters=e,this.unionSelector=this.selectors.join(",")||"match-none"}return n.prototype.matches=function(e){return t.matches(e,this.unionSelector)&&this.passesFilter(e)},n.prototype.closest=function(t){var e;return this.matches(t)?t:(e=t.parentElement)?this.closest(e):void 0},n.prototype.passesFilter=function(t){return e.every(this.filters,(function(e){return e(t)}))},n.prototype.descendants=function(n){var r=this,o=e.flatMap(this.selectors,(function(e){return t.all(n,e)}));return e.filter(o,(function(t){return r.passesFilter(t)}))},n.prototype.subtree=function(t){var e=[];return this.matches(t)&&e.push(t),e.push.apply(e,this.descendants(t)),e},n}()},104:function(){var t=up.util;up.store||(up.store={}),up.store.Memory=function(){function e(){this.clear()}return e.prototype.clear=function(){this.data={}},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,e){this.data[t]=e},e.prototype.remove=function(t){delete this.data[t]},e.prototype.keys=function(){return Object.keys(this.data)},e.prototype.size=function(){return this.keys().length},e.prototype.values=function(){return t.values(this.data)},e}()},5438:function(){var t,e=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});up.store.Session=function(t){function n(e){var n=t.call(this)||this;return n.rootKey=e,n.loadFromSessionStorage(),n}return e(n,t),n.prototype.clear=function(){t.prototype.clear.call(this),this.saveToSessionStorage()},n.prototype.set=function(e,n){t.prototype.set.call(this,e,n),this.saveToSessionStorage()},n.prototype.remove=function(e){t.prototype.remove.call(this,e),this.saveToSessionStorage()},n.prototype.loadFromSessionStorage=function(){try{var t=null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.getItem(this.rootKey);t&&(this.data=JSON.parse(t))}catch(t){}},n.prototype.saveToSessionStorage=function(){var t=JSON.stringify(this.data);try{return null===sessionStorage||void 0===sessionStorage?void 0:sessionStorage.setItem(this.rootKey,t)}catch(t){}},n}(up.store.Memory)},7885:function(){var t=up.util,e=up.element;up.Tether=function(){function n(t){var n,r;null===(r=(n=up.migrate).handleTetherOptions)||void 0===r||r.call(n,t),this.anchor=t.anchor,this.align=t.align,this.position=t.position,this.alignAxis="top"===this.position||"bottom"===this.position?"horizontal":"vertical",this.viewport=up.viewport.get(this.anchor),this.parent=this.viewport===e.root?document.body:this.viewport,this.syncOnScroll=!this.viewport.contains(this.anchor.offsetParent)}return n.prototype.start=function(t){this.element=t,this.element.style.position="absolute",this.setOffset(0,0),this.sync(),this.changeEventSubscription("on")},n.prototype.stop=function(){this.changeEventSubscription("off")},n.prototype.changeEventSubscription=function(t){var e=this.scheduleSync.bind(this);up[t](window,"resize",e),this.syncOnScroll&&up[t](this.viewport,"scroll",e)},n.prototype.scheduleSync=function(){return clearTimeout(this.syncTimer),this.syncTimer=t.task(this.sync.bind(this))},n.prototype.isDetached=function(){return e.isDetached(this.parent)||e.isDetached(this.anchor)},n.prototype.sync=function(){var n,r,o=this.element.getBoundingClientRect(),i=e.styleNumber(this.element,"marginTop"),s=e.styleNumber(this.element,"marginRight"),u=e.styleNumber(this.element,"marginBottom"),a=e.styleNumber(this.element,"marginLeft"),c=this.anchor.getBoundingClientRect();switch(this.alignAxis){case"horizontal":switch(this.position){case"top":r=c.top-u-o.height;break;case"bottom":r=c.top+c.height+i}switch(this.align){case"left":n=c.left+a;break;case"center":n=c.left+.5*(c.width-o.width);break;case"right":n=c.left+c.width-o.width-s}break;case"vertical":switch(this.align){case"top":r=c.top+i;break;case"center":r=c.top+.5*(c.height-o.height);break;case"bottom":r=c.top+c.height-o.height-u}switch(this.position){case"left":n=c.left-s-o.width;break;case"right":n=c.left+c.width+a}}t.isDefined(n)||t.isDefined(r)?this.moveTo(n,r):up.fail("Invalid tether constraints: %o",this.describeConstraints())},n.prototype.describeConstraints=function(){return{position:this.position,align:this.align}},n.prototype.moveTo=function(t,e){var n=this.element.getBoundingClientRect();this.setOffset(t-n.left+this.offsetLeft,e-n.top+this.offsetTop)},n.prototype.setOffset=function(t,n){this.offsetLeft=t,this.offsetTop=n,e.setStyle(this.element,{left:t,top:n})},n}()},4818:function(){var t=up.util;up.URLPattern=function(){function e(e,n){void 0===n&&(n=t.normalizeURL),this.normalizeURL=n,this.groups=[];for(var r=[],o=[],i=0,s=t.splitValues(e);i<s.length;i++){var u=s[i];"-"===u[0]?o.push(u.substring(1)):r.push(u)}this.positiveRegexp=this.buildRegexp(r,!0),this.negativeRegexp=this.buildRegexp(o,!1)}return e.prototype.buildRegexp=function(e,n){var r=this;if(e.length){var o=e.map(this.normalizeURL).map(t.escapeRegExp).join("|");return o=(o=o.replace(/\\\*/g,".*?")).replace(/(:|\\\$)([a-z][\w-]*)/gi,(function(t,e,o){return"\\$"===e?(n&&r.groups.push({name:o,cast:Number}),"(\\d+)"):(n&&r.groups.push({name:o,cast:String}),"([^/?#]+)")})),new RegExp("^"+o+"$")}},e.prototype.test=function(t,e){return void 0===e&&(e=!0),e&&(t=this.normalizeURL(t)),this.positiveRegexp.test(t)&&!this.isExcluded(t)},e.prototype.recognize=function(t,e){void 0===e&&(e=!0),e&&(t=this.normalizeURL(t));var n=this.positiveRegexp.exec(t);if(n&&!this.isExcluded(t)){var r={};return this.groups.forEach((function(t,e){var o=n[e+1];if(o)return r[t.name]=t.cast(o)})),r}},e.prototype.isExcluded=function(t){var e;return null===(e=this.negativeRegexp)||void 0===e?void 0:e.test(t)},e}()},9675:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.element=function(){var e=up.util,n=up.browser.isIE11()?"msMatchesSelector":"matches";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.pop(),r=t[0]||document;return r.querySelector(n)}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.pop(),r=t[0]||document;return r.querySelectorAll(n)}function i(t,e){var n=[];return u(t,e)&&n.push(t),n.push.apply(n,o(t,e)),n}function s(t,e){return t.closest?t.closest(e):u(t,e)?t:a(t,e)}function u(t,e){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e)}function a(t,e){var n=t.parentElement;if(n)return u(n,e)?n:a(n,e)}function c(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.pop();return e.isElement(i)?i:e.isString(i)?r.apply(void 0,t(t([],n),[i])):e.isList(i)?(i.length>1&&up.fail("up.element.get(): Cannot cast multiple elements (%o) to a single element",i),i[0]):i}function p(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.flatMap(t,l)}function l(t){return e.isString(t)?o(t):e.wrapList(t)}function f(t){t.style.display="none"}function h(t){t.style.display=""}function d(t,n){for(var r in n){var o=n[r];e.isGiven(o)?t.setAttribute(r,o):t.removeAttribute(r)}}function y(t,n){for(var r,o,i,s=[],u=function(e){var n;if(e=e.replace(/^[\w-]+/,(function(t){return n=t,""})),o=document.createElement(n||"div"),r||(r=o),e=(e=e.replace(/#([\w-]+)/,(function(t,e){return o.id=e,""}))).replace(/\.([\w-]+)/g,(function(t,e){return o.classList.add(e),""})),s.length&&(e=e.replace(/\[([\w-]+)\]/g,(function(t,e){return o.setAttribute(e,s.shift()),""}))),""!==e)throw up.error.invalidSelector(t);null==i||i.appendChild(o),i=o},a=0,c=t.replace(/\[([\w-]+)(?:[~|^$*]?=(["'])?([^\2\]]*?)\2)?\]/g,(function(t,e,n,r){return s.push(r||""),"["+e+"]"})).split(/[ >]+/);a<c.length;a++)u(c[a]);if(n){var p=void 0;if(p=e.pluckKey(n,"class"))for(var l=0,f=e.wrapList(p);l<f.length;l++){var h=f[l];r.classList.add(h)}(p=e.pluckKey(n,"style"))&&A(r,p),(p=e.pluckKey(n,"text"))&&(r.textContent=p),(p=e.pluckKey(n,"content"))&&(r.innerHTML=p),d(r,n)}return r}var m=["HTML","BODY","HEAD","TITLE"],v=new RegExp("\\b("+m.join("|")+")\\b","i"),g=up.mockable((function(t){return u(t,m.join(","))}));function b(t,e){return"["+t+'="'+(e=e.replace(/"/g,'\\"'))+'"]'}function w(){return document.documentElement}function O(t){t.offsetHeight}function k(t,n,r){e.isMissing(t.getAttribute(n))&&t.setAttribute(n,r)}function E(t,n){return e.nullToUndefined(t.getAttribute(n))}function S(t,e,n){var r=E(t,e);switch(r){case"false":return!1;case"true":case"":case e:return!0;default:if(n)return r}}function _(t,e){var n=L(t,Object.keys(e));return A(t,e),function(){return A(t,n)}}function x(t,e){return T(window.getComputedStyle(t),e)}function C(t,n){var r=x(t,n);if(e.isGiven(r))return parseFloat(r)}function L(t,e){return T(t.style,e)}function T(t,n){return e.isString(n)?t[n]:e.pick(t,n)}function A(t,e){var n=t.style;for(var r in e){var o=e[r];o=P(r,o),n[r]=o}}function P(t,n){var r;return e.isMissing(n)?n="":R.has(t.toLowerCase().replace(/-/,""))&&(r=n,n=e.isNumber(r)||e.isString(r)&&/^\d+$/.test(r)?r.toString()+"px":r),n}var R=e.arrayToSet(["top","right","bottom","left","padding","paddingtop","paddingright","paddingbottom","paddingleft","margin","margintop","marginright","marginbottom","marginleft","borderwidth","bordertopwidth","borderrightwidth","borderbottomwidth","borderleftwidth","width","height","maxwidth","maxheight","minwidth","minheight"]);function F(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}return{all:o,subtree:i,isInSubtree:function(t,e){var n=c(e);return t.contains(n)},closest:s,closestAttr:function(t,e){var n;return null===(n=s(t,"["+e+"]"))||void 0===n?void 0:n.getAttribute(e)},matches:u,ancestor:a,around:function(t,e){return p(s(t,e),i(t,e))},get:c,list:p,remove:function(t){var e=t.parentNode;e&&e.removeChild(t)},toggle:function(t,e){null==e&&(e=!F(t)),(e?h:f)(t)},toggleClass:function(t,e,n){var r=t.classList;return null==n&&(n=!r.contains(e)),n?r.add(e):r.remove(e)},hide:f,show:h,metaContent:function(t){var e;return null===(e=r("meta"+b("name",t)))||void 0===e?void 0:e.getAttribute("content")},replace:function(t,e){t.parentElement.replaceChild(e,t)},insertBefore:function(t,e){t.insertAdjacentElement("beforebegin",e)},createFromSelector:y,setAttrs:d,setTemporaryAttrs:function(t,e){for(var n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n[i]=t.getAttribute(i)}return d(t,e),function(){return d(t,n)}},affix:function(t){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var s=e.extractOptions(o);2===o.length?(n=o[0],r=o[1]):(n="beforeend",r=o[0]);var u=y(r,s);return t.insertAdjacentElement(n,u),u},toSelector:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=up.fragment).toTarget.apply(t,e)},idSelector:function(t){return t.match(/^[a-z0-9\-_]+$/i)?"#"+t:b("id",t)},classSelector:function(t){return"."+t.replace(/:/g,"\\:")},isSingleton:g,isSingletonSelector:function(t){return v.test(t)},attributeSelector:b,trueAttributeSelector:function(t){return"["+t+"]:not(["+t+"=false])"},tagName:function(t){return t.tagName.toLowerCase()},createDocumentFromHTML:function(t){return(new DOMParser).parseFromString(t,"text/html")},createFromHTML:function(t){var e=document.createRange();return e.setStart(document.body,0),e.createContextualFragment(t).childNodes[0]},get root(){return w()},paint:O,concludeCSSTransition:function(t){var e=_(t,{transition:"none"});return O(t),e},hasCSSTransition:function(t){var n,r=(n=e.isOptions(t)?t:x(t)).transitionProperty,o=n.transitionDuration;return!("none"===r||"all"===r&&0===o)},fixedToAbsolute:function(t){var e=t.getBoundingClientRect();t.style.position="absolute";var n=t.offsetParent.getBoundingClientRect();A(t,{left:e.left-C(t,"margin-left")-n.left,top:e.top-C(t,"margin-top")-n.top,right:"",bottom:""})},setMissingAttrs:function(t,e){for(var n in e)k(t,n,e[n])},setMissingAttr:k,unwrap:function(t){var n=t.parentNode,r=e.toArray(t.childNodes);e.each(r,(function(e){return n.insertBefore(e,t)})),n.removeChild(t)},wrapChildren:function(t,e){var n;void 0===e&&(e="up-wrapper");for(var r=y(e);n=t.firstChild;)r.appendChild(n);return t.appendChild(r),r},attr:E,booleanAttr:S,numberAttr:function(t,e){var n=t.getAttribute(e);if(n&&(n=n.replace(/_/g,"")).match(/^[\d.]+$/))return parseFloat(n)},jsonAttr:function(t,e){var n,r,o=null===(r=null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,e))||void 0===r?void 0:r.trim();if(o)return JSON.parse(o)},callbackAttr:function(n,r,o){void 0===o&&(o=[]);var i=n.getAttribute(r);if(i){var s=new(Function.bind.apply(Function,t(t([void 0,"event"],o),[i])));return function(r){var i=e.values(e.pick(r,o));return s.call.apply(s,t([n,r],i))}}},booleanOrStringAttr:function(t,e){return S(t,e,!0)},setTemporaryStyle:_,style:x,styleNumber:C,inlineStyle:L,setStyle:A,isVisible:F,upAttrs:function(t){for(var e=/^up-/,n={},r=0,o=t.attributes;r<o.length;r++){var i=o[r],s=i.name;s.match(e)&&(n[s]=i.value)}return n},toggleAttr:function(t,e,n,r){return null==r&&(r=!t.hasAttribute(e)),r?t.setAttribute(e,n):t.removeAttribute(e)},isDetached:function(t){return t!==document&&!w().contains(t)}}}()},3924:function(){up.error=function(){var t=up.util;function e(e,n){void 0===n&&(n={}),t.isArray(e)&&(e=t.sprintf.apply(t,e));var r=new Error(e);return t.assign(r,n),r}function n(t,n){void 0===n&&(n=e);var r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=n.apply(void 0,e);return o.name=t,o};return r.is=function(e){return e.name===t},r.async=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Promise.reject(r.apply(void 0,t))},r}var r=n("up.Failed"),o=n("AbortError",(function(t){return e(t||"Aborted")})),i=n("up.NotImplemented"),s=n("up.NotApplicable",(function(t,n){return e("Cannot apply change: "+t+" ("+n+")")}));return{failed:r,aborted:o,invalidSelector:n("up.InvalidSelector",(function(t){return e("Cannot parse selector: "+t)})),notApplicable:s,notImplemented:i,emitGlobal:function(t){var e=t.message;up.emit(window,"error",{message:e,error:t,log:!1})}}}()},8670:function(){up.event=function(){var t=up.util,e=up.element;function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t).bind()}function r(t,e){return up.EventListenerGroup.fromBindArgs(t,e)}function o(t){return up.EventEmitter.fromEmitArgs(t)}var i=["metaKey","shiftKey","ctrlKey","altKey"];function s(e){return(t.isUndefined(e.button)||0===e.button)&&!t.some(i,(function(t){return e[t]}))}function u(e,n,r){void 0===r&&(r=[]);var o=up.event.build(n,t.pick(e,r));return o.originalEvent=e,["stopPropagation","stopImmediatePropagation","preventDefault"].forEach((function(t){var n=o[t];return o[t]=function(){return e[t](),n.call(o)}})),e.defaultPrevented&&o.preventDefault(),o}return n("up:click","a[up-emit]",(function(n,r){if(s(n)){var o=e.attr(r,"up-emit"),i=e.jsonAttr(r,"up-emit-props"),a=u(n,o);t.assign(a,i),up.emit(r,a)}})),n("up:framework:reset",(function(){for(var t=0,n=[window,document,e.root,document.body];t<n.length;t++)for(var r=n[t],o=0,i=up.EventListener.allNonDefault(r);o<i.length;o++)i[o].unbind()})),{on:n,$on:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t,{jQuery:!0}).bind()},off:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t).unbind()},build:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.extractOptions(e),o=e[0]||r.type||up.fail("Expected event type to be passed as string argument or { type } property"),i=document.createEvent("Event");if(i.initEvent(o,!0,!0),t.assign(i,t.omit(r,["type","target"])),up.browser.isIE11()){var s=i.preventDefault;i.preventDefault=function(){return s.call(i),t.getter(i,"defaultPrevented",(function(){return!0}))}}return i},emit:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t).emit()},assertEmitted:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t).assertEmitted()},onEscape:function(t){return n("keydown",(function(e){if(function(t){var e=t.key;return"Escape"===e||"Esc"===e}(e))return t(e)}))},halt:function(t){t.stopImmediatePropagation(),t.preventDefault()},onReady:function(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},isUnmodified:s,fork:u,keyModifiers:i}}(),up.on=up.event.on,up.$on=up.event.$on,up.off=up.event.off,up.$off=up.event.off,up.emit=up.event.emit},454:function(){up.feedback=function(){var t=up.util,e=up.element,n=new up.Config((function(){return{currentClasses:["up-current"],navSelectors:["[up-nav]","nav"]}})),r="up-active",o="a, [up-href]";function i(){return n.navSelectors.join(",")}function s(e){if(e)return t.normalizeURL(e,{stripTrailingSlash:!0})}function u(t){return t.upFeedbackURLs||(t.upFeedbackURLs=new up.LinkFeedbackURLs(t))}function a(n,r){var s=up.fragment.subtree(n,i(),r);c(t.flatMap(s,(function(t){return e.subtree(t,o)})),r)}function c(t,r){if(void 0===r&&(r={}),t.length){var o=(h=r.layer||up.layer.get(t[0])).feedbackLocation||h.location;if(o)for(var i=0,s=t;i<s.length;i++){for(var a=s[i],c=u(a).isCurrent(o),p=0,l=n.currentClasses;p<l.length;p++){var f=l[p];e.toggleClass(a,f,c)}e.toggleAttr(a,"aria-current","page",c)}}var h}function p(t){return e.ancestor(t,o)||t}function l(t){p(t).classList.add(r)}function f(t){p(t).classList.remove(r)}function h(e,n){l(e);var r=n();return t.always(r,(function(){return f(e)})),r}function d(t){var e=t.feedbackLocation,n=s(t.location);e&&e===n||(t.feedbackLocation=n,a(t.element,{layer:t}))}return up.on("up:location:changed",(function(t){var e;(e=up.layer.front).showsLiveHistory()&&d(e)})),up.on("up:fragment:inserted",(function(t,e){var n,r;n=e,r={layer:up.layer.get(n)},up.fragment.closest(n,i(),r)?c(up.fragment.subtree(n,o,r),r):a(n,r)})),up.on("up:layer:location:changed",(function(t){d(t.layer)})),up.on("up:framework:reset",(function(){n.reset()})),{config:n,start:l,stop:f,around:h,aroundForOptions:function(e,n){var r,o=e.feedback;return o&&(r=t.isBoolean(o)?e.origin:o),r?h(r=up.fragment.get(r),n):n()},normalizeURL:s}}()},2851:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};up.form=function(){var e,n=up.util,r=up.element,o=["[up-submit]","[up-target]","[up-layer]","[up-transition]"],i=new up.Config((function(){return{validateTargets:["[up-fieldset]:has(:origin)","fieldset:has(:origin)","label:has(:origin)","form:has(:origin)"],fieldSelectors:["select","input:not([type=submit]):not([type=image])","button[type]:not([type=submit])","textarea"],submitSelectors:up.link.combineFollowableSelectors(["form"],o),noSubmitSelectors:["[up-submit=false]","[target]"],submitButtonSelectors:["input[type=submit]","input[type=image]","button[type=submit]","button:not([type])"],observeDelay:0}}));function s(){return i.submitSelectors.join(",")}function u(t){return void 0===t&&(t=""),i.fieldSelectors.map((function(e){return e+t})).join(",")}function a(t){t=r.get(t);var e=r.subtree(t,u());if(r.matches(t,"form[id]")){var o=u(r.attributeSelector("form",t.getAttribute("id"))),i=r.all(o);e.push.apply(e,i),e=n.uniq(e)}return e}function c(){return i.submitButtonSelectors.join(",")}var p=up.mockable((function(t,e){return up.render(l(t,e))}));function l(t,e){e=n.options(e),t=up.fragment.get(t),t=r.closest(t,"form");var o=new up.OptionsParser(e,t),i=up.Params.fromForm(t),s=function(t){var e=c(),n=document.activeElement;return n&&r.matches(n,e)&&t.contains(n)?n:r.get(t,e)}(t);return s&&(i.addField(s),e.method||(e.method=s.getAttribute("formmethod")),e.url||(e.url=s.getAttribute("formaction"))),i.addAll(e.params),e.params=i,o.string("url",{attr:"action",default:up.fragment.source(t)}),o.string("method",{attr:["up-method","data-method","method"],default:"GET",normalize:n.normalizeMethod}),"GET"===e.method&&(e.url=up.Params.stripURL(e.url)),o.string("failTarget",{default:up.fragment.toTarget(t)}),e.guardEvent||(e.guardEvent=up.event.build("up:form:submit",{log:"Submitting form"})),n.assign(e,up.link.followOptions(t,e)),e}up.on("up:click",c,(function(t,e){var n=r.closest(e,"form");n&&O(n)&&e.focus()}));var f=function(t){for(var e,o,s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];t=r.list(t);var c=n.flatMap(t,a),p=n.extractCallback(s)||h(t[0])||up.fail("up.observe: No change callback given"),l=n.extractOptions(s);l.delay=null!==(o=null!==(e=l.delay)&&void 0!==e?e:r.numberAttr(t[0],"up-delay"))&&void 0!==o?o:i.observeDelay;var f=new up.FieldObserver(c,l,p);return f.start(),function(){return f.stop()}};function h(t){var e=t.getAttribute("up-observe");if(e)return new Function("value","name",e)}function d(t,e){return f(t,e,(function(){return p(t)}))}function y(e,o){return e=up.fragment.get(e),(o=n.options(o)).navigate=!1,o.origin=e,o.history=!1,o.target=function(e,o){var s,u=b(e);return n.isElementish(o.target)?up.fragment.toTarget(o.target):(s=o.target||e.getAttribute("up-validate")||u.getAttribute("up-validate"))?s:r.matches(e,"form")?up.fragment.toTarget(e):function(e,r){var o=up.layer.get(e);return n.findResult(i.validateTargets,(function(e){if(up.fragment.get(e,t(t({},r),{layer:o})))return e}))}(e,o)||up.fail("Could not find validation target for %o (tried defaults %o)",e,i.validateTargets)}(e,o),o.focus="keep",o.fail=!1,o.headers||(o.headers={}),o.headers[up.protocol.headerize("validate")]=e.getAttribute("name")||":unknown",o.guardEvent=up.event.build("up:form:validate",{field:e,log:"Validating form"}),p(e,o)}function m(t){var e,o;if(r.matches(t,"input[type=checkbox]"))t.checked?(e=t.value,o=":checked"):o=":unchecked";else if(r.matches(t,"input[type=radio]")){var i=b(t),s=t.getAttribute("name"),u=i.querySelector("input[type=radio]"+r.attributeSelector("name",s)+":checked");u?(o=":checked",e=u.value):o=":unchecked"}else e=t.value;var a=[];return n.isPresent(e)?(a.push(e),a.push(":present")):a.push(":blank"),n.isPresent(o)&&a.push(o),a}function v(t,e){void 0===e&&(e={});var n=e.target||e.target||t.getAttribute("up-switch"),o=b(t);n||up.fail("No switch target given for %o",t);for(var i=m(t),s=0,u=r.all(o,n);s<u.length;s++){var a=u[s];g(a,i)}}var g=up.mockable((function(t,e){var o;e||(e=m(function(t){var e=b(t),o=r.all(e,"[up-switch]");return n.find(o,(function(e){var n=e.getAttribute("up-switch");return r.matches(t,n)}))||up.fail("Could not find [up-switch] field for %o",t)}(t)));var i=t.getAttribute("up-hide-for");if(i)i=n.splitValues(i),o=0===n.intersect(e,i).length;else{var s=t.getAttribute("up-show-for");s=s?n.splitValues(s):[":present",":checked"],o=n.intersect(e,s).length>0}return r.toggle(t,o),t.classList.add("up-switched")}));function b(t){return t.form||r.closest(t,"form, "+up.layer.anySelector())}function w(t){return r.matches(t,u())}function O(t){return t=up.fragment.get(t),r.matches(t,s())&&!k(t)}function k(t){return r.matches(t,i.noSubmitSelectors.join(","))}return up.on("submit",s,(function(t,n){t.defaultPrevented||k(n)||(null==e||e(),up.event.halt(t),up.log.muteUncriticalRejection(p(n)))})),up.on("change","[up-validate]",(function(t){var r=a(t.target)[0];e=n.abortableMicrotask((function(){return up.log.muteUncriticalRejection(y(r))}))})),up.compiler("[up-switch]",(function(t){v(t)})),up.on("change","[up-switch]",(function(t,e){v(e)})),up.compiler("[up-show-for]:not(.up-switched), [up-hide-for]:not(.up-switched)",(function(t){g(t)})),up.compiler("[up-observe]",(function(t){return f(t)})),up.compiler("[up-autosubmit]",(function(t){return d(t)})),up.on("up:framework:reset",(function(){i.reset()})),{config:i,submit:p,submitOptions:l,isSubmittable:O,observe:f,validate:y,autosubmit:d,fieldSelector:u,fields:a,focusedField:function(){return n.presence(document.activeElement,w)},switchTarget:g}}(),up.submit=up.form.submit,up.observe=up.form.observe,up.autosubmit=up.form.autosubmit,up.validate=up.form.validate},2667:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};n(7433);var o=up.util,i=up.element;up.fragment=function(){var t=new up.Config((function(){return{badTargetClasses:[/^up-/],navigateOptions:{solo:!0,feedback:!0,cache:"auto",fallback:!0,focus:"auto",scroll:"auto",history:"auto",peel:!0},matchAroundOrigin:!0,runScripts:!1,autoHistoryTargets:[":main"],autoFocus:["hash","autofocus","main-if-main","target-if-lost"],autoScroll:["hash","layer-if-main"]}}));function e(t,e){return void 0===e&&(e={}),t=y(t,e),i.closestAttr(t,"up-source")}function n(t){return i.closestAttr(t,"up-time")||"0"}o.delegate(t,"mainTargets",(function(){return up.layer.config.any}));var s=up.mockable((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.asyncify((function(){var e=O(t);e=up.RenderOptions.preprocess(e),up.browser.assertConfirmed(e);var n=o.pluckKey(e,"guardEvent");return n&&(n.renderOptions=e,up.event.assertEmitted(n,{target:e.origin})),up.RenderOptions.assertContentGiven(e),(e.url?u:a)(e)}))}));function u(t){return up.feedback.aroundForOptions(t,(function(){return new up.Change.FromURL(t).execute()}))}function a(t){return up.network.mimicLocalRequest(t),new up.Change.FromContent(t).execute()}var c=up.mockable((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=O(t);return s(r(r({},n),{navigate:!0}))}));function p(t,e){void 0===e&&(e={}),t=y(t);var n=(e.keepPlans||[]).map((function(t){return f(t),t.oldElement}));return up.syntax.compile(t,{skip:n,layer:e.layer}),l(t,e),t}function l(t,e){return up.emit(t,"up:fragment:inserted",{log:["Inserted fragment %o",t],origin:e.origin})}function f(t){return h(t,"up:fragment:kept",{log:["Kept fragment %o",t.oldElement]})}function h(t,e,n){var r=t.oldElement,o=up.event.build(e,{newFragment:t.newElement,newData:t.newData});return up.emit(r,o,n)}var d=o.negate((function(t){return!!i.closest(t,".up-destroying")}));function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.extractOptions(t),r=t.pop(),s=t[0];return o.isElementish(r)?i.get(r):s?m(s,r,n):new up.FragmentFinder({selector:r,origin:n.origin,layer:n.layer}).find()}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g.apply(void 0,t)[0]}var v=/:has\(([^)]+)\)$/;function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.extractOptions(t),r=t.pop(),i=t[0];return(r=_(r,i,n)).descendants(i||document)}function b(t,e,n){return void 0===n&&(n={}),(e=_(e,t,n)).subtree(t)}function w(t,e){return b(t,e).length>0}function O(t){var e=o.parseArgIntoOptions(t,"target");return o.isElement(e.target)&&(e.origin||(e.origin=e.target)),e}function k(t){if(o.isString(t))return t;var e;if(t=i.get(t),i.isSingleton(t))return i.tagName(t);if(e=t.getAttribute("up-id"))return i.attributeSelector("up-id",e);if(e=t.getAttribute("id"))return i.idSelector(e);if(e=t.getAttribute("name"))return i.tagName(t)+i.attributeSelector("name",e);if(e=o.presence(o.filter(t.classList,E))){for(var n="",r=0,s=e;r<s.length;r++){var u=s[r];n+=i.classSelector(u)}return n}return i.tagName(t)}function E(e){return!o.some(t.badTargetClasses,(function(t){return o.isRegExp(t)?t.test(e):t===e}))}function S(t,e){void 0===e&&(e={});var n=e.origin;return t.replace(/&|:origin\b/,(function(e){if(n)return k(n);up.fail('Missing { origin } element to resolve "%s" reference (found in %s)',e,t)}))}function _(t,e,n){void 0===n&&(n={});var s=[];n.destroying||s.push(d),n.layer||(n.layer=e);var u=up.layer.getAll(n);"any"===n.layer||e&&i.isDetached(e)||s.push((function(t){return o.some(u,(function(e){return e.contains(t)}))}));var a=up.fragment.expandTargets(t,r(r({},n),{layer:u[0]}));return a=a.map((function(t){return(t=t.replace(v,(function(t,e){return s.push((function(t){return t.querySelector(e)})),""})))||"*"})),new up.Selector(a,s)}return up.on("up:app:boot",(function(){var t=document.body;if(t.setAttribute("up-source",up.history.location),p(t),!up.browser.canPushState())return up.warn("Cannot push history changes. Next fragment update will load in a new page.")})),up.on("up:framework:reset",(function(){t.reset()})),{config:t,reload:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=O(t);o.target||(o.target=":main");var i=y(o.target,o);return o.url||(o.url=e(i)),o.headers||(o.headers={}),o.headers[up.protocol.headerize("reloadFromTime")]=n(i),s(o)},destroy:function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=O(n);return(o.element=y(o.target,o))&&new up.Change.DestroyFragment(o).execute(),null===(e=(t=up.migrate).formerlyAsync)||void 0===e?void 0:e.call(t,"up.destroy()")},render:s,navigate:c,get:y,getDumb:m,all:g,subtree:b,contains:w,closest:function(t,e,n){return(e=_(e,t=i.get(t),n)).closest(t)},source:e,hello:p,visit:function(t,e){return c(r(r({},e),{url:t}))},markAsDestroying:function(t){t.classList.add("up-destroying"),t.setAttribute("aria-hidden","true")},emitInserted:l,emitDestroyed:function(t,e){var n,r=null!==(n=e.log)&&void 0!==n?n:["Destroyed fragment %o",t],o=e.parent||document;return up.emit(o,"up:fragment:destroyed",{fragment:t,parent:o,log:r})},emitKeep:function(t){return h(t,"up:fragment:keep",{log:["Keeping fragment %o",t.oldElement],callback:i.callbackAttr(t.oldElement,"up-on-keep",["newFragment","newData"])})},emitKept:f,successKey:function(t){return o.unprefixCamelCase(t,"fail")},failKey:function(t){if(!t.match(/^fail[A-Z]/))return o.prefixCamelCase(t,"fail")},expandTargets:function(t,e){void 0===e&&(e={});var n=e.layer;"new"===n||n instanceof up.Layer||up.fail("Must pass an up.Layer as { layer } option, but got %o",n),t=o.copy(o.wrapList(t));for(var r=[];t.length;){var i=t.shift();if(":main"===i||!0===i){var s="new"===n?e.mode:n.mode;t.unshift.apply(t,up.layer.mainTargets(s))}else":layer"===i?"new"===n||n.opening||t.unshift(n.getFirstSwappableElement()):o.isElementish(i)?r.push(k(i)):o.isString(i)&&r.push(S(i,e))}return o.uniq(r)},toTarget:k,matches:function(t,e,n){return void 0===n&&(n={}),(e=_(e,t=i.get(t),n)).matches(t)},hasAutoHistory:function(e){return!!w(e,t.autoHistoryTargets)||(up.puts("up.render()","Will not auto-update history because fragment doesn't contain a selector from up.fragment.config.autoHistoryTargets"),!1)}}}(),up.reload=up.fragment.reload,up.destroy=up.fragment.destroy,up.render=up.fragment.render,up.navigate=up.fragment.navigate,up.hello=up.fragment.hello,up.visit=up.fragment.visit,o.delegate(up,"context",(function(){return up.layer.current}))},9634:function(){var t;up.framework=(t=!0,{boot:function(){var e=up.browser.supportIssue();e?console.error("Unpoly cannot load: %s",e):(up.emit("up:framework:boot",{log:!1}),t=!1,up.event.onReady((function(){up.emit("up:app:boot",{log:"Booting user application"})})))},startExtension:function(){t=!0},stopExtension:function(){t=!1},reset:function(){up.emit("up:framework:reset",{log:!1})},get booting(){return t}})},8944:function(){var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},e=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};up.history=function(){var n,r,o=up.util,i=up.element,s=new up.Config((function(){return{enabled:!0,restoreTargets:["body"]}}));function u(t,e){return void 0===e&&(e={}),e.hash=!0,o.normalizeURL(t,e)}function a(t){return u(location.href,t)}function c(){var t=a();r!==t&&(n=r,r=t)}function p(t){var e={stripTrailingSlash:!0};return u(t,e)===a(e)}function l(t,e){void 0===e&&(e={}),f("replaceState",t)&&!1!==e.event&&d("up:location:changed",{url:t,reason:"replace",log:"Replaced state for "+o.urlWithoutHost(t)})}function f(t,e){if(s.enabled){return window.history[t]({up:{}},"",e),c(),!0}}function h(r){c(),up.viewport.saveScroll({location:n}),function(n){t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return(null==n?void 0:n.up)?(t=a(),[4,up.render({url:t,history:!0,location:t,peel:!0,layer:"root",target:s.restoreTargets,cache:!0,keep:!1,scroll:"restore",saveScroll:!1})]):[3,2];case 1:return e.sent(),d("up:location:changed",{url:t=a(),reason:"pop",log:"Restored location "+t}),[3,3];case 2:up.puts("pop","Ignoring a state not pushed by Unpoly (%o)",n),e.label=3;case 3:return[2]}}))}))}(r.state)}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.find(up.layer.stack.reversed(),"history");return n.emit.apply(n,t)}function y(){window.history.scrollRestoration="manual",window.addEventListener("popstate",h),"GET"===up.protocol.initialRequestMethod()&&l(a(),{event:!1})}return c(),up.on("up:app:boot",(function(){"jasmine"in window?y():setTimeout(y,100)})),up.macro("a[up-back], [up-href][up-back]",(function(t){n&&(i.setMissingAttrs(t,{"up-href":n,"up-scroll":"restore"}),t.removeAttribute("up-back"),up.link.makeFollowable(t))})),up.on("up:framework:reset",(function(){s.reset(),n=void 0,r=void 0,c()})),{config:s,push:function(t){!p(t=u(t))&&f("pushState",t)&&up.emit("up:location:changed",{url:t,reason:"push",log:"Advanced to location "+o.urlWithoutHost(t)})},replace:l,get location(){return a()},get previousLocation(){return n},isLocation:p,normalizeURL:u}}()},9443:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},s=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(7921);var u=up.util,a=up.element;up.layer=function(){var t=[up.Layer.Root,up.Layer.Modal,up.Layer.Popup,up.Layer.Drawer,up.Layer.Cover],e=new up.Config((function(){for(var e={mode:"modal",any:{mainTargets:["[up-main='']","main",":layer"]},root:{mainTargets:["[up-main~=root]"],history:!0},overlay:{mainTargets:["[up-main~=overlay]"],openAnimation:"fade-in",closeAnimation:"fade-out",dismissLabel:"×",dismissAriaLabel:"Dismiss dialog",dismissable:!0,history:"auto"},cover:{mainTargets:["[up-main~=cover]"]},drawer:{mainTargets:["[up-main~=drawer]"],backdrop:!0,position:"left",size:"medium",openAnimation:function(t){switch(t.position){case"left":return"move-from-left";case"right":return"move-from-right"}},closeAnimation:function(t){switch(t.position){case"left":return"move-to-left";case"right":return"move-to-right"}}},modal:{mainTargets:["[up-main~=modal]"],backdrop:!0,size:"medium"},popup:{mainTargets:["[up-main~=popup]"],position:"bottom",size:"medium",align:"left",dismissable:"outside key"}},n=0,r=t;n<r.length;n++){var o=r[n];e[o.mode].Class=o}return e})),n=null,c=[];function p(t){return"root"===t?[e.root,e.any]:[e[t],e.overlay,e.any]}function l(t){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t=u.options(t,{layer:"new",defaultToEmptyContent:!0,navigate:!0}),[4,up.render(t)];case 1:return[2,e.sent().layer]}}))}))}up.on("up:fragment:destroyed",(function(){n.sync()})),up.on("up:framework:boot",(function(){n=new up.LayerStack})),up.on("up:framework:reset",(function(){e.reset(),n.reset(),c=u.filter(c,"isDefault")}));var f={config:e,mainTargets:function(t){return u.flatMap(p(t),"mainTargets")},open:l,build:function(t,r){var o=t.mode,i=e[o].Class,a=u.reverse(p(o)),c=up.migrate.handleLayerConfig;return c&&a.forEach(c),t=u.mergeDefined.apply(u,s(s([],a),[{mode:o,stack:n},t])),r&&(t=r(t)),new i(t)},ask:function(t){return new Promise((function(e,n){l(t=r(r({},t),{onAccepted:function(t){return e(t.value)},onDismissed:function(t){return n(t.value)}}))}))},normalizeOptions:function(t){var o,i;if(null===(i=(o=up.migrate).handleLayerOptions)||void 0===i||i.call(o,t),u.isGiven(t.layer)){var s=String(t.layer).match(/^(new|shatter|swap)( (\w+))?/);if(s){t.layer="new";var a=s[1],c=s[3];t.mode||(t.mode=c||e.mode),"swap"===a?up.layer.isOverlay()&&(t.baseLayer="parent"):"shatter"===a&&(t.baseLayer="root")}}else t.mode?t.layer="new":u.isElementish(t.target)?t.layer=n.get(t.target,{normalizeLayerOptions:!1}):t.origin?t.layer="origin":t.layer="current";t.context||(t.context={}),t.baseLayer=n.get("current",r(r({},t),{normalizeLayerOptions:!1}))},openCallbackAttr:function(t,e){return a.callbackAttr(t,e,["layer"])},closeCallbackAttr:function(t,e){return a.callbackAttr(t,e,["layer","value"])},anySelector:function(){return u.map(t,(function(t){return t.selector()})).join(",")},optionToString:function(t){return u.isString(t)?'layer "'+t+'"':t.toString()},get stack(){return n}};return u.delegate(f,["get","getAll","root","overlays","current","front","sync","count","dismissOverlays"],(function(){return n})),u.delegate(f,["accept","dismiss","isRoot","isOverlay","isFront","on","off","emit","parent","history","location","mode","context","element","contains","size","affix"],(function(){return n.current})),f}()},3849:function(t,e,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(7298),up.link=function(){var t=up.util,e=up.element,n=new up.LinkPreloader,i=null,s=["a[up-content]","a[up-fragment]","a[up-document]"],u=["a[href]","[up-href]"],a=["[up-follow]","[up-target]","[up-layer]","[up-transition]","[up-preload]","[up-instant]"];function c(e,n){return t.flatMap(e,(function(t){return n.map((function(e){return t+e}))}))}var p=new up.Config((function(){return{followSelectors:c(u,a).concat(s),noFollowSelectors:["[up-follow=false]","a[download]","a[target]",'a[href^="#"]:not([up-content]):not([up-fragment]):not([up-document])','a[href^="javascript:"]'],instantSelectors:["[up-instant]"],noInstantSelectors:["[up-instant=false]","[onclick]"],preloadSelectors:c(u,["[up-preload]"]),noPreloadSelectors:["[up-preload=false]"],clickableSelectors:s.concat(["[up-emit]","[up-accept]","[up-dismiss]","[up-clickable]"]),preloadDelay:90,preloadEnabled:"auto"}}));function l(){return p.followSelectors.join(",")}function f(n){return e.matches(n,p.noFollowSelectors.join(","))||t.isCrossOrigin(n)}var h=up.mockable((function(t,e){return up.render(y(t,e))}));function d(e,n){n=t.options(n);var r=new up.OptionsParser(n,e);return n.url=function(t,e){void 0===e&&(e={});var n=e.url||t.getAttribute("href")||t.getAttribute("up-href");if("#"!==n)return n}(e,n),n.method=m(e,n),r.json("headers"),r.json("params"),r.booleanOrString("cache"),r.booleanOrString("clearCache"),r.boolean("solo"),r.string("contentType",{attr:["enctype","up-content-type"]}),n}function y(t,n){var r,o;n=d(t=up.fragment.get(t),n);var i=new up.OptionsParser(n,t,{fail:!0});return i.boolean("feedback"),i.boolean("fail"),null==i.options.origin&&(i.options.origin=t),i.boolean("navigate",{default:!0}),i.string("confirm"),i.string("target"),i.booleanOrString("fallback"),i.parse((function(t,n){return e.callbackAttr(t,n,["request","response","renderOptions"])}),"onLoaded"),i.string("content"),i.string("fragment"),i.string("document"),i.boolean("peel"),i.string("layer"),i.string("baseLayer"),i.json("context"),i.string("mode"),i.string("align"),i.string("position"),i.string("class"),i.string("size"),i.booleanOrString("dismissable"),i.parse(up.layer.openCallbackAttr,"onOpened"),i.parse(up.layer.closeCallbackAttr,"onAccepted"),i.parse(up.layer.closeCallbackAttr,"onDismissed"),i.string("acceptEvent"),i.string("dismissEvent"),i.string("acceptLocation"),i.string("dismissLocation"),i.booleanOrString("history"),i.booleanOrString("focus"),i.boolean("saveScroll"),i.booleanOrString("scroll"),i.boolean("revealTop"),i.number("revealMax"),i.number("revealPadding"),i.number("revealSnap"),i.string("scrollBehavior"),i.booleanOrString("history"),i.booleanOrString("location"),i.booleanOrString("title"),i.booleanOrString("animation"),i.booleanOrString("transition"),i.string("easing"),i.number("duration"),null===(o=(r=up.migrate).parseFollowOptions)||void 0===o||o.call(r,i),n.guardEvent||(n.guardEvent=up.event.build("up:link:follow",{log:"Following link"})),n}function m(e,n){return void 0===n&&(n={}),t.normalizeMethod(n.method||e.getAttribute("up-method")||e.getAttribute("data-method"))}function v(t){return t=up.fragment.get(t),e.matches(t,l())&&!f(t)}function g(t){v(t)||t.setAttribute("up-follow","")}function b(t){e.matches(t,"a[href], button")||(e.setMissingAttrs(t,{tabindex:"0",role:"link"}),t.addEventListener("keydown",(function(t){if("Enter"===t.key||"Space"===t.key)return k(t)})))}function w(t,n){if(t.defaultPrevented||f(n))return!1;var r="a, [up-href], "+up.form.fieldSelector(),o=e.closest(t.target,r);return!o||o===n}function O(t){var n,r=e.closest(t,p.instantSelectors.join(","));return r&&(n=r,!(e.matches(n,p.noInstantSelectors.join(","))||f(n)))}function k(t){var e=o(["clientX","clientY","button"],up.event.keyModifiers),n=up.event.fork(t,"up:click",e);up.emit(t.target,n,{log:!1})}return up.macro((function(){return p.clickableSelectors.join(",")}),b),up.on("up:click",l,(function(t,e){w(t,e)&&(up.event.halt(t),up.log.muteUncriticalRejection(h(e)))})),up.macro("[up-expand]",(function(t){var n=t.getAttribute("up-expand")||"a, [up-href]",r=e.get(t,n);if(r){var o=e.upAttrs(r);o["up-href"]||(o["up-href"]=r.getAttribute("href")),e.setMissingAttrs(t,o),g(t)}})),up.compiler((function(){return p.preloadSelectors.join(",")}),(function(t){(function(t){return!up.browser.canPushState()||e.matches(t,p.noPreloadSelectors.join(","))||f(t)||!function(t){var e=d(t);if(e.url)return null==e.cache&&(e.cache="auto"),e.basic=!0,new up.Request(e).willCache()}(t)})(t)||n.observeLink(t)})),up.on("up:framework:reset",(function(){i=null,p.reset(),n.reset()})),{follow:h,followOptions:y,preload:function(t,e){if(t=up.fragment.get(t),!("auto"===(n=p.preloadEnabled)?!up.network.shouldReduceRequests():n))return up.error.failed.async("Link preloading is disabled");var n,o=up.event.build("up:link:preload",{log:["Preloading link %o",t]});return h(t,r(r({},e),{guardEvent:o,preload:!0}))},makeFollowable:g,makeClickable:b,isSafe:function(t){var e=m(t);return up.network.isSafeMethod(e)},isFollowable:v,shouldFollowEvent:w,followMethod:m,convertClicks:function(t){t.on("click",(function(e,n){if(up.event.isUnmodified(e))return O(n)&&i?up.event.halt(e):t.wasHitByMouseEvent(e)&&(!i||i===e.target)&&k(e),i=null})),t.on("mousedown",(function(t,e){up.event.isUnmodified(t)&&(i=t.target,O(e)&&k(t))}))},config:p,combineFollowableSelectors:c}}(),up.follow=up.link.follow},4453:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.log=function(){var e=new up.store.Session("up.log"),n=new up.Config((function(){return{enabled:e.get("enabled"),banner:!0}})),r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.apply(void 0,t(["error"],e))};function o(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];r&&(up.browser.canFormatLog()?(o.unshift(""),o.unshift("color: #666666; padding: 1px 3px; border: 1px solid #bbbbbb; border-radius: 2px; font-size: 90%; display: inline-block"),r="%c"+n+"%c "+r):r="["+n+"] "+r,console[e].apply(console,t([r],o)))}function i(t){e.set("enabled",t),n.enabled=t}return up.on("up:app:boot",(function(){if(n.banner){var t=" __ _____ ___ ___ / /_ __\n/ // / _ \\/ _ \\/ _ \\/ / // / "+up.version+"\n\\___/_//_/ .__/\\___/_/\\_. / \n / / / /\n\n",e="";up.migrate.loaded||(e+="Load unpoly-migrate.js to enable deprecated APIs.\n\n"),n.enabled?e+="Call `up.log.disable()` to disable logging for this session.":e+="Call `up.log.enable()` to enable logging for this session.";var r="color: #777777";up.browser.canFormatLog()?console.log("%c"+t+"%c"+e,"font-family: monospace;"+r,r):console.log(t+e)}})),up.on("up:framework:reset",(function(){n.reset()})),{puts:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.enabled&&o.apply(void 0,t(["log"],e))},error:r,warn:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.apply(void 0,t(["warn"],e))},config:n,enable:function(){i(!0)},disable:function(){i(!1)},fail:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];throw r.apply(void 0,t(["error"],e)),up.error.failed(e)},muteUncriticalRejection:function(t){return t.catch((function(t){if("object"!=typeof t||!("AbortError"===t.name||t instanceof up.RenderResult||t instanceof up.Response))throw t}))},isEnabled:function(){return n.enabled}}}(),up.puts=up.log.puts,up.warn=up.log.warn,up.fail=up.log.fail},6535:function(){up.migrate={config:{}}},8374:function(){up.mockable=function(t){var e,n=function(){return(e||t).apply(null,arguments)};return n.mock=function(){return e=jasmine.createSpy("mockable",t)},document.addEventListener("up:framework:reset",(function(){return e=null})),n}},4034:function(){var t=this&&this.__assign||function(){return(t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},e=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function u(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};up.motion=function(){var r=up.util,o=up.element,i={},s={},u=new up.MotionController("motion"),a=new up.Config((function(){return{duration:175,easing:"ease",enabled:!matchMedia("(prefers-reduced-motion: reduce)").matches}}));function c(t){return r.pickBy(t,(function(t){return t.isDefault}))}function p(){return a.enabled}function l(t,e,n){return h(n),p()&&!w(e)&&n.duration>0&&!o.isSingleton(t)}function f(e,n,r){return r=t(t({},r),{finishEvent:u.finishEvent}),new up.CSSTransition(e,n,r).start()}function h(t){t.easing||(t.easing=a.easing),t.duration||(t.duration=a.duration)}function d(t){if(!w(t)){if(r.isFunction(t))return t;if(r.isArray(t))return y.apply(void 0,t);if(!r.isString(t))return up.fail("Unknown transition %o",t);var e=void 0;return t.indexOf("/")>=0?y.apply(void 0,t.split("/")):(e=s[t])?d(e):void 0}}function y(t,e){if(!w(t)&&!w(e)){var n=m(t)||r.asyncNoop,o=m(e)||r.asyncNoop;return function(t,e,r){return Promise.all([n(t,r),o(e,r)])}}}function m(t){return w(t)?void 0:r.isFunction(t)?t:r.isString(t)?i[e=t]||up.fail("Unknown animation %o",e):r.isOptions(t)?function(e,n){return f(e,t,n)}:up.fail("Unknown animation %o",t);var e}var v=up.mockable((function(t,e){o.replace(t,e)}));function g(t,e){var n=d(e);n.isDefault=up.framework.booting,s[t]=n}function b(t,e){var n=m(e);n.isDefault=up.framework.booting,i[t]=n}function w(t){return!t||"none"===t}function O(t,e,n){b(t,(function(t,r){return t.style.opacity=0,o.setStyle(t,{opacity:e}),f(t,{opacity:n},r)}))}function k(t,e){return{transform:"translate("+t+"px, "+e+"px)"}}function E(t){return o.setStyle(t,k(0,0)),t.getBoundingClientRect()}function S(t,e){var n="move-from-"+t;b("move-to-"+t,(function(t,n){var r=E(t);return f(t,e(r),n)})),b(n,(function(t,n){var r=E(t),i=e(r);return o.setStyle(t,i),f(t,k(0,0),n)}))}return O("fade-in",0,1),O("fade-out",1,0),S("top",(function(t){return k(0,-(t.top+t.height))})),S("bottom",(function(t){return k(0,up.viewport.rootHeight()-t.top)})),S("left",(function(t){return k(-(t.left+t.width),0)})),S("right",(function(t){return k(up.viewport.rootWidth()-t.left,0)})),g("cross-fade",["fade-out","fade-in"]),g("move-left",["move-to-left","move-from-right"]),g("move-right",["move-to-right","move-from-left"]),g("move-up",["move-to-top","move-from-bottom"]),g("move-down",["move-to-bottom","move-from-top"]),up.on("up:framework:boot",(function(){p()||up.puts("up.motion","Animations are disabled")})),up.on("up:framework:reset",(function(){u.reset(),i=c(i),s=c(s),a.reset()})),{morph:function(t,i,s,a){h(a=r.options(a)),t=up.fragment.get(t),i=up.fragment.get(i);var c=d(s),p=l(t,c,a),f=r.pluckKey(a,"beforeStart")||r.noop,y=r.pluckKey(a,"afterInsert")||r.noop,m=r.pluckKey(a,"beforeDetach")||r.noop,g=r.pluckKey(a,"afterDetach")||r.noop,b=r.pluckKey(a,"scrollNew")||r.asyncNoop;if(f(),p){if(u.isActive(t)&&!1===a.trackMotion)return c(t,i,a);up.puts("up.morph()","Morphing %o to %o with transition %O",t,i,s);var w=up.viewport.get(t),O=w.scrollTop,k=up.viewport.absolutize(t,{afterMeasure:function(){o.insertBefore(t,i),y()}});return u.startFunction([t,i],(function(){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return[4,b()];case 1:return n.sent(),e=w.scrollTop,k.moveBounds(0,e-O),[4,c(t,i,a)];case 2:return n.sent(),m(),o.remove(k.bounds),g(),[2]}}))}))}),a)}return m(),v(t,i),y(),g(),b()},animate:function(t,e,n){t=up.fragment.get(t),n=r.options(n);var i=m(e);return l(t,e,n)?u.startFunction(t,(function(){return i(t,n)}),n):function(t,e){return r.isOptions(e)&&o.setStyle(t,e),Promise.resolve()}(t,e)},finish:function(t){return u.finish(t)},finishCount:function(){return u.finishCount},transition:g,animation:b,config:a,isEnabled:p,isNone:w,willAnimate:l,swapElementsDirectly:v}}(),up.transition=up.motion.transition,up.animation=up.motion.animation,up.morph=up.motion.morph,up.animate=up.motion.animate},1647:function(t,e,n){n(2903);var r=up.util;up.network=function(){var t=new up.Config((function(){return{concurrency:4,wrapMethod:!0,cacheSize:70,cacheExpiry:3e5,badDownlink:.6,badRTT:750,badResponseTime:400,autoCache:function(t){return t.isSafe()},clearCache:function(t,e){return!t.isSafe()},requestMetaKeys:["target","failTarget","mode","failMode","context","failContext"],progressBar:!0}})),e=new up.Request.Queue,n=new up.Request.Cache,o=null;function i(t){var e,n,o=r.extractOptions(t);return o.url||(o.url=t[0]),null===(n=(e=up.migrate).handleRequestOptions)||void 0===n||n.call(e,o),o}function s(t){var r;if(t.willCache()&&(r=n.get(t)))return up.puts("up.request()","Re-using previous request to %s %s",t.method,t.url),t.preload||e.promoteToForeground(r),t.followState(r),!0}function u(o){return o.preload&&!o.isSafe()&&up.fail("Will not preload request to %s",o.description),function(e){e.willCache()&&n.set(e,e),r.always(e,(function(r){var o,i,s=null!==(i=null!==(o=r.clearCache)&&void 0!==o?o:e.clearCache)&&void 0!==i?i:t.clearCache(e,r);s&&n.clear(s),(e.willCache()||n.get(e))&&n.set(e,e),r.ok||n.remove(e)}))}(o),e.asap(o),!0}function a(){return e.isBusy()}var c=r.negate(a);function p(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.abort.apply(e,t)}return up.on("up:request:late",(function(){r.evalOption(t.progressBar)&&(o=new up.ProgressBar)})),up.on("up:request:recover",(function(){null==o||o.conclude()})),up.on("up:framework:reset",(function(){p(),e.reset(),t.reset(),n.clear(),null==o||o.destroy(),o=null})),{request:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new up.Request(i(t));s(r)||u(r);var o=r.solo;return o&&e.abortExcept(r,o),r},cache:n,isIdle:c,isBusy:a,isSafeMethod:function(t){return r.contains(["GET","OPTIONS","HEAD"],r.normalizeMethod(t))},config:t,abort:p,registerAliasForRedirect:function(t,e){if(t.cache&&e.url&&t.url!==e.url){var r=t.variant({method:e.method,url:e.url});n.alias(t,r)}},queue:e,shouldReduceRequests:function(){var e=navigator.connection;if(e)return e.saveData||e.rtt&&e.rtt>t.badRTT||e.downlink&&e.downlink<t.badDownlink},mimicLocalRequest:function(t){var e=t.solo;e&&p(e);var r=t.clearCache;r&&n.clear(r)}}}(),up.request=up.network.request,up.cache=up.network.cache},3535:function(){up.protocol=function(){var t=up.util,e=up.element,n=function(t){return"X-Up"+t.replace(/(^.|[A-Z])/g,(function(t){return"-"+t.toUpperCase()}))},r=function(e,r,o){void 0===o&&(o=t.identity);var i=e.getResponseHeader(n(r));if(i)return o(i)};function o(t){switch(t){case"true":return!0;case"false":return!1;default:return t}}var i=t.memoize((function(){return t.normalizeMethod(up.browser.popCookie("_up_method"))})),s=new up.Config((function(){return{methodParam:"_method",csrfParam:function(){return e.metaContent("csrf-param")},csrfToken:function(){return e.metaContent("csrf-token")},csrfHeader:"X-CSRF-Token"}}));function u(){s.reset()}return up.on("up:framework:reset",u),{config:s,reset:u,locationFromXHR:function(t){return r(t,"location")||t.responseURL},titleFromXHR:function(t){return r(t,"title")},targetFromXHR:function(t){return r(t,"target")},methodFromXHR:function(e){return r(e,"method",t.normalizeMethod)},acceptLayerFromXHR:function(t){return r(t,"acceptLayer",JSON.parse)},contextFromXHR:function(t){return r(t,"context",JSON.parse)},dismissLayerFromXHR:function(t){return r(t,"dismissLayer",JSON.parse)},eventPlansFromXHR:function(t){return r(t,"events",JSON.parse)},clearCacheFromXHR:function(t){return r(t,"clearCache",o)},csrfHeader:function(){return t.evalOption(s.csrfHeader)},csrfParam:function(){return t.evalOption(s.csrfParam)},csrfToken:function(){return t.evalOption(s.csrfToken)},initialRequestMethod:i,headerize:n,wrapMethod:function(t,e){return e.add(s.methodParam,t),"POST"}}}()},9615:function(){up.radio=function(){var t=up.util,e=up.element,n=new up.Config((function(){return{hungrySelectors:["[up-hungry]"],pollInterval:3e4,pollEnabled:"auto"}}));function r(r,o){var i,s;void 0===o&&(o={});var u=null!==(s=null!==(i=o.interval)&&void 0!==i?i:e.numberAttr(r,"up-interval"))&&void 0!==s?s:n.pollInterval,a=!1,c=null;function p(){a||(function(e){var r,o,i=t.evalOption(n.pollEnabled,e);return"auto"===i?!document.hidden&&!up.network.shouldReduceRequests()&&(null===(o=null===(r=up.layer.get(e))||void 0===r?void 0:r.isFront)||void 0===o?void 0:o.call(r)):i}(r)?t.always(up.reload(r,o),l):(up.puts("[up-poll]","Polling is disabled"),l(Math.min(1e4,u))))}function l(t){void 0===t&&(t=u),a||setTimeout(p,t)}function f(){a=!0,null==c||c.abort()}return o.onQueued=function(t){return c=t},up.on(r,"up:poll:stop",f),l(),f}return up.compiler("[up-poll]",r),up.on("up:framework:reset",(function(){n.reset()})),{config:n,hungrySelector:function(){return n.hungrySelectors.join(",")},startPolling:r,stopPolling:function(t){up.emit(t,"up:poll:stop")}}}()},6774:function(){var t,e;up.rails=(t=up.util,e=up.element,t.each(["method","confirm"],(function(t){var n="data-"+t,r="up-"+t;up.macro("a["+n+"]",(function(t){if((window._rails_loaded||window.Rails||(null===(o=window.jQuery)||void 0===o?void 0:o.rails))&&up.link.isFollowable(t))return e.setMissingAttr(t,r,t.getAttribute(n)),t.removeAttribute(n);var o}))})))},2514:function(){up.syntax=function(){var t=up.util,e=up.element,n={"[up-back]":-100,"[up-content]":-200,"[up-drawer]":-200,"[up-modal]":-200,"[up-cover]":-200,"[up-popup]":-200,"[up-tooltip]":-200,"[up-dash]":-200,"[up-expand]":-300,"[data-method]":-400,"[data-confirm]":-400},r=[],o=[];function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a(t);return c(r,n)}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a(t);return up.framework.booting&&(n.priority=u(n.selector)||up.fail("Unregistered priority for system macro %o",n.selector)),c(o,n)}function u(e){for(var r in e=t.evalOption(e),n){var o=n[r];if(e.indexOf(r)>=0)return o}}function a(e){var n=function(e){var n=e.shift(),r=e.pop();return[n,t.extractOptions(e),r]}(e),r=n[0],o=n[1],i=n[2];return o=t.options(o,{selector:r,isDefault:up.framework.booting,priority:0,batch:!1,keep:!1,jQuery:!1}),t.assign(i,o)}function c(t,e){for(var n,r=0;(n=t[r])&&n.priority>=e.priority;)r+=1;return t.splice(r,0,e),e}return up.on("up:framework:reset",(function(){r=t.filter(r,"isDefault"),o=t.filter(o,"isDefault")})),{compiler:i,macro:s,$compiler:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=i.apply(void 0,t);n.jQuery=!0},$macro:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=s.apply(void 0,t);return n.jQuery=!0,n},destructor:function(e,n){var r=e.upDestructors;r||(r=[],e.upDestructors=r,e.classList.add("up-can-clean")),t.isArray(n)?r.push.apply(r,n):r.push(n)},compile:function(t,e){var n=o.concat(r);new up.CompilerPass(t,n,e).run()},clean:function(t,e){void 0===e&&(e={}),new up.DestructorPass(t,e).run()},data:function(t){return t=up.fragment.get(t),e.jsonAttr(t,"up-data")||{}}}}(),up.compiler=up.syntax.compiler,up.$compiler=up.syntax.$compiler,up.destructor=up.syntax.destructor,up.macro=up.syntax.macro,up.$macro=up.syntax.$macro,up.data=up.syntax.data},7924:function(){var t=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};up.util=function(){function e(){}var n={host:"cross-domain",stripTrailingSlash:!1,search:!0,hash:!1};function r(t,e){e=M(e,n);var r,o,i=u(t),a="";"cross-domain"===e.host&&(e.host=s(i)),e.host&&(a+=i.protocol+"//"+i.hostname,r=i.protocol,(""===(o=(o=i.port).toString())||"80"===o)&&"http:"===r||"443"===o&&"https:"===r||(a+=":"+i.port));var c=i.pathname;return e.stripTrailingSlash&&(c=c.replace(/\/$/,"")),a+=c,e.search&&(a+=i.search),e.hash&&(a+=i.hash),a}var o=location.protocol,i=location.hostname;function s(t){if(k(t)&&-1===t.indexOf("//"))return!1;var e=u(t);return i!==e.hostname||o!==e.protocol}function u(t){var e;return L(t)?e=up.element.get(t):t.pathname?e=t:(e=document.createElement("a")).href=t,e.hostname||(e.href=e.href),"/"!==e.pathname[0]&&((e=W(e,["protocol","hostname","port","pathname","search","hash"])).pathname="/"+e.pathname),e}function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,o=e;r<o.length;r++){var i=o[r];for(var s in i)t[s]=i[s]}return t}var c=Object.assign||a,p=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))};function l(t){return k(t)?function(e){return e[t]}:t}function f(t,e){if(0===t.length)return[];e=l(e);for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n}function h(t,e){for(var n=0;n<t.length;n++)e(t[n],n)}function d(t){return null===t}function y(t){return void 0===t}var m=ct(y);function v(t){return y(t)||d(t)}var g=ct(v);function b(t){return!!v(t)||(_(t)&&t[b.key]?t[b.key]():k(t)||A(t)?0===t.length:!!S(t)&&0===Object.keys(t).length)}b.key="up.util.isBlank";var w=ct(b);function O(t){return"function"==typeof t}function k(t){return"string"==typeof t||t instanceof String}function E(t){return"number"==typeof t||t instanceof Number}function S(t){return"object"==typeof t&&!d(t)&&(y(t.constructor)||t.constructor===Object)}function _(t){var e=typeof t;return"object"===e&&!d(t)||"function"===e}function x(t){return t instanceof Element}function C(t){return t instanceof RegExp}function L(t){return up.browser.canJQuery()&&t instanceof jQuery}var T=Array.isArray;function A(t){return T(t)||P(t)||R(t)||L(t)||function(t){return t instanceof HTMLCollection}(t)}function P(t){return t instanceof NodeList}function R(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function F(t){return A(t)?t:v(t)?[]:[t]}function j(t){return _(t)&&t[j.key]?t=t[j.key]():A(t)?t=q(t):S(t)&&(t=c({},t)),t}function q(t){return Array.prototype.slice.call(t)}function D(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return c.apply(void 0,t([{}],e))}function M(t,e){return e?D(e,t):t?j(t):{}}function H(t,e){e=l(e);for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r)return r}}function N(t,e){e=l(e);for(var n=!0,r=0;r<t.length;r++)if(!e(t[r],r)){n=!1;break}return n}function B(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}function z(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}function U(t,e){e=l(e);var n=[];return h(t,(function(t,r){if(e(t,r))return n.push(t)})),n}function K(t){return Promise.resolve().then(t)}function V(t){return t[t.length-1]}function I(t,e){return t.indexOf(e)>=0}function W(t,e){for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];i in t&&(n[i]=t[i])}return n}function Q(t,e){e=l(e);var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n}j.key="up.util.copy",Date.prototype[j.key]=function(){return new Date(+this)};var G={"&":"&","<":"<",">":">",'"':""","'":"'"};function X(t,e){var n=t[e];return delete t[e],n}function $(t,e){if(e(V(t)))return t.pop()}function J(t){return $(t,S)||{}}function Y(t){return t}function Z(t){for(var e=[],n=0,r=t;n<r.length;n++){var o=r[n];A(o)?e.push.apply(e,o):e.push(o)}return e}function tt(t){return null==t?void 0:t.catch(e)}function et(t,e){if((null==t?void 0:t.valueOf)&&(t=t.valueOf()),(null==e?void 0:e.valueOf)&&(e=e.valueOf()),typeof t!=typeof e)return!1;if(A(t)&&A(e))return nt(t,e);if(_(t)&&t[et.key])return t[et.key](e);if(S(t)&&S(e)){var n=Object.keys(t);return!!nt(n,Object.keys(e))&&N(n,(function(n){return et(t[n],e[n])}))}return t===e}function nt(t,e){return t.length===e.length&&N(t,(function(t,n){return et(t,e[n])}))}et.key="up.util.isEqual";var rt=0;function ot(t){return t[0].toLowerCase()+t.slice(1)}function it(t){return t[0].toUpperCase()+t.slice(1)}function st(t){var e,n="";if(k(t))e=(e=(e=t.replace(/[\n\r\t ]+/g," ")).replace(/^[\n\r\t ]+/,"")).replace(/[\n\r\t ]$/,"");else if(y(t))e="undefined";else if(E(t)||O(t))e=t.toString();else if(T(t))e="["+f(t,st).join(", ")+"]",n="]";else if(L(t))e="$("+f(t,st).join(", ")+")",n=")";else if(x(t)){e="<"+t.tagName.toLowerCase();for(var r=0,o=["id","name","class"];r<o.length;r++){var i=o[r],s=t.getAttribute(i);s&&(e+=" "+i+'="'+s+'"')}e+=">",n=">"}else if(C(t))e=t.toString();else try{e=JSON.stringify(t)}catch(t){if("TypeError"!==t.name)throw t;e="(circular structure)"}return e.length>200&&(e=e.substr(0,200)+" …",e+=n),e}var ut=/%[oOdisf]/g;function at(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!e)return"";var o=0;return e.replace(ut,(function(){var e=n[o];return e=t(st(e)),o+=1,e}))}function ct(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(void 0,e)}}return{parseURL:u,normalizeURL:r,urlWithoutHost:function(t){return r(t,{host:!1})},matchURLs:function(t,e){return r(t)===r(e)},normalizeMethod:function(t){return t?t.toUpperCase():"GET"},methodAllowsPayload:function(t){return"GET"!==t&&"HEAD"!==t},assign:c,assignPolyfill:a,copy:j,copyArrayLike:q,merge:D,mergeDefined:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];if(i)for(var s in i){var u=i[s];m(u)&&(n[s]=u)}}return n},options:M,parseArgIntoOptions:function(t,e){var n=J(t);return m(t[0])&&((n=j(n))[e]=t[0]),n},each:h,eachIterator:function(t,e){for(var n;(n=t.next())&&!n.done;)e(n.value)},map:f,flatMap:function(t,e){return Z(f(t,e))},mapObject:function(t,e){return f(t,e).reduce((function(t,e){return t[e[0]]=e[1],t}),{})},findResult:H,some:function(t,e){return!!H(t,e)},every:N,find:function(t,e){var n;e=l(e);for(var r=0,o=t;r<o.length;r++){var i=o[r];if(e(i)){n=i;break}}return n},filter:U,reject:function(t,e){return U(t,e=ct(l(e)))},intersect:function(t,e){return U(t,(function(t){return I(e,t)}))},compact:function(t){return U(t,g)},compactObject:function(t){return Q(t,g)},uniq:function(t){return t.length<2?t:B(z(t))},uniqBy:function(t,e){if(t.length<2)return t;e=l(e);var n=new Set;return U(t,(function(t,r){var o=e(t,r);return!n.has(o)&&(n.add(o),!0)}))},last:V,isNull:d,isDefined:m,isUndefined:y,isGiven:g,isMissing:v,isPresent:w,isBlank:b,presence:function(t,e){if(void 0===e&&(e=w),e(t))return t},isObject:_,isFunction:O,isString:k,isBoolean:function(t){return"boolean"==typeof t||t instanceof Boolean},isNumber:E,isElement:x,isJQuery:L,isElementish:function(t){var e;return!(!t||!t.addEventListener&&!(null===(e=t[0])||void 0===e?void 0:e.addEventListener))},isPromise:function(t){return _(t)&&O(t.then)},isOptions:S,isArray:T,isFormData:function(t){return t instanceof FormData},isNodeList:P,isArguments:R,isList:A,isRegExp:C,timer:function(t,e){return setTimeout(e,t)},contains:I,objectContains:function(t,e){return et(e,W(t,Object.keys(e)))},toArray:function(t){return T(t)?t:q(t)},pick:W,pickBy:Q,omit:function(t,e){return Q(t,(function(t,n){return!I(e,n)}))},unresolvablePromise:function(){return new Promise(e)},remove:function(t,e){var n=t.indexOf(e);if(n>=0)return t.splice(n,1),e},memoize:function(t){var e,n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n?e:(n=!0,e=t.apply(this,r))}},pluckKey:X,renameKey:function(t,e,n){return t[n]=X(t,e)},extractOptions:J,extractCallback:function(t){return $(t,O)},noop:e,asyncNoop:function(){return Promise.resolve()},identity:Y,escapeHTML:function(t){return t.replace(/[&<>"']/g,(function(t){return G[t]}))},escapeRegExp:function(t){return t.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},sequence:function(t){return 1===t.length?t[0]:function(){return f(t,(function(t){return t()}))}},evalOption:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return O(t)?t.apply(void 0,e):t},flatten:Z,isTruthy:function(t){return!!t},newDeferred:function(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n.promise=function(){return n},n},always:function(t,e){return t.then(e,e)},muteRejection:tt,asyncify:function(t){try{return Promise.resolve(t())}catch(t){return Promise.reject(t)}},isBasicObjectProperty:function(t){return Object.prototype.hasOwnProperty(t)},isCrossOrigin:s,task:function(t){return setTimeout(t)},microtask:K,abortableMicrotask:function(t){var e=!1;return K((function(){if(!e)return t()})),function(){return e=!0}},isEqual:et,splitValues:function(t,e){return void 0===e&&(e=" "),k(t)?t=U(t=f(t=t.split(e),(function(t){return t.trim()})),w):F(t)},endsWith:function(t,e){return t.substring(t.length-e.length)===e},wrapList:F,wrapValue:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n[0]instanceof e?n[0]:new(e.bind.apply(e,t([void 0],n)))},simpleEase:function(t){return t<.5?2*t*t:t*(4-2*t)-1},values:p,arrayToSet:z,setToArray:B,uid:function(){return rt++},upperCaseFirst:it,lowerCaseFirst:ot,getter:function(t,e,n){Object.defineProperty(t,e,{get:n})},delegate:function(t,e,n){F(e).forEach((function(e){Object.defineProperty(t,e,{get:function(){var t=n.call(this),r=t[e];return O(r)&&(r=r.bind(t)),r},set:function(t){n.call(this)[e]=t}})}))},reverse:function(t){return j(t).reverse()},prefixCamelCase:function(t,e){return e+it(t)},unprefixCamelCase:function(t,e){var n=new RegExp("^"+e+"(.+)$"),r=t.match(n);if(r)return ot(r[1])},camelToKebabCase:function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))},nullToUndefined:function(t){if(!d(t))return t},sprintf:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return at.apply(void 0,t([Y,e],n))},sprintfWithFormattedArgs:at,renameKeys:function(t,e){var n={};for(var r in t)n[e(r)]=t[r];return n},timestamp:function(){return Math.floor(.001*Date.now())},allSettled:function(t){return Promise.all(f(t,tt))},negate:ct}}()},4606:function(t,e,n){var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};n(573),up.viewport=function(){var t=up.util,e=up.element,n=up.fragment,o=new up.Config((function(){return{viewportSelectors:["[up-viewport]","[up-fixed]"],fixedTop:["[up-fixed~=top]"],fixedBottom:["[up-fixed~=bottom]"],anchoredRight:["[up-anchored~=right]","[up-fixed~=top]","[up-fixed~=bottom]","[up-fixed~=right]"],revealSnap:200,revealPadding:0,revealTop:!1,revealMax:function(){return.5*window.innerHeight},scrollSpeed:1}})),i=new up.MotionController("scrolling");function s(t,e,r){void 0===r&&(r={}),t=n.get(t,r);var o=new up.ScrollMotion(t,e,r);i.startMotion(t,o,r)}function u(e,r){if(r=t.options(r),e=n.get(e,r),!(r.layer=up.layer.get(e)))return up.error.failed.async("Cannot reveal a detached element");r.peel&&r.layer.peel();var o=new up.RevealMotion(e,r);return i.startMotion(e,o,r)}function a(t,e){if(void 0===e&&(e={}),up.browser.isIE11()){var n=l(t),r=n.scrollTop;t.focus(),n.scrollTop=r}else t.focus({preventScroll:!0});if(!e.preventScroll)return u(t)}function c(t,e){void 0===t&&(t=location.hash);var n=E(t,e);if(n)return up.reveal(n,{top:!0})}function p(){return r([d()],o.viewportSelectors).join(",")}function l(t,r){void 0===r&&(r={});var o=n.get(t,r);return e.closest(o,p())}function f(t,r){return void 0===r&&(r={}),t=n.get(t,r),e.around(t,p())}function h(t){return void 0===t&&(t={}),n.all(p(),t)}function d(){var t;return(t=document.scrollingElement)?t.tagName:"html"}function y(){return document.querySelector(d())}function m(t){var n=e.style(t,"overflow-y");return"auto"===n||"scroll"===n}var v=t.memoize((function(){var t=up.element.affix(document.body,"[up-viewport]",{style:{position:"absolute",top:"0",left:"0",width:"100px",height:"100px",overflowY:"scroll"}}),e=t.offsetWidth-t.clientWidth;return up.element.remove(t),e}));function g(t){return up.fragment.toTarget(t)}function b(t){void 0===t&&(t=document);var e=["[up-fixed]"].concat(o.fixedTop).concat(o.fixedBottom);return t.querySelectorAll(e.join(","))}function w(e){return t.mapObject(e,(function(t){return[g(t),t.scrollTop]}))}function O(e){var n=t.copy(t.extractOptions(e));return n.layer=up.layer.get(n),[e[0]?[l(e[0],n)]:n.around?f(n.around,n):h(n),n]}function k(e,n){var r=t.map(e,(function(t){var e=g(t);return s(t,n[e]||0,{duration:0})}));return Promise.all(r)}function E(t,r){if(void 0===r&&(r={}),t=null==(i=t)?void 0:i.replace(/^#/,"")){var o=[e.attributeSelector("id",t),"a"+e.attributeSelector("name",t)].join(",");return n.get(o,r)}var i}var S=!1;return up.on("scroll",{once:!0},(function(){return S=!0})),up.on("up:app:boot",(function(){return t.task((function(){if(!S)return c()}))})),up.on(window,"hashchange",(function(){return c()})),up.on("up:framework:reset",(function(){o.reset(),i.reset()})),{reveal:u,revealHash:c,firstHashTarget:E,scroll:s,config:o,get:l,subtree:function(t,r){return void 0===r&&(r={}),t=n.get(t,r),e.subtree(t,p())},around:f,all:h,rootSelector:d,get root(){return y()},rootWidth:function(){return e.root.clientWidth},rootHeight:function(){return e.root.clientHeight},rootHasReducedWidthFromScrollbar:function(){return window.innerWidth>document.documentElement.offsetWidth},rootOverflowElement:function(){var e=document.body,n=document.documentElement;return t.find([n,e],m)||y()},isRoot:function(t){return e.matches(t,d())},scrollbarWidth:v,scrollTops:function(e){return void 0===e&&(e={}),t.mapObject(h(e),(function(t){return[g(t),t.scrollTop]}))},saveScroll:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=O(e),o=r[0],i=r[1],s=i.location||i.layer.location;if(s){var u=null!==(t=i.tops)&&void 0!==t?t:w(o);i.layer.lastScrollTops.set(s,u)}},restoreScroll:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=O(e),o=r[0],i=r[1],s=i.layer.location,u=i.layer.lastScrollTops.get(s)||{};return up.puts("up.viewport.restoreScroll()","Restoring scroll positions for URL %s to %o",t.urlWithoutHost(s),u),k(o,u)},resetScroll:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=O(t),r=n[0];return n[1],k(r,{})},anchoredRight:function(){var t=o.anchoredRight.join(",");return n.all(t,{layer:"root"})},fixedElements:b,absolutize:function(n,r){var o;void 0===r&&(r={});var i=l(n).getBoundingClientRect(),s=n.getBoundingClientRect(),u=new up.Rect({left:s.left-i.left,top:s.top-i.top,width:s.width,height:s.height});null===(o=r.afterMeasure)||void 0===o||o.call(r),e.setStyle(n,{position:"static"===n.style.position?"static":"relative",top:"auto",right:"auto",bottom:"auto",left:"auto",width:"100%",height:"100%"});var a=e.createFromSelector("up-bounds");e.insertBefore(n,a),a.appendChild(n);var c=function(t,n){return u.left+=t,u.top+=n,e.setStyle(a,u)};c(0,0);var p=n.getBoundingClientRect();return c(s.left-p.left,s.top-p.top),t.each(b(n),e.fixedToAbsolute),{bounds:a,moveBounds:c}},focus:a,tryFocus:function(t,e){return a(t,e),t===document.activeElement},makeFocusable:function(t){t.hasAttribute("tabindex")||function(t){return e.matches(t,"a[href], button, textarea, input, select")}(t)||(t.setAttribute("tabindex","-1"),t.classList.add("up-focusable-content"))}}}(),up.focus=up.viewport.focus,up.scroll=up.viewport.scroll,up.reveal=up.viewport.reveal},3507:function(){window.up={version:"2.2.1"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n(3507),n(8374),n(7924),n(3924),n(6535),n(2811),n(9675),n(2406),n(3742),n(3115),n(1279),n(6346),n(3030),n(7948),n(1752),n(8228),n(7050),n(9441),n(7422),n(9005),n(2200),n(1569),n(2737),n(3635),n(1906),n(4158),n(3139),n(6866),n(665),n(2828),n(2587),n(7031),n(4850),n(6267),n(7956),n(7403),n(6412),n(7965),n(7771),n(86),n(4552),n(5580),n(7101),n(6066),n(6387),n(5390),n(2618),n(7792),n(1104),n(8665),n(3645),n(7782),n(2705),n(606),n(5437),n(7974),n(6413),n(5221),n(2298),n(4517),n(7241),n(2723),n(6956),n(8720),n(104),n(5438),n(7885),n(4818),n(9634),n(8670),n(3535),n(4453),n(2514),n(8944),n(2667),n(4606),n(4034),n(1647),n(9443),n(3849),n(2851),n(454),n(9615),n(6774),up.framework.boot()}();
|
data/assets/unpoly/unpoly.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
@module up
|
9
9
|
*/
|
10
10
|
window.up = {
|
11
|
-
version: '2.2.
|
11
|
+
version: '2.2.1'
|
12
12
|
};
|
13
13
|
|
14
14
|
|
@@ -207,7 +207,7 @@ up.util = (function () {
|
|
207
207
|
// In IE11 the #hostname and #port properties of unqualified URLs are empty strings.
|
208
208
|
// We can fix this by setting the link's { href } on the link itself.
|
209
209
|
if (!link.hostname) {
|
210
|
-
link.href = link.href;
|
210
|
+
link.href = link.href; // eslint-disable-line no-self-assign
|
211
211
|
}
|
212
212
|
// Some IEs don't include a leading slash in the #pathname property.
|
213
213
|
// We have confirmed this in IE11 and earlier.
|
@@ -1597,7 +1597,7 @@ up.util = (function () {
|
|
1597
1597
|
// totalValue += entryValue
|
1598
1598
|
// totalValue
|
1599
1599
|
function isBasicObjectProperty(k) {
|
1600
|
-
return Object.prototype.hasOwnProperty(k);
|
1600
|
+
return Object.prototype.hasOwnProperty(k); // eslint-disable-line no-prototype-builtins
|
1601
1601
|
}
|
1602
1602
|
/*-
|
1603
1603
|
Returns whether the two arguments are equal by value.
|
@@ -1841,7 +1841,7 @@ up.util = (function () {
|
|
1841
1841
|
for (let attr of ['id', 'name', 'class']) {
|
1842
1842
|
let value = arg.getAttribute(attr);
|
1843
1843
|
if (value) {
|
1844
|
-
string += ` ${attr}
|
1844
|
+
string += ` ${attr}="${value}"`;
|
1845
1845
|
}
|
1846
1846
|
}
|
1847
1847
|
string += ">";
|
@@ -1869,7 +1869,7 @@ up.util = (function () {
|
|
1869
1869
|
}
|
1870
1870
|
return string;
|
1871
1871
|
}
|
1872
|
-
const SPRINTF_PLACEHOLDERS =
|
1872
|
+
const SPRINTF_PLACEHOLDERS = /%[oOdisf]/g;
|
1873
1873
|
function secondsSinceEpoch() {
|
1874
1874
|
return Math.floor(Date.now() * 0.001);
|
1875
1875
|
}
|
@@ -2763,7 +2763,7 @@ up.element = (function () {
|
|
2763
2763
|
// Attribute values might contain spaces, and then we would incorrectly
|
2764
2764
|
// split depths at that space.
|
2765
2765
|
const attrValues = [];
|
2766
|
-
const selectorWithoutAttrValues = selector.replace(/\[([\w-]+)(?:[
|
2766
|
+
const selectorWithoutAttrValues = selector.replace(/\[([\w-]+)(?:[~|^$*]?=(["'])?([^\2\]]*?)\2)?\]/g, function (_match, attrName, _quote, attrValue) {
|
2767
2767
|
attrValues.push(attrValue || '');
|
2768
2768
|
return `[${attrName}]`;
|
2769
2769
|
});
|
@@ -2781,7 +2781,7 @@ up.element = (function () {
|
|
2781
2781
|
if (!rootElement) {
|
2782
2782
|
rootElement = depthElement;
|
2783
2783
|
}
|
2784
|
-
depthSelector = depthSelector.replace(
|
2784
|
+
depthSelector = depthSelector.replace(/#([\w-]+)/, function (_match, id) {
|
2785
2785
|
depthElement.id = id;
|
2786
2786
|
return '';
|
2787
2787
|
});
|
@@ -2912,7 +2912,7 @@ up.element = (function () {
|
|
2912
2912
|
*/
|
2913
2913
|
function attributeSelector(attribute, value) {
|
2914
2914
|
value = value.replace(/"/g, '\\"');
|
2915
|
-
return `[${attribute}
|
2915
|
+
return `[${attribute}="${value}"]`;
|
2916
2916
|
}
|
2917
2917
|
function trueAttributeSelector(attribute) {
|
2918
2918
|
return `[${attribute}]:not([${attribute}=false])`;
|
@@ -3143,16 +3143,19 @@ up.element = (function () {
|
|
3143
3143
|
function booleanAttr(element, attribute, pass) {
|
3144
3144
|
const value = stringAttr(element, attribute);
|
3145
3145
|
switch (value) {
|
3146
|
-
case 'false':
|
3146
|
+
case 'false': {
|
3147
3147
|
return false;
|
3148
|
+
}
|
3148
3149
|
case 'true':
|
3149
3150
|
case '':
|
3150
|
-
case attribute:
|
3151
|
+
case attribute: {
|
3151
3152
|
return true;
|
3152
|
-
|
3153
|
+
}
|
3154
|
+
default: {
|
3153
3155
|
if (pass) {
|
3154
3156
|
return value;
|
3155
3157
|
}
|
3158
|
+
}
|
3156
3159
|
}
|
3157
3160
|
}
|
3158
3161
|
/*-
|
@@ -3188,7 +3191,7 @@ up.element = (function () {
|
|
3188
3191
|
let value = element.getAttribute(attribute);
|
3189
3192
|
if (value) {
|
3190
3193
|
value = value.replace(/_/g, '');
|
3191
|
-
if (value.match(/^[\d
|
3194
|
+
if (value.match(/^[\d.]+$/)) {
|
3192
3195
|
return parseFloat(value);
|
3193
3196
|
}
|
3194
3197
|
}
|
@@ -3502,7 +3505,7 @@ up.Record = class Record {
|
|
3502
3505
|
keys() {
|
3503
3506
|
throw 'Return an array of keys';
|
3504
3507
|
}
|
3505
|
-
defaults(
|
3508
|
+
defaults(_options) {
|
3506
3509
|
return {};
|
3507
3510
|
}
|
3508
3511
|
constructor(options) {
|
@@ -3694,7 +3697,6 @@ up.Cache = class Cache {
|
|
3694
3697
|
/* 11 */
|
3695
3698
|
/***/ (() => {
|
3696
3699
|
|
3697
|
-
const u = up.util;
|
3698
3700
|
up.Rect = class Rect extends up.Record {
|
3699
3701
|
keys() {
|
3700
3702
|
return [
|
@@ -3980,7 +3982,6 @@ up.Change.DestroyFragment = class DestroyFragment extends up.Change.Removal {
|
|
3980
3982
|
/* 17 */
|
3981
3983
|
/***/ (() => {
|
3982
3984
|
|
3983
|
-
const u = up.util;
|
3984
3985
|
up.Change.OpenLayer = class OpenLayer extends up.Change.Addition {
|
3985
3986
|
constructor(options) {
|
3986
3987
|
super(options);
|
@@ -4018,7 +4019,7 @@ up.Change.OpenLayer = class OpenLayer extends up.Change.Addition {
|
|
4018
4019
|
if (!this.content || this.baseLayer.isClosed()) {
|
4019
4020
|
throw this.notApplicable();
|
4020
4021
|
}
|
4021
|
-
up.puts('up.render()', `Opening element
|
4022
|
+
up.puts('up.render()', `Opening element "${this.target}" in new overlay`);
|
4022
4023
|
this.options.title = this.improveHistoryValue(this.options.title, responseDoc.getTitle());
|
4023
4024
|
if (this.emitOpenEvent().defaultPrevented) {
|
4024
4025
|
// We cannot use @abortWhenLayerClosed() here,
|
@@ -4184,7 +4185,7 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4184
4185
|
// and the response document.
|
4185
4186
|
this.matchPostflight();
|
4186
4187
|
// Don't log @target since that does not include hungry elements
|
4187
|
-
up.puts('up.render()', `Updating
|
4188
|
+
up.puts('up.render()', `Updating "${this.bestPreflightSelector()}" in ${this.layer}`);
|
4188
4189
|
this.options.title = this.improveHistoryValue(this.options.title, this.responseDoc.getTitle());
|
4189
4190
|
// Make sure only the first step will have scroll-related options.
|
4190
4191
|
this.setScrollAndFocusOptions();
|
@@ -4227,11 +4228,10 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4227
4228
|
});
|
4228
4229
|
}
|
4229
4230
|
async executeStep(step) {
|
4230
|
-
let promise;
|
4231
4231
|
// Remember where the element came from to support up.reload(element).
|
4232
4232
|
this.setSource(step);
|
4233
4233
|
switch (step.placement) {
|
4234
|
-
case 'swap':
|
4234
|
+
case 'swap': {
|
4235
4235
|
let keepPlan = this.findKeepPlan(step);
|
4236
4236
|
if (keepPlan) {
|
4237
4237
|
// Since we're keeping the element that was requested to be swapped,
|
@@ -4271,7 +4271,8 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4271
4271
|
await up.morph(step.oldElement, step.newElement, step.transition, morphOptions);
|
4272
4272
|
}
|
4273
4273
|
break;
|
4274
|
-
|
4274
|
+
}
|
4275
|
+
case 'content': {
|
4275
4276
|
let oldWrapper = e.wrapChildren(step.oldElement);
|
4276
4277
|
// oldWrapper.appendTo(step.oldElement)
|
4277
4278
|
let newWrapper = e.wrapChildren(step.newElement);
|
@@ -4287,8 +4288,9 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4287
4288
|
// Unwrapping will destroy focus, so we need to handle it again.
|
4288
4289
|
await this.handleFocus(step.oldElement, step);
|
4289
4290
|
break;
|
4291
|
+
}
|
4290
4292
|
case 'before':
|
4291
|
-
case 'after':
|
4293
|
+
case 'after': {
|
4292
4294
|
// We're either appending or prepending. No keepable elements must be honored.
|
4293
4295
|
// Text nodes are wrapped in an <up-wrapper> container so we can
|
4294
4296
|
// animate them and measure their position/size for scrolling.
|
@@ -4311,8 +4313,10 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4311
4313
|
// Remove the wrapper now that is has served it purpose
|
4312
4314
|
await e.unwrap(wrapper);
|
4313
4315
|
break;
|
4314
|
-
|
4316
|
+
}
|
4317
|
+
default: {
|
4315
4318
|
up.fail('Unknown placement: %o', step.placement);
|
4319
|
+
}
|
4316
4320
|
}
|
4317
4321
|
}
|
4318
4322
|
// Returns a object detailling a keep operation iff the given element is [up-keep] and
|
@@ -4388,7 +4392,7 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4388
4392
|
// up.fragment.expandTargets() was already called by up.Change.FromContent
|
4389
4393
|
for (let simpleTarget of u.splitValues(this.target, ',')) {
|
4390
4394
|
if (simpleTarget !== ':none') {
|
4391
|
-
const expressionParts = simpleTarget.match(/^(.+?)(
|
4395
|
+
const expressionParts = simpleTarget.match(/^(.+?)(?::(before|after))?$/);
|
4392
4396
|
if (!expressionParts) {
|
4393
4397
|
throw up.error.invalidSelector(simpleTarget);
|
4394
4398
|
}
|
@@ -4412,7 +4416,7 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4412
4416
|
// Note that step.oldElement might already have been set by @parseSteps().
|
4413
4417
|
step.oldElement || (step.oldElement = finder.find());
|
4414
4418
|
if (!step.oldElement) {
|
4415
|
-
throw this.notApplicable(`Could not find element
|
4419
|
+
throw this.notApplicable(`Could not find element "${this.target}" in current page`);
|
4416
4420
|
}
|
4417
4421
|
}
|
4418
4422
|
this.resolveOldNesting();
|
@@ -4430,7 +4434,7 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4430
4434
|
step.newElement = newElement;
|
4431
4435
|
}
|
4432
4436
|
else {
|
4433
|
-
throw this.notApplicable(`Could not find element
|
4437
|
+
throw this.notApplicable(`Could not find element "${this.target}" in server response`);
|
4434
4438
|
}
|
4435
4439
|
}
|
4436
4440
|
// Only when we have a match in the required selectors, we
|
@@ -4519,7 +4523,6 @@ up.Change.UpdateLayer = class UpdateLayer extends up.Change.Addition {
|
|
4519
4523
|
/***/ (() => {
|
4520
4524
|
|
4521
4525
|
const u = up.util;
|
4522
|
-
const e = up.element;
|
4523
4526
|
up.Change.CloseLayer = class CloseLayer extends up.Change.Removal {
|
4524
4527
|
constructor(options) {
|
4525
4528
|
super(options);
|
@@ -4605,7 +4608,6 @@ up.Change.CloseLayer = class CloseLayer extends up.Change.Removal {
|
|
4605
4608
|
/***/ (() => {
|
4606
4609
|
|
4607
4610
|
const u = up.util;
|
4608
|
-
const e = up.element;
|
4609
4611
|
up.Change.FromContent = class FromContent extends up.Change {
|
4610
4612
|
constructor(options) {
|
4611
4613
|
super(options);
|
@@ -5143,7 +5145,6 @@ up.CSSTransition = class CSSTransition {
|
|
5143
5145
|
/***/ (() => {
|
5144
5146
|
|
5145
5147
|
const u = up.util;
|
5146
|
-
const e = up.element;
|
5147
5148
|
up.DestructorPass = class DestructorPass {
|
5148
5149
|
constructor(fragment, options) {
|
5149
5150
|
this.fragment = fragment;
|
@@ -5623,7 +5624,6 @@ up.FieldObserver = class FieldObserver {
|
|
5623
5624
|
/* 29 */
|
5624
5625
|
/***/ (() => {
|
5625
5626
|
|
5626
|
-
const u = up.util;
|
5627
5627
|
const e = up.element;
|
5628
5628
|
const PRESERVE_KEYS = ['selectionStart', 'selectionEnd', 'scrollLeft', 'scrollTop'];
|
5629
5629
|
function transferProps(from, to) {
|
@@ -5857,7 +5857,6 @@ up.FragmentFocus = class FragmentFocus extends up.FragmentProcessor {
|
|
5857
5857
|
/***/ (() => {
|
5858
5858
|
|
5859
5859
|
const u = up.util;
|
5860
|
-
const e = up.element;
|
5861
5860
|
up.FragmentScrolling = class FragmentScrolling extends up.FragmentProcessor {
|
5862
5861
|
keys() {
|
5863
5862
|
return super.keys().concat([
|
@@ -5938,10 +5937,10 @@ up.FragmentScrolling = class FragmentScrolling extends up.FragmentProcessor {
|
|
5938
5937
|
const u = up.util;
|
5939
5938
|
const e = up.element;
|
5940
5939
|
up.HTMLWrapper = class HTMLWrapper {
|
5941
|
-
constructor(tagName
|
5940
|
+
constructor(tagName) {
|
5942
5941
|
this.tagName = tagName;
|
5943
5942
|
const openTag = `<${this.tagName}[^>]*>`;
|
5944
|
-
const closeTag =
|
5943
|
+
const closeTag = `</${this.tagName}>`;
|
5945
5944
|
const innerHTML = "(.|\\s)*?";
|
5946
5945
|
this.pattern = new RegExp(openTag + innerHTML + closeTag, 'ig');
|
5947
5946
|
this.attrName = `up-wrapped-${this.tagName}`;
|
@@ -6614,7 +6613,7 @@ up.Layer = class Layer extends up.Record {
|
|
6614
6613
|
selector(part) {
|
6615
6614
|
return this.constructor.selector(part);
|
6616
6615
|
}
|
6617
|
-
static selector(
|
6616
|
+
static selector(_part) {
|
6618
6617
|
throw up.error.notImplemented();
|
6619
6618
|
}
|
6620
6619
|
toString() {
|
@@ -7005,7 +7004,6 @@ up.Layer.Overlay = class Overlay extends up.Layer {
|
|
7005
7004
|
/* 37 */
|
7006
7005
|
/***/ (() => {
|
7007
7006
|
|
7008
|
-
const e = up.element;
|
7009
7007
|
up.Layer.OverlayWithTether = class OverlayWithTether extends up.Layer.Overlay {
|
7010
7008
|
createElements(content) {
|
7011
7009
|
if (!this.origin) {
|
@@ -7052,7 +7050,6 @@ up.Layer.OverlayWithTether = class OverlayWithTether extends up.Layer.Overlay {
|
|
7052
7050
|
/***/ (() => {
|
7053
7051
|
|
7054
7052
|
var _a;
|
7055
|
-
const e = up.element;
|
7056
7053
|
up.Layer.OverlayWithViewport = (_a = class OverlayWithViewport extends up.Layer.Overlay {
|
7057
7054
|
// For stubbing in tests
|
7058
7055
|
static getParentElement() {
|
@@ -7320,7 +7317,6 @@ up.LayerLookup = class LayerLookup {
|
|
7320
7317
|
/***/ (() => {
|
7321
7318
|
|
7322
7319
|
const u = up.util;
|
7323
|
-
const e = up.element;
|
7324
7320
|
up.LayerStack = class LayerStack extends Array {
|
7325
7321
|
constructor() {
|
7326
7322
|
super();
|
@@ -7453,7 +7449,6 @@ up.LayerStack = class LayerStack extends Array {
|
|
7453
7449
|
/* 46 */
|
7454
7450
|
/***/ (() => {
|
7455
7451
|
|
7456
|
-
const u = up.util;
|
7457
7452
|
up.LinkFeedbackURLs = class LinkFeedbackURLs {
|
7458
7453
|
constructor(link) {
|
7459
7454
|
const normalize = up.feedback.normalizeURL;
|
@@ -8510,7 +8505,7 @@ up.ProgressBar = class ProgressBar {
|
|
8510
8505
|
else {
|
8511
8506
|
// Above 80% completion we grow the bar more slowly,
|
8512
8507
|
// using a formula that can never reach 100%.
|
8513
|
-
diff = 0.13 * (100 - width) * Math.random();
|
8508
|
+
diff = 0.13 * (100 - this.width) * Math.random();
|
8514
8509
|
}
|
8515
8510
|
this.moveTo(this.width + diff);
|
8516
8511
|
this.step++;
|
@@ -8718,7 +8713,6 @@ up.RenderResult = class RenderResult extends up.Record {
|
|
8718
8713
|
/***/ (() => {
|
8719
8714
|
|
8720
8715
|
const u = up.util;
|
8721
|
-
const e = up.element;
|
8722
8716
|
/*-
|
8723
8717
|
A normalized description of an [HTTP request](/up.request).
|
8724
8718
|
|
@@ -10030,7 +10024,7 @@ const u = up.util;
|
|
10030
10024
|
// We want to make the default speed mimic Chrome's smooth scrolling behavior.
|
10031
10025
|
// We also want to keep the default value in up.viewport.config.scrollSpeed to be 1.
|
10032
10026
|
// For our calculation in #animationFrame() we need to multiply it with this factor.
|
10033
|
-
SPEED_CALIBRATION = 0.065;
|
10027
|
+
const SPEED_CALIBRATION = 0.065;
|
10034
10028
|
up.ScrollMotion = class ScrollMotion {
|
10035
10029
|
constructor(scrollable, targetTop, options = {}) {
|
10036
10030
|
this.scrollable = scrollable;
|
@@ -10313,7 +10307,7 @@ up.Tether = class Tether {
|
|
10313
10307
|
let left;
|
10314
10308
|
let top;
|
10315
10309
|
switch (this.alignAxis) {
|
10316
|
-
case 'horizontal': // position is 'top' or 'bottom'
|
10310
|
+
case 'horizontal': { // position is 'top' or 'bottom'
|
10317
10311
|
switch (this.position) {
|
10318
10312
|
case 'top':
|
10319
10313
|
top = anchorBox.top - elementMargin.bottom - elementBox.height;
|
@@ -10356,7 +10350,8 @@ up.Tether = class Tether {
|
|
10356
10350
|
// anchor
|
10357
10351
|
}
|
10358
10352
|
break;
|
10359
|
-
|
10353
|
+
}
|
10354
|
+
case 'vertical': { // position is 'left' or 'right'
|
10360
10355
|
switch (this.align) {
|
10361
10356
|
case 'top':
|
10362
10357
|
// anchored to the top, grows to the bottom
|
@@ -10391,6 +10386,7 @@ up.Tether = class Tether {
|
|
10391
10386
|
// anchor | margin | element
|
10392
10387
|
}
|
10393
10388
|
break;
|
10389
|
+
}
|
10394
10390
|
}
|
10395
10391
|
if (u.isDefined(left) || u.isDefined(top)) {
|
10396
10392
|
this.moveTo(left, top);
|
@@ -10442,7 +10438,7 @@ up.URLPattern = class URLPattern {
|
|
10442
10438
|
}
|
10443
10439
|
let reCode = list.map(this.normalizeURL).map(u.escapeRegExp).join('|');
|
10444
10440
|
reCode = reCode.replace(/\\\*/g, '.*?');
|
10445
|
-
reCode = reCode.replace(/(
|
10441
|
+
reCode = reCode.replace(/(:|\\\$)([a-z][\w-]*)/ig, (match, type, name) => {
|
10446
10442
|
// It's \\$ instead of $ because we do u.escapeRegExp above
|
10447
10443
|
if (type === '\\$') {
|
10448
10444
|
if (capture) {
|
@@ -13962,7 +13958,7 @@ up.fragment = (function () {
|
|
13962
13958
|
function getDumb(...args) {
|
13963
13959
|
return getAll(...args)[0];
|
13964
13960
|
}
|
13965
|
-
const CSS_HAS_SUFFIX_PATTERN =
|
13961
|
+
const CSS_HAS_SUFFIX_PATTERN = /:has\(([^)]+)\)$/;
|
13966
13962
|
/*-
|
13967
13963
|
Returns all elements matching the given selector, but
|
13968
13964
|
ignores elements that are being [destroyed](/up.destroy) or that are being
|
@@ -15306,7 +15302,7 @@ up.viewport = (function () {
|
|
15306
15302
|
return [viewports, options];
|
15307
15303
|
}
|
15308
15304
|
function resetScroll(...args) {
|
15309
|
-
const [viewports,
|
15305
|
+
const [viewports, _options] = parseOptions(args);
|
15310
15306
|
return setScrollTops(viewports, {});
|
15311
15307
|
}
|
15312
15308
|
function setScrollTops(viewports, tops) {
|
@@ -17704,7 +17700,7 @@ up.layer = (function () {
|
|
17704
17700
|
}
|
17705
17701
|
function optionToString(option) {
|
17706
17702
|
if (u.isString(option)) {
|
17707
|
-
return `layer
|
17703
|
+
return `layer "${option}"`;
|
17708
17704
|
}
|
17709
17705
|
else {
|
17710
17706
|
return option.toString();
|