UNPKG

fcf-deployer

Version:

A GUI to help you deploy your Firebase Cloud Functions when working locally

128 lines (127 loc) 38.8 kB
import{j as Ue}from"./singletons.8dae8caa.js";import{s as I,c as Z,f as O,h as U,u as J,g as Q,d as Y,i as x,r as $,j as W,k as se,p as oe,b as k,n as me,v as De,l as Le,m as Ge}from"./scheduler.18f76329.js";import{S as le,i as ue,g as ce,h as fe,j as ee,f as D,z as he,a as G,d as H,t as M,e as L,b as Oe,p as Pe,C as We,D as Be,J as ve,K as V,q as ge,r as ye,u as ke,v as Ae,w as _e}from"./index.6f2b8e44.js";function _t(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function B(i,e){const t={},n={},a={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const l in o)l in s||(n[l]=1);for(const l in s)a[l]||(t[l]=s[l],a[l]=1);i[r]=s}else for(const l in o)a[l]=1}for(const o in n)o in t||(t[o]=void 0);return t}function q(i){return typeof i=="object"&&i!==null?i:{}}const bt=Ue("goto"),Rt=i=>{try{return new URL(i),i}catch{return i}};function z(i){return Object.entries(i).filter(([e,t])=>e!==""&&t).map(([e])=>e).join(" ")}function Et(i,e,t,n={bubbles:!0},a=!1){if(typeof Event>"u")throw new Error("Event not defined.");if(!i)throw new Error("Tried to dipatch event without element.");const r=new CustomEvent(e,Object.assign(Object.assign({},n),{detail:t}));if(i==null||i.dispatchEvent(r),a&&e.startsWith("SMUI")){const o=new CustomEvent(e.replace(/^SMUI/g,()=>"MDC"),Object.assign(Object.assign({},n),{detail:t}));i==null||i.dispatchEvent(o),o.defaultPrevented&&r.preventDefault()}return r}const be=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,ze=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function de(i){let e,t=[];i.$on=(a,r)=>{let o=a,s=()=>{};return e?s=e(o,r):t.push([o,r]),o.match(be)&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',o),()=>{s()}};function n(a){const r=i.$$.callbacks[a.type];r&&r.slice().forEach(o=>o.call(this,a))}return a=>{const r=[],o={};e=(s,l)=>{let c=s,f=l,u=!1;const g=c.match(be),A=c.match(ze),d=g||A;if(c.match(/^SMUI:\w+:/)){const b=c.split(":");let p="";for(let C=0;C<b.length;C++)p+=C===b.length-1?":"+b[C]:b[C].split("-").map(h=>h.slice(0,1).toUpperCase()+h.slice(1)).join("");console.warn(`The event ${c.split("$")[0]} has been renamed to ${p.split("$")[0]}.`),c=p}if(d){const b=c.split(g?":":"$");c=b[0];const p=b.slice(1).reduce((C,h)=>(C[h]=!0,C),{});p.passive&&(u=u||{},u.passive=!0),p.nonpassive&&(u=u||{},u.passive=!1),p.capture&&(u=u||{},u.capture=!0),p.once&&(u=u||{},u.once=!0),p.preventDefault&&(f=je(f)),p.stopPropagation&&(f=Ie(f)),p.stopImmediatePropagation&&(f=qe(f)),p.self&&(f=Ne(a,f)),p.trusted&&(f=Ke(f))}const _=Re(a,c,f,u),v=()=>{_();const b=r.indexOf(v);b>-1&&r.splice(b,1)};return r.push(v),c in o||(o[c]=Re(a,c,n)),v};for(let s=0;s<t.length;s++)e(t[s][0],t[s][1]);return{destroy:()=>{for(let s=0;s<r.length;s++)r[s]();for(let s of Object.entries(o))s[1]()}}}}function Re(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function je(i){return function(e){return e.preventDefault(),i.call(this,e)}}function Ie(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function qe(i){return function(e){return e.stopImmediatePropagation(),i.call(this,e)}}function Ne(i,e){return function(t){if(t.target===i)return e.call(this,t)}}function Ke(i){return function(e){if(e.isTrusted)return i.call(this,e)}}function te(i,e){let t=[];if(e)for(let n=0;n<e.length;n++){const a=e[n],r=Array.isArray(a)?a[0]:a;Array.isArray(a)&&a.length>1?t.push(r(i,a[1])):t.push(r(i))}return{update(n){if((n&&n.length||0)!=t.length)throw new Error("You must not change the length of an actions array.");if(n)for(let a=0;a<n.length;a++){const r=t[a];if(r&&r.update){const o=n[a];Array.isArray(o)&&o.length>1?r.update(o[1]):r.update()}}},destroy(){for(let n=0;n<t.length;n++){const a=t[n];a&&a.destroy&&a.destroy()}}}}function Te(i){let e,t,n,a,r,o;const s=i[12].default,l=Z(s,i,i[11],null);let c=[{class:t=z({[i[1]]:!0,"smui-paper":!0,"smui-paper--raised":i[2]==="raised","smui-paper--unelevated":i[2]==="unelevated","smui-paper--outlined":i[2]==="outlined",["smui-paper--elevation-z"+i[5]]:i[5]!==0&&i[2]==="raised","smui-paper--rounded":!i[3],["smui-paper--color-"+i[4]]:i[4]!=="default","smui-paper-transition":i[6]})},i[9]],f={};for(let u=0;u<c.length;u+=1)f=O(f,c[u]);return{c(){e=ce("div"),l&&l.c(),this.h()},l(u){e=fe(u,"DIV",{class:!0});var g=ee(e);l&&l.l(g),g.forEach(D),this.h()},h(){he(e,f)},m(u,g){G(u,e,g),l&&l.m(e,null),i[13](e),a=!0,r||(o=[U(n=te.call(null,e,i[0])),U(i[8].call(null,e))],r=!0)},p(u,[g]){l&&l.p&&(!a||g&2048)&&J(l,s,u,u[11],a?Y(s,u[11],g,null):Q(u[11]),null),he(e,f=B(c,[(!a||g&126&&t!==(t=z({[u[1]]:!0,"smui-paper":!0,"smui-paper--raised":u[2]==="raised","smui-paper--unelevated":u[2]==="unelevated","smui-paper--outlined":u[2]==="outlined",["smui-paper--elevation-z"+u[5]]:u[5]!==0&&u[2]==="raised","smui-paper--rounded":!u[3],["smui-paper--color-"+u[4]]:u[4]!=="default","smui-paper-transition":u[6]})))&&{class:t},g&512&&u[9]])),n&&x(n.update)&&g&1&&n.update.call(null,u[0])},i(u){a||(H(l,u),a=!0)},o(u){M(l,u),a=!1},d(u){u&&D(e),l&&l.d(u),i[13](null),r=!1,$(o)}}}function Xe(i,e,t){const n=["use","class","variant","square","color","elevation","transition","getElement"];let a=W(e,n),{$$slots:r={},$$scope:o}=e;const s=de(se());let{use:l=[]}=e,{class:c=""}=e,{variant:f="raised"}=e,{square:u=!1}=e,{color:g="default"}=e,{elevation:A=1}=e,{transition:d=!1}=e,_;function v(){return _}function b(p){k[p?"unshift":"push"](()=>{_=p,t(7,_)})}return i.$$set=p=>{e=O(O({},e),oe(p)),t(9,a=W(e,n)),"use"in p&&t(0,l=p.use),"class"in p&&t(1,c=p.class),"variant"in p&&t(2,f=p.variant),"square"in p&&t(3,u=p.square),"color"in p&&t(4,g=p.color),"elevation"in p&&t(5,A=p.elevation),"transition"in p&&t(6,d=p.transition),"$$scope"in p&&t(11,o=p.$$scope)},[l,c,f,u,g,A,d,_,s,a,v,o,r,b]}class St extends le{constructor(e){super(),ue(this,e,Xe,Te,I,{use:0,class:1,variant:2,square:3,color:4,elevation:5,transition:6,getElement:10})}get getElement(){return this.$$.ctx[10]}}function Ve(i){let e=i[1],t,n,a=i[1]&&ie(i);return{c(){a&&a.c(),t=L()},l(r){a&&a.l(r),t=L()},m(r,o){a&&a.m(r,o),G(r,t,o),n=!0},p(r,o){r[1]?e?I(e,r[1])?(a.d(1),a=ie(r),e=r[1],a.c(),a.m(t.parentNode,t)):a.p(r,o):(a=ie(r),e=r[1],a.c(),a.m(t.parentNode,t)):e&&(a.d(1),a=null,e=r[1])},i(r){n||(H(a,r),n=!0)},o(r){M(a,r),n=!1},d(r){r&&D(t),a&&a.d(r)}}}function Ze(i){let e=i[1],t,n=i[1]&&ae(i);return{c(){n&&n.c(),t=L()},l(a){n&&n.l(a),t=L()},m(a,r){n&&n.m(a,r),G(a,t,r)},p(a,r){a[1]?e?I(e,a[1])?(n.d(1),n=ae(a),e=a[1],n.c(),n.m(t.parentNode,t)):n.p(a,r):(n=ae(a),e=a[1],n.c(),n.m(t.parentNode,t)):e&&(n.d(1),n=null,e=a[1])},i:me,o:me,d(a){a&&D(t),n&&n.d(a)}}}function Je(i){let e,t,n,a,r;const o=i[8].default,s=Z(o,i,i[7],null);let l=[i[5]],c={};for(let f=0;f<l.length;f+=1)c=O(c,l[f]);return{c(){e=We("svg"),s&&s.c(),this.h()},l(f){e=Be(f,"svg",{});var u=ee(e);s&&s.l(u),u.forEach(D),this.h()},h(){ve(e,c)},m(f,u){G(f,e,u),s&&s.m(e,null),i[9](e),n=!0,a||(r=[U(t=te.call(null,e,i[0])),U(i[4].call(null,e))],a=!0)},p(f,u){s&&s.p&&(!n||u&128)&&J(s,o,f,f[7],n?Y(o,f[7],u,null):Q(f[7]),null),ve(e,c=B(l,[u&32&&f[5]])),t&&x(t.update)&&u&1&&t.update.call(null,f[0])},i(f){n||(H(s,f),n=!0)},o(f){M(s,f),n=!1},d(f){f&&D(e),s&&s.d(f),i[9](null),a=!1,$(r)}}}function ie(i){let e,t,n,a,r;const o=i[8].default,s=Z(o,i,i[7],null);let l=[i[5]],c={};for(let f=0;f<l.length;f+=1)c=O(c,l[f]);return{c(){e=ce(i[1]),s&&s.c(),this.h()},l(f){e=fe(f,(i[1]||"null").toUpperCase(),{});var u=ee(e);s&&s.l(u),u.forEach(D),this.h()},h(){V(i[1])(e,c)},m(f,u){G(f,e,u),s&&s.m(e,null),i[11](e),n=!0,a||(r=[U(t=te.call(null,e,i[0])),U(i[4].call(null,e))],a=!0)},p(f,u){s&&s.p&&(!n||u&128)&&J(s,o,f,f[7],n?Y(o,f[7],u,null):Q(f[7]),null),V(f[1])(e,c=B(l,[u&32&&f[5]])),t&&x(t.update)&&u&1&&t.update.call(null,f[0])},i(f){n||(H(s,f),n=!0)},o(f){M(s,f),n=!1},d(f){f&&D(e),s&&s.d(f),i[11](null),a=!1,$(r)}}}function ae(i){let e,t,n,a,r=[i[5]],o={};for(let s=0;s<r.length;s+=1)o=O(o,r[s]);return{c(){e=ce(i[1]),this.h()},l(s){e=fe(s,(i[1]||"null").toUpperCase(),{}),ee(e).forEach(D),this.h()},h(){V(i[1])(e,o)},m(s,l){G(s,e,l),i[10](e),n||(a=[U(t=te.call(null,e,i[0])),U(i[4].call(null,e))],n=!0)},p(s,l){V(s[1])(e,o=B(r,[l&32&&s[5]])),t&&x(t.update)&&l&1&&t.update.call(null,s[0])},d(s){s&&D(e),i[10](null),n=!1,$(a)}}}function Qe(i){let e,t,n,a;const r=[Je,Ze,Ve],o=[];function s(l,c){return l[1]==="svg"?0:l[3]?1:2}return e=s(i),t=o[e]=r[e](i),{c(){t.c(),n=L()},l(l){t.l(l),n=L()},m(l,c){o[e].m(l,c),G(l,n,c),a=!0},p(l,[c]){let f=e;e=s(l),e===f?o[e].p(l,c):(Pe(),M(o[f],1,1,()=>{o[f]=null}),Oe(),t=o[e],t?t.p(l,c):(t=o[e]=r[e](l),t.c()),H(t,1),t.m(n.parentNode,n))},i(l){a||(H(t),a=!0)},o(l){M(t),a=!1},d(l){l&&D(n),o[e].d(l)}}}function Ye(i,e,t){let n;const a=["use","tag","getElement"];let r=W(e,a),{$$slots:o={},$$scope:s}=e,{use:l=[]}=e,{tag:c}=e;const f=de(se());let u;function g(){return u}function A(v){k[v?"unshift":"push"](()=>{u=v,t(2,u)})}function d(v){k[v?"unshift":"push"](()=>{u=v,t(2,u)})}function _(v){k[v?"unshift":"push"](()=>{u=v,t(2,u)})}return i.$$set=v=>{e=O(O({},e),oe(v)),t(5,r=W(e,a)),"use"in v&&t(0,l=v.use),"tag"in v&&t(1,c=v.tag),"$$scope"in v&&t(7,s=v.$$scope)},i.$$.update=()=>{i.$$.dirty&2&&t(3,n=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(c)>-1)},[l,c,u,n,f,r,g,s,o,A,d,_]}class He extends le{constructor(e){super(),ue(this,e,Ye,Qe,I,{use:0,tag:1,getElement:6})}get getElement(){return this.$$.ctx[6]}}function xe(i){let e;const t=i[11].default,n=Z(t,i,i[13],null);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,r){n&&n.m(a,r),e=!0},p(a,r){n&&n.p&&(!e||r&8192)&&J(n,t,a,a[13],e?Y(t,a[13],r,null):Q(a[13]),null)},i(a){e||(H(n,a),e=!0)},o(a){M(n,a),e=!1},d(a){n&&n.d(a)}}}function $e(i){let e,t,n;const a=[{tag:i[3]},{use:[i[8],...i[0]]},{class:z({[i[1]]:!0,[i[6]]:!0,...i[5]})},i[7],i[9]];var r=i[2];function o(s,l){let c={$$slots:{default:[xe]},$$scope:{ctx:s}};if(l!==void 0&&l&1003)c=B(a,[l&8&&{tag:s[3]},l&257&&{use:[s[8],...s[0]]},l&98&&{class:z({[s[1]]:!0,[s[6]]:!0,...s[5]})},l&128&&q(s[7]),l&512&&q(s[9])]);else for(let f=0;f<a.length;f+=1)c=O(c,a[f]);return{props:c}}return r&&(e=ge(r,o(i)),i[12](e)),{c(){e&&ye(e.$$.fragment),t=L()},l(s){e&&ke(e.$$.fragment,s),t=L()},m(s,l){e&&Ae(e,s,l),G(s,t,l),n=!0},p(s,[l]){if(l&4&&r!==(r=s[2])){if(e){Pe();const c=e;M(c.$$.fragment,1,0,()=>{_e(c,1)}),Oe()}r?(e=ge(r,o(s,l)),s[12](e),ye(e.$$.fragment),H(e.$$.fragment,1),Ae(e,t.parentNode,t)):e=null}else if(r){const c=l&1003?B(a,[l&8&&{tag:s[3]},l&257&&{use:[s[8],...s[0]]},l&98&&{class:z({[s[1]]:!0,[s[6]]:!0,...s[5]})},l&128&&q(s[7]),l&512&&q(s[9])]):{};l&8192&&(c.$$scope={dirty:l,ctx:s}),e.$set(c)}},i(s){n||(e&&H(e.$$.fragment,s),n=!0)},o(s){e&&M(e.$$.fragment,s),n=!1},d(s){s&&D(t),i[12](null),e&&_e(e,s)}}}const P={component:He,tag:"div",class:"",classMap:{},contexts:{},props:{}};function et(i,e,t){const n=["use","class","component","tag","getElement"];let a=W(e,n),{$$slots:r={},$$scope:o}=e,{use:s=[]}=e,{class:l=""}=e,c;const f=P.class,u={},g=[],A=P.contexts,d=P.props;let{component:_=P.component}=e,{tag:v=_===He?P.tag:void 0}=e;Object.entries(P.classMap).forEach(([h,ne])=>{const y=De(ne);y&&"subscribe"in y&&g.push(y.subscribe(R=>{t(5,u[h]=R,u)}))});const b=de(se());for(let h in A)A.hasOwnProperty(h)&&Le(h,A[h]);Ge(()=>{for(const h of g)h()});function p(){return c.getElement()}function C(h){k[h?"unshift":"push"](()=>{c=h,t(4,c)})}return i.$$set=h=>{e=O(O({},e),oe(h)),t(9,a=W(e,n)),"use"in h&&t(0,s=h.use),"class"in h&&t(1,l=h.class),"component"in h&&t(2,_=h.component),"tag"in h&&t(3,v=h.tag),"$$scope"in h&&t(13,o=h.$$scope)},[s,l,_,v,c,u,f,d,b,a,p,r,C,o]}class tt extends le{constructor(e){super(),ue(this,e,et,$e,I,{use:0,class:1,component:2,tag:3,getElement:10})}get getElement(){return this.$$.ctx[10]}}const Ee=Object.assign({},P);function pe(i){return new Proxy(tt,{construct:function(e,t){return Object.assign(P,Ee,i),new e(...t)},get:function(e,t){return Object.assign(P,Ee,i),e[t]}})}pe({class:"smui-paper__content",tag:"div"});pe({class:"smui-paper__title",tag:"h5"});pe({class:"smui-paper__subtitle",tag:"h6"});var re=function(i,e){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},re(i,e)};function nt(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");re(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var j=function(){return j=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},j.apply(this,arguments)};function wt(i,e,t,n){function a(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?r(f.value):a(f.value).then(s,l)}c((n=n.apply(i,e||[])).next())})}function Ct(i,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(n=1,a&&(r=c[0]&2?a.return:c[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;switch(a=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,a=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(i,t)}catch(f){c=[6,f],a=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function N(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dt(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var n=t.call(i),a,r=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)r.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return r}function Ot(i,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++)(r||!(n in e))&&(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return i.concat(r||Array.prototype.slice.call(e))}/** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var it=function(){function i(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i}();/** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function at(i,e){if(i.closest)return i.closest(e);for(var t=i;t;){if(Me(t,e))return t;t=t.parentElement}return null}function Me(i,e){var t=i.matches||i.webkitMatchesSelector||i.msMatchesSelector;return t.call(i,e)}function rt(i){var e=i;if(e.offsetParent!==null)return e.scrollWidth;var t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);var n=t.scrollWidth;return document.documentElement.removeChild(t),n}const st=Object.freeze(Object.defineProperty({__proto__:null,closest:at,estimateScrollWidth:rt,matches:Me},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var m={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},E=new Set;E.add(m.BACKSPACE);E.add(m.ENTER);E.add(m.SPACEBAR);E.add(m.PAGE_UP);E.add(m.PAGE_DOWN);E.add(m.END);E.add(m.HOME);E.add(m.ARROW_LEFT);E.add(m.ARROW_UP);E.add(m.ARROW_RIGHT);E.add(m.ARROW_DOWN);E.add(m.DELETE);E.add(m.ESCAPE);E.add(m.TAB);var w={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},S=new Map;S.set(w.BACKSPACE,m.BACKSPACE);S.set(w.ENTER,m.ENTER);S.set(w.SPACEBAR,m.SPACEBAR);S.set(w.PAGE_UP,m.PAGE_UP);S.set(w.PAGE_DOWN,m.PAGE_DOWN);S.set(w.END,m.END);S.set(w.HOME,m.HOME);S.set(w.ARROW_LEFT,m.ARROW_LEFT);S.set(w.ARROW_UP,m.ARROW_UP);S.set(w.ARROW_RIGHT,m.ARROW_RIGHT);S.set(w.ARROW_DOWN,m.ARROW_DOWN);S.set(w.DELETE,m.DELETE);S.set(w.ESCAPE,m.ESCAPE);S.set(w.TAB,m.TAB);var F=new Set;F.add(m.PAGE_UP);F.add(m.PAGE_DOWN);F.add(m.END);F.add(m.HOME);F.add(m.ARROW_LEFT);F.add(m.ARROW_UP);F.add(m.ARROW_RIGHT);F.add(m.ARROW_DOWN);function ot(i){var e=i.key;if(E.has(e))return e;var t=S.get(i.keyCode);return t||m.UNKNOWN}function Pt(i){return F.has(ot(i))}/** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */function lt(i){return i===void 0&&(i=window),ut(i)?{passive:!0}:!1}function ut(i){i===void 0&&(i=window);var e=!1;try{var t={get passive(){return e=!0,!1}},n=function(){};i.document.addEventListener("test",n,t),i.document.removeEventListener("test",n,t)}catch{e=!1}return e}const ct=Object.freeze(Object.defineProperty({__proto__:null,applyPassive:lt},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var ft={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},dt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Se={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},K;function pt(i,e){e===void 0&&(e=!1);var t=i.CSS,n=K;if(typeof K=="boolean"&&!e)return K;var a=t&&typeof t.supports=="function";if(!a)return!1;var r=t.supports("--css-vars","yes"),o=t.supports("(--css-vars: yes)")&&t.supports("color","#00000000");return n=r||o,e||(K=n),n}function mt(i,e,t){if(!i)return{x:0,y:0};var n=e.x,a=e.y,r=n+t.left,o=a+t.top,s,l;if(i.type==="touchstart"){var c=i;s=c.changedTouches[0].pageX-r,l=c.changedTouches[0].pageY-o}else{var f=i;s=f.pageX-r,l=f.pageY-o}return{x:s,y:l}}/** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */var we=["touchstart","pointerdown","mousedown","keydown"],Ce=["touchend","pointerup","mouseup","contextmenu"],T=[],ht=function(i){nt(e,i);function e(t){var n=i.call(this,j(j({},e.defaultAdapter),t))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(a){n.activateImpl(a)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(e,"cssClasses",{get:function(){return ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return dt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Se},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var a=e.cssClasses,r=a.ROOT,o=a.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())})}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,a=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(a),t.adapter.removeClass(r),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},e.prototype.setUnbounded=function(t){var n=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var n,a;if(t){try{for(var r=N(we),o=r.next();!o.done;o=r.next()){var s=o.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var n,a;if(t.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=N(Ce),o=r.next();!o.done;o=r.next()){var s=o.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var t,n;try{for(var a=N(we),r=a.next();!r.done;r=a.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var a=N(Ce),r=a.next();!r.done;r=a.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,n=e.strings,a=Object.keys(n);a.forEach(function(r){r.indexOf("VAR_")===0&&t.adapter.updateCssVariable(n[r],null)})},e.prototype.activateImpl=function(t){var n=this;if(!this.adapter.isSurfaceDisabled()){var a=this.activationState;if(!a.isActivated){var r=this.previousActivationEvent,o=r&&t!==void 0&&r.type!==t.type;if(!o){a.isActivated=!0,a.isProgrammatic=t===void 0,a.activationEvent=t,a.wasActivatedByPointer=a.isProgrammatic?!1:t!==void 0&&(t.type==="mousedown"||t.type==="touchstart"||t.type==="pointerdown");var s=t!==void 0&&T.length>0&&T.some(function(l){return n.adapter.containsEventTarget(l)});if(s){this.resetActivationState();return}t!==void 0&&(T.push(t.target),this.registerDeactivationHandlers(t)),a.wasElementMadeActive=this.checkElementMadeActive(t),a.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){T=[],!a.wasElementMadeActive&&t!==void 0&&(t.key===" "||t.keyCode===32)&&(a.wasElementMadeActive=n.checkElementMadeActive(t),a.wasElementMadeActive&&n.animateActivation()),a.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(t){return t!==void 0&&t.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var t=this,n=e.strings,a=n.VAR_FG_TRANSLATE_START,r=n.VAR_FG_TRANSLATE_END,o=e.cssClasses,s=o.FG_DEACTIVATION,l=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var f="",u="";if(!this.adapter.isUnbounded()){var g=this.getFgTranslationCoordinates(),A=g.startPoint,d=g.endPoint;f=A.x+"px, "+A.y+"px",u=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(a,f),this.adapter.updateCssVariable(r,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(l),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},c)},e.prototype.getFgTranslationCoordinates=function(){var t=this.activationState,n=t.activationEvent,a=t.wasActivatedByPointer,r;a?r=mt(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):r={x:this.frame.width/2,y:this.frame.height/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2};var o={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:r,endPoint:o}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,a=this.activationState,r=a.hasDeactivationUXRun,o=a.isActivated,s=r||!o;s&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(n)},Se.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var a=j({},n);n.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(a)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(a),t.resetActivationState()}))}},e.prototype.animateDeactivation=function(t){var n=t.wasActivatedByPointer,a=t.wasElementMadeActive;(n||a)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),a=function(){var o=Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2));return o+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:a();var r=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!==0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,n=t.VAR_FG_SIZE,a=t.VAR_LEFT,r=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(a,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},e}(it);const{applyPassive:X}=ct,{matches:vt}=st;function Ht(i,{ripple:e=!0,surface:t=!1,unbounded:n=!1,disabled:a=!1,color:r,active:o,rippleElement:s,eventTarget:l,activeTarget:c,addClass:f=d=>i.classList.add(d),removeClass:u=d=>i.classList.remove(d),addStyle:g=(d,_)=>i.style.setProperty(d,_),initPromise:A=Promise.resolve()}={}){let d,_=De("SMUI:addLayoutListener"),v,b=o,p=l,C=c;function h(){t?(f("mdc-ripple-surface"),r==="primary"?(f("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")):r==="secondary"?(u("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")):(u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary"))):(u("mdc-ripple-surface"),u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")),d&&b!==o&&(b=o,o?d.activate():o===!1&&d.deactivate()),e&&!d?(d=new ht({addClass:f,browserSupportsCssVars:()=>pt(window),computeBoundingRect:()=>(s||i).getBoundingClientRect(),containsEventTarget:y=>i.contains(y),deregisterDocumentInteractionHandler:(y,R)=>document.documentElement.removeEventListener(y,R,X()),deregisterInteractionHandler:(y,R)=>(l||i).removeEventListener(y,R,X()),deregisterResizeHandler:y=>window.removeEventListener("resize",y),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>o??vt(c||i,":active"),isSurfaceDisabled:()=>!!a,isUnbounded:()=>!!n,registerDocumentInteractionHandler:(y,R)=>document.documentElement.addEventListener(y,R,X()),registerInteractionHandler:(y,R)=>(l||i).addEventListener(y,R,X()),registerResizeHandler:y=>window.addEventListener("resize",y),removeClass:u,updateCssVariable:g}),A.then(()=>{d&&(d.init(),d.setUnbounded(n))})):d&&!e&&A.then(()=>{d&&(d.destroy(),d=void 0)}),d&&(p!==l||C!==c)&&(p=l,C=c,d.destroy(),requestAnimationFrame(()=>{d&&(d.init(),d.setUnbounded(n))})),!e&&n&&f("mdc-ripple-upgraded--unbounded")}h(),_&&(v=_(ne));function ne(){d&&d.layout()}return{update(y){({ripple:e,surface:t,unbounded:n,disabled:a,color:r,active:o,rippleElement:s,eventTarget:l,activeTarget:c,addClass:f,removeClass:u,addStyle:g,initPromise:A}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:R=>i.classList.add(R),removeClass:R=>i.classList.remove(R),addStyle:(R,Fe)=>i.style.setProperty(R,Fe),initPromise:Promise.resolve()},y)),h()},destroy(){d&&(d.destroy(),d=void 0,u("mdc-ripple-surface"),u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")),v&&v()}}}export{m as K,it as M,St as P,Ht as R,He as S,nt as _,j as a,Dt as b,Ot as c,N as d,z as e,B as f,Rt as g,de as h,Et as i,q as j,pe as k,wt as l,Ct as m,ot as n,bt as o,st as p,_t as q,lt as r,pt as s,Me as t,te as u,ht as v,Pt as w};