p-elements-core 1.2.32-rc9 → 1.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/sample.js CHANGED
@@ -1 +1 @@
1
- /*! P-ELEMENTS 1.2.32-rc9 - Wed Apr 22 2026 10:25:36 GMT+0200 (Central European Summer Time) */var t={554(t,e,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n.g&&null!=n.g?n.g:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(t,e,n,r){if(e){for(n=a.global,t=t.split("."),r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function t(t){if(!W.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function n(t){return t.reduce((function(t,e){return t.concat(W.arr(e)?n(e):e)}),[])}function r(e){return W.arr(e)?e:(W.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function i(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,r=i(t);for(n in t)r[n]=e.hasOwnProperty(n)?e[n]:t[n];return r}function c(t,e){var n,r=i(t);for(n in e)r[n]=W.und(t[n])?e[n]:t[n];return r}function s(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function l(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=t=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=e(a,i,t+1/3),r=e(a,i,t),t=e(a,i,t-1/3)}return"rgba("+255*o+","+255*r+","+255*t+","+n+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function h(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function p(t,e){return W.fnc(t)?t(e.target,e.id,e.total):t}function d(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function y(t,e){return W.dom(t)&&o(L,e)?"transform":W.dom(t)&&(t.getAttribute(e)||W.svg(t)&&t[e])?"attribute":W.dom(t)&&"transform"!==e&&d(t,e)?"css":null!=t[e]?"object":void 0}function v(t,n){var r=h(n);if(r=-1<n.indexOf("scale")?1:0+r,!(t=t.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(t);)i.push(o[1]),a.push(o[2]);return t=e(a,(function(t,e){return i[e]===n})),t.length?t[0]:r}function m(t,e){switch(y(t,e)){case"transform":return v(t,e);case"css":return d(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+r;case"-":return e-t+r;case"*":return e*t+r}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,n=0,r=0;r<t.numberOfItems;r++){var o=t.getItem(r);0<r&&(n+=g(e,o)),e=o}return n}function k(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function O(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var r=n(),o=n(-1),i=n(1);switch(t.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function S(t,e){var n,r=/-?\d*\.?\d+/g;if(n=W.pth(t)?t.totalLength:t,W.col(n))if(W.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=W.hex(n)?s(n):W.hsl(n)?l(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:W.str(t)||e?n.split(r):[]}}function j(t){return e(t=t?n(W.arr(t)?t.map(r):r(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function P(t){var e=j(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function _(t,e){var n=i(e);if(W.arr(t)){var o=t.length;2!==o||W.obj(t[0])?W.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return r(t).map((function(t,n){return n=n?0:e.delay,t=W.obj(t)&&!W.pth(t)?t:{value:t},W.und(t.delay)&&(t.delay=n),t})).map((function(t){return c(t,n)}))}function A(t,e){var n,r={};for(n in t){var o=p(t[n],e);W.arr(o)&&(o=o.map((function(t){return p(t,e)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function C(t){return W.arr(t)?V.apply(this,t):U[t]}function E(t,e){var n;return t.tweens.map((function(r){var o=(r=A(r,e)).value,i=m(e.target,t.name),a=n?n.to.original:i,u=(a=W.arr(o)?o[0]:a,b(W.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=S(a,i),r.to=S(u,i),r.start=n?n.end:t.offset,r.end=r.start+r.delay+r.duration,r.easing=C(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=W.pth(o),r.isColor=W.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(t,r){return e(n(t.map((function(t){return r.map((function(e){var n=y(t.target,e.name);if(n){var r=E(e,t);e={type:n,property:e.name,animatable:t,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else e=void 0;return e}))}))),(function(t){return!W.und(t)}))}function N(t,e,n,r){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?r.delay:n.offset+r.delay+r.duration}function M(t){var e,n=a(I,t),r=a(F,t),o=P(t.targets),i=[],u=c(n,r);for(e in t)u.hasOwnProperty(e)||"targets"===e||i.push({name:e,offset:u.offset,tweens:_(t[e],r)});return c(n,{children:[],animatables:o,animations:t=x(o,i),duration:N("duration",t,n,r),delay:N("delay",t,n,r)})}function R(t){function n(){return window.Promise&&new Promise((function(t){return f=t}))}function r(t){return p.reversed?p.duration-t:t}function o(t){for(var n=0,r={},o=p.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,c=(s=a.tweens)[h=s.length-1];h&&(c=e(s,(function(e){return t<e.end}))[0]||c);for(var s=Math.min(Math.max(t-c.start-c.delay,0),c.duration)/c.duration,l=isNaN(s)?1:c.easing(s,c.elasticity),f=(s=c.to.strings,c.round),h=[],y=void 0,v=(y=c.to.numbers.length,0);v<y;v++){var m=void 0,b=(m=c.to.numbers[v],c.from.numbers[v]);m=c.isPath?O(c.value,l*m):b+l*(m-b),f&&(c.isColor&&2<v||(m=Math.round(m*f)/f)),h.push(m)}if(c=s.length)for(y=s[0],l=0;l<c;l++)f=s[l+1],v=h[l],isNaN(v)||(y=f?y+(v+f):y+(v+" "));else y=h[0];B[a.type](u.target,a.property,y,r,u.id),a.currentValue=y,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)T||(T=d(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[o].target.style[T]=r[o].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function i(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function u(t){var e=p.duration,u=p.offset,d=u+p.delay,y=p.currentTime,v=p.reversed,m=r(t);if(p.children.length){var b=p.children,g=b.length;if(m>=p.currentTime)for(var w=0;w<g;w++)b[w].seek(m);else for(;g--;)b[g].seek(m)}(m>=d||!e)&&(p.began||(p.began=!0,i("begin")),i("run")),m>u&&m<e?o(m):(m<=u&&0!==y&&(o(0),v&&a()),(m>=e&&y!==e||!e)&&(o(e),v||a())),i("update"),t>=e&&(p.remaining?(s=c,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,i("complete"),"Promise"in window&&(f(),h=n()))),l=0)}t=void 0===t?{}:t;var c,s,l=0,f=null,h=n(),p=M(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,o(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){c=t,s||(s=c),u((l+c-s)*R.speed)},p.seek=function(t){u(r(t))},p.pause=function(){var t=D.indexOf(p);-1<t&&D.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,s=0,l=r(p.currentTime),D.push(p),q||z())},p.reverse=function(){p.reversed=!p.reversed,s=0,l=r(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var T,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},F={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},L="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),W={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return W.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||W.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return W.hex(t)||W.rgb(t)||W.hsl(t)}},V=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,r,o){if(0<=e&&1>=e&&0<=r&&1>=r){var i=new Float32Array(11);if(e!==n||r!==o)for(var a=0;11>a;++a)i[a]=t(.1*a,e,r);return function(a){if(e===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,c=1;10!==c&&i[c]<=a;++c)u+=.1;--c,c=u+(a-i[c])/(i[c+1]-i[c])*.1;var s=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e;if(.001<=s){for(u=0;4>u&&0!=(s=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e);++u){var l=t(c,e,r)-a;c-=l/s}a=c}else if(0===s)a=c;else{c=u,u+=.1;var f=0;do{0<(s=t(l=c+(u-c)/2,e,r)-a)?u=l:c=l}while(1e-7<Math.abs(s)&&10>++f);a=l}return t(a,n,o)}}}}(),U=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:V(.25,.25,.75,.75)},i={};for(e in r)i.type=e,r[i.type].forEach(function(t){return function(e,r){o["ease"+t.type+n[r]]=W.fnc(e)?e:V.apply(u,e)}}(i)),i={type:i.type};return o}(),B={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){r[o]||(r[o]=[]),r[o].push(e+"("+n+")")}},D=[],q=0,z=function(){function t(){q=requestAnimationFrame(e)}function e(e){var n=D.length;if(n){for(var r=0;r<n;)D[r]&&D[r].tick(e),r++;t()}else cancelAnimationFrame(q),q=0}return t}();return R.version="2.2.0",R.speed=1,R.running=D,R.remove=function(t){t=j(t);for(var e=D.length;e--;)for(var n=D[e],r=n.animations,i=r.length;i--;)o(t,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},R.getValue=m,R.path=function(e,n){var r=W.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:r,property:t,totalLength:k(r)*(o/100)}}},R.setDashoffset=function(t){var e=k(t);return t.setAttribute("stroke-dasharray",e),e},R.bezier=V,R.easings=U,R.timeline=function(t){var e=R(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),r(n).forEach((function(n){var r=c(n,a(F,t||{}));r.targets=r.targets||t.targets,n=e.duration;var o=r.offset;r.autoplay=!1,r.direction=e.direction,r.offset=W.und(o)?n:b(o,n),e.began=!0,e.completed=!0,e.seek(r.offset),(r=R(r)).began=!0,r.completed=!0,r.duration>n&&(e.duration=r.duration),e.children.push(r)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},R.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},R},void 0===(i="function"==typeof r?r.apply(e,o):r)||(t.exports=i)}},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}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function a(t,e,n){return e=c(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var p=n(554),d=n.n(p),y=function(t){return function(e){customElements.get(t.tagName)?console.warn("Custom element with tag name ".concat(t.tagName," already exists.")):customElements.define(t.tagName,e,t.options)}};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}var w=new WeakSet,k=new WeakMap,O=new WeakMap;function S(t){var e=k.get(t);if(e){w.add(t);try{e.forEach((function(e,n){j(t,n,e.value,e.type,e.converter)}))}finally{w.delete(t)}k.delete(t)}var n=O.get(t);if(n&&t.updated){for(var r=n.length,o=0;o<r;){var i=n[o];t.updated(i.propertyKey,i.oldValue,i.newValue),o+=1}O.delete(t)}}function j(t,e,n,r,o){r===Boolean?n?t.setAttribute(e,""):t.removeAttribute(e):r===Object||r===Array?o&&o.toAttribute?t.setAttribute(e,o.toAttribute(n)):t.setAttribute(e,JSON.stringify(n)):null==n?t.removeAttribute(e):t.setAttribute(e,String(n))}var P=new Set;function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.attribute,r=void 0===n||n,o=t.reflect,i=void 0!==o&&o,a=t.converter,u=t.readonly,c=void 0!==u&&u,s=function(t){if("string"==typeof t)switch(t){case"string":return String;case"number":return Number;case"boolean":return Boolean;case"object":return Object;case"array":return Array;default:return null}return t}(e);return function(e,n){var o=new WeakMap,u=function(t,e){if(!1!==e)return!0===e?t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():"string"==typeof e?e:void 0}(n,r);if(!e.__p_elements_core_lifecycle_patch_applied){if(Object.prototype.hasOwnProperty.call(e,"connectedCallback")&&"function"==typeof e.connectedCallback){var l=e.connectedCallback;e.connectedCallback=function(){for(var t,n="__p_elements_core_pending_updates_called",r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(this[n])l&&l.apply(this,o);else{var a=!1,u=S,c=this;globalThis.__origProcessPendingUpdates=S,globalThis.processPendingUpdates=function(t){return t===c&&(a=!0),u(t)};try{l&&l.apply(this,o)}finally{globalThis.processPendingUpdates=globalThis.__origProcessPendingUpdates,delete globalThis.__origProcessPendingUpdates}if(!a){var s=Object.getPrototypeOf(e),f=s&&s.connectedCallback;"function"==typeof f?(f.apply(this,o),"undefined"!=typeof console&&console.info&&(t=this.nodeName,P.has(t)||(P.add(t),"undefined"!=typeof console&&console.info&&console.info("[CustomElement] connectedCallback called for <".concat(t.toLocaleLowerCase(),">"))))):(S(this),"undefined"!=typeof console&&console.info&&console.info("[p-elements-core] called processPendingUpdates automatically for <".concat(this.nodeName,">")))}this[n]=!0}}}if(Object.prototype.hasOwnProperty.call(e,"disconnectedCallback")&&"function"==typeof e.disconnectedCallback){var f=e.disconnectedCallback;e.disconnectedCallback=function(){for(var t="__p_elements_core_disconnected_called",n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(this[t])f&&f.apply(this,r);else{var i=!1,a=Object.getPrototypeOf(e),u=a&&a.disconnectedCallback;f&&(f.apply(this,r),i=!0),i||"function"!=typeof u||u.apply(this,r),this[t]=!0}}}if(Object.prototype.hasOwnProperty.call(e,"attributeChangedCallback")&&"function"==typeof e.attributeChangedCallback){var h=e.attributeChangedCallback;e.attributeChangedCallback=function(){for(var t="__p_elements_core_attribute_changed_called",n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(this[t])h&&h.apply(this,r);else{var i=!1,a=Object.getPrototypeOf(e),u=a&&a.attributeChangedCallback;h&&(h.apply(this,r),i=!0),i||"function"!=typeof u||u.apply(this,r),this[t]=!0}}}e.__p_elements_core_lifecycle_patch_applied=!0}Object.defineProperty(e,n,{get:function(){if(!o.has(this)&&u&&this.hasAttribute&&this.hasAttribute(u)){var t,e=this.getAttribute(u);if(null!==e)return t=a&&a.fromAttribute?a.fromAttribute(e):s===Boolean||(s===Number?Number(e):e),o.set(this,t),"function"==typeof this.renderNow&&this.renderNow(),t}return o.has(this)?o.get(this):s!==Boolean&&void 0},set:function(t){if(!c||!o.has(this)){var e,r=o.get(this),l=!1;if(null==s&&t!==r&&(l=!0),!o.has(this)&&u&&this.hasAttribute&&this.hasAttribute(u)){var f=this.getAttribute(u);if(null!==f)return e=a&&a.fromAttribute?a.fromAttribute(f):s===Boolean||(s===Number?Number(f):f),o.set(this,e),void(this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(n,r,e)):this.updated&&(O.has(this)||O.set(this,[]),O.get(this).push({propertyKey:n,oldValue:r,newValue:e})))}if(e=l?t:function(t,e,n){if(n&&n.fromAttribute&&"string"==typeof t)return n.fromAttribute(t);if(null==t)return t;switch(e){case String:return String(t);case Number:return Number(t);case Boolean:return Boolean(t);case Object:return"object"===g(t)?t:JSON.parse(String(t));case Array:return Array.isArray(t)?t:JSON.parse(String(t));default:return t}}(t,s,a),r!==e){var h=!this.shouldUpdate||this.shouldUpdate(n,r,e);if(o.set(this,h?e:r),i&&void 0!==u)if(this.isConnected){w.add(this);try{j(this,u,h?e:r,s,a)}finally{w.delete(this)}}else k.has(this)||k.set(this,new Map),k.get(this).set(u,{value:h?e:r,type:s,converter:a});this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(n,r,e)):this.updated&&(O.has(this)||O.set(this,[]),O.get(this).push({propertyKey:n,oldValue:r,newValue:e})),l&&"function"==typeof this.renderNow&&this.renderNow()}}},configurable:!0}),e.constructor._propertyInfo||(e.constructor._propertyInfo=new Map),e.constructor._propertyInfo.set(n,m(m({},t),{},{name:n,attribute:u,type:s})),u&&(e.constructor.observedAttributes||(e.constructor.observedAttributes=[]),e.constructor.observedAttributes.includes(u)||e.constructor.observedAttributes.push(u))}}var A=_({});new Map;function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||M(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */E=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(e,n,r,o){var i=n&&n.prototype instanceof h?n:h,a=Object.create(i.prototype);return c(a,"_invoke",function(e,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=k(u,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var s=l(e,n,r);if("normal"===s.type){if(o=r.done?4:2,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=4,r.method="throw",r.arg=s.arg)}}}(e,r,new j(o||[])),!0),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f={};function h(){}function p(){}function d(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(P([])));m&&m!==n&&r.call(m,i)&&(y=m);var b=d.prototype=h.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==T(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;c(this,"_invoke",(function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function k(e,n){var r=n.method,o=e.i[r];if(o===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function O(t){this.tryEntries.push(t)}function S(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function j(t){this.tryEntries=[[-1]],t.forEach(O,this),this.reset(!0)}function P(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(T(e)+" is not iterable")}return p.prototype=d,c(b,"constructor",d),c(d,"constructor",p),p.displayName=c(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},g(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(b),c(b,u,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){a.type="throw",a.arg=e,n.next=t}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],s=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,r(c),!0;if(u<s)return r(s),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:P(e),r:n,n:r},"next"===this.method&&(this.arg=t),f}},e}function x(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function N(t){return function(t){if(Array.isArray(t))return R(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||M(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){if(t){if("string"==typeof t)return R(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}function L(t,e){if(e&&("object"==T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function W(t){var e="function"==typeof Map?new Map:void 0;return W=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(V())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&U(o,n.prototype),o}(t,arguments,B(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),U(n,t)},W(t)}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function D(t,e,n){q(t,e),e.set(t,n)}function q(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function z(t,e,n){return n($(t,e))}function G(t,e){return t.get($(t,e))}function X(t,e,n){return t.set($(t,e),n),n}function $(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var H=[],Y=new WeakMap,Z=new WeakMap,J=new WeakMap,K=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,ut=new WeakMap,ct=new WeakMap,st=new WeakMap,lt=new WeakMap,ft=new WeakSet,ht=function(){function t(e){var n,r,o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=B(o=t),function(t,e){q(t,e),e.add(t)}(n=L(r,V()?Reflect.construct(o,i||[],B(r).constructor):o.apply(r,i)),ft),D(n,Y,void 0),D(n,Z,void 0),D(n,J,!1),D(n,K,void 0),D(n,Q,void 0),D(n,tt,void 0),D(n,et,!1),D(n,nt,!1),D(n,rt,!1),D(n,ot,!0),D(n,it,!0),D(n,at,null),D(n,ut,void 0),D(n,ct,[]),D(n,st,null),D(n,lt,null);var a=function(t){console.warn("ElementInternals.".concat(t," called before element was connected. Call will be ignored."))};return X(ut,n,{setValidity:function(t,e,n){a("setValidity")},reportValidity:function(){return a("reportValidity"),!1},checkValidity:function(){return a("checkValidity"),!0},setFormValue:function(t,e){a("setFormValue")}}),$(ft,n,mt).call(n),$(ft,n,dt).call(n),L(n,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&U(t,e)}(t,W(HTMLElement)),e=t,n=[{key:"isConnected",get:function(){return G(J,this)}},{key:"properties",get:function(){var t=this.constructor;return t._propertyInfo?Array.from(t._propertyInfo.values()):[]}},{key:"updateComplete",get:function(){return G(st,this)?G(st,this):Promise.resolve()}},{key:"internals",get:function(){if(!G(J,this)&&"object"===T(G(ut,this)))return G(ut,this);var t=this.constructor;if(null===G(at,this)&&t.formAssociated){var e=G(ut,this);for(var n in X(ut,this,null),X(at,this,this.attachInternals()),e)"function"!=typeof G(at,this)[n]&&(G(at,this)[n]=e[n])}return G(at,this)},set:function(t){X(at,this,t)}},{key:"requestUpdate",value:function(){var t=this;return G(st,this)||(X(st,this,new Promise((function(e){X(lt,t,e)}))),this.scheduleRender()),G(st,this)}},{key:"addController",value:function(t){G(ct,this).push(t),G(J,this)&&t.connected&&t.connected()}},{key:"scheduleRender",value:function(){var t;null===(t=G(Y,this))||void 0===t||t.scheduleRender()}},{key:"renderNow",value:function(){var t,e=this;if((!G(nt,this)||this.shadowRoot)&&(G(st,this)||X(st,this,new Promise((function(t){X(lt,e,t)}))),null===(t=G(Y,this))||void 0===t||t.renderNow(),this.updated("",null,null),G(lt,this))){var n=G(lt,this);X(lt,this,null),X(st,this,null),n()}}},{key:"updated",value:function(t,e,n){}},{key:"shouldUpdate",value:function(t,e,n){return!0}},{key:"addStylesheetToRootNode",value:function(t,e){if(z(ft,this,kt)){if(G(Q,this)||X(Q,this,new CSSStyleSheet),t=$(ft,this,bt).call(this),G(Q,this).replaceSync(t),G(et,this))return;if(e instanceof Document){var n=$(ft,this,wt).call(this,t);-1===H.indexOf(n)&&(document.adoptedStyleSheets=[].concat(N(document.adoptedStyleSheets),[G(Q,this)]),X(et,this,!0),H.push(n))}else this.shadowRoot.adoptedStyleSheets=[G(Q,this)],X(et,this,!0)}else if(X(tt,this,document.createElement("link")),G(tt,this).rel="stylesheet",t=$(ft,this,bt).call(this),G(tt,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})),e instanceof Document){var r=$(ft,this,wt).call(this,t);-1===H.indexOf(r)&&(document.head.appendChild(G(tt,this)),H.push(r))}else this.shadowRoot.appendChild(G(tt,this))}},{key:"templateFromString",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=document.createElement("template");r.innerHTML=t;var o=document.createDocumentFragment();o.appendChild(r.content);var i=o.querySelector("style");return n&&(X(nt,this,!0),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:G(rt,this)})),i&&($(ft,this,gt).call(this,i.textContent),i.remove()),window.addEventListener("updatecssapply",(function(){$(ft,e,bt).call(e)})),o}},{key:"adoptStyle",value:function(t,e){this.addStylesheetToRootNode(e,t)}},{key:"createProjector",value:(o=E().mark((function t(e,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){return requestAnimationFrame((function(){return requestAnimationFrame(t)}))}));case 2:return t.next=4,$(ft,this,pt).call(this,e,n);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){x(i,n,r,a,u,"next",t)}function u(t){x(i,n,r,a,u,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})},{key:"connectedCallback",value:function(){if(!G(J,this)){X(J,this,!0);for(var t=0,e=G(ct,this).length;t<e;){var n=G(ct,this)[t];null!=n&&n.connected&&n.connected(),t+=1}S(this),this.renderNow()}}},{key:"disconnectedCallback",value:function(){if(!1!==G(J,this)){X(J,this,!1);for(var t=0,e=G(ct,this).length;t<e;){var n=G(ct,this)[t];null!=n&&n.disconnected&&n.disconnected(),t+=1}}}},{key:"attributeChangedCallback",value:function(t,e,n){if(r=this,!w.has(r)&&n!==e){var r,o=this.constructor;if(null!=o&&o._propertyInfo){var i=Array.from(o._propertyInfo.values()).find((function(e){return e.attribute===t&&"string"==typeof e.attribute}));if(i){var a=i.converter,u=n;null!=a&&a.fromAttribute?u=a.fromAttribute(n):i.type===Boolean?u=null!==n:i.type===Number&&(u=null===n?null:Number(n)),this[i.name]=u,this.scheduleRender()}}}}}],n&&I(e.prototype,n),r&&I(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r,o,i}();function pt(t,e){var n=this;return new Promise((function(r,o){var i,a=G(Z,n)?G(Z,n):"append";requestAnimationFrame((function(){(i=window.Maquette.createProjector({performanceLogger:function(t){"renderStart"!==t&&"renderDone"!==t||$(ft,n,yt).call(n,t)}}))[a](t,e.bind(n)),X(Y,n,i),i.renderNow(),r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}))}))}function dt(){"function"==typeof this.init&&(this.init(),G(ct,this).forEach((function(t){null!=t&&t.init&&t.init()})))}function yt(t){var e=this;this[t]&&this[t](G("renderStart"===t?ot:it,this));var n="host".concat(t.charAt(0).toUpperCase()).concat(t.slice(1));G(ct,this).forEach((function(r){r[n]&&r[n](G("renderStart"===t?ot:it,e))})),X("renderStart"===t?ot:it,this,!1)}function vt(){var t=this.constructor;if(t._propertyInfo)for(var e=Array.from(t._propertyInfo.entries()),n=0,r=e.length;n<r;){var o=C(e[n],1)[0];if(Object.hasOwn(this,o)){var i=this[o];delete this[o],this[o]=i}n+=1}}function mt(){var t=this,e=this.constructor.projectorMode;X(Z,this,e||"append");var n=this.constructor.formAssociated,r=this.constructor.delegatesFocus;X(rt,this,r),n&&X(at,this,this.attachInternals());var o=this.constructor.style;if(o){X(nt,this,!0),X(Z,this,"replace"),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:G(rt,this)}),$(ft,this,gt).call(this,o);var i=document.createElement("div");this.shadowRoot.appendChild(i),requestAnimationFrame((function(){$(ft,t,pt).call(t,i,t.render).then((function(){$(ft,t,vt).call(t)}))})),window.addEventListener("updatecssapply",(function(){$(ft,t,bt).call(t)}))}}function bt(){var t=function(t){for(var e,n=customElements.get("custom-style").cssApplyVars,r=t,o=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,i=function(){var t=e[0],o=e[1];if(n.has(o)){var i="@apply"+t.split("@apply",2)[1],a=n.get(o).map((function(t){return";".concat(t,": var(").concat(o,"_-_").concat(t,");")})).join("");r=r.replace(i,a)}};e=o.exec(r);)i();return r}(G(K,this));return G(K,this)!==t&&(X(K,this,t),z(ft,this,kt)&&G(Q,this)?G(Q,this).replaceSync(t):z(ft,this,kt)||(G(tt,this)&&URL.revokeObjectURL(G(tt,this).href),G(tt,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})))),t}function gt(t){X(K,this,t),G(nt,this)&&this.shadowRoot?this.addStylesheetToRootNode(t,this.shadowRoot):G(nt,this)||this.addStylesheetToRootNode(t,document)}function wt(t){for(var e=0,n=0;e<t.length;e++)n=Math.imul(31,n)+t.charCodeAt(e)|0;return n}function kt(t){return Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype}function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jt(r.key),r)}}function jt(t){var e=function(t,e){if("object"!=Ot(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ot(e)?e:e+""}function Pt(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function _t(t,e){return t.get(At(t,e))}function At(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}ht._propertyInfo=new Map;var Ct,Et,xt,Nt,Mt,Rt,Tt,It=new WeakMap,Ft=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pt(this,It,void 0),r=this,o=e,(n=It).set(At(n,r),o),_t(It,this).addController(this)},(e=[{key:"hostElement",get:function(){return _t(It,this)}},{key:"renderNow",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.renderNow()}},{key:"scheduleRender",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.scheduleRender()}}])&&St(t.prototype,e),n&&St(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function Lt(t){var e="function"==typeof Map?new Map:void 0;return Lt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Gt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Ht(o,n.prototype),o}(t,arguments,Xt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,t)},Lt(t)}function Wt(t,e,n,r){var o=Vt(Xt(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function Vt(){return Vt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Xt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Vt.apply(null,arguments)}function Ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qt(r.key),r)}}function Dt(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qt(t){var e=function(t,e){if("object"!=te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==te(e)?e:e+""}function zt(t,e,n){return e=Xt(e),function(t,e){if(e&&("object"==te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gt()?Reflect.construct(e,n||[],Xt(t).constructor):e.apply(t,n))}function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gt=function(){return!!t})()}function Xt(t){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xt(t)}function $t(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ht(t,e)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ht(t,e)}function Yt(t,e,n){Zt(t,e),e.set(t,n)}function Zt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jt(t,e){return t.get(Qt(t,e))}function Kt(t,e,n){return t.set(Qt(t,e),n),n}function Qt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function te(t){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(t)}var ee=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":te(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},ne=(Ct=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=zt(this,t,arguments),Ct,void 0),e.name="foo",Kt(Ct,e,!1),e}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("div",null,"Render on set: ",this.name)}},{key:"connectedCallback",value:function(){if(!Jt(Ct,this)){Kt(Ct,this,!0);var t=this.templateFromString("<style>div{color: lime}</style><div />");this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector("div"),this.render)}}}])}());ee([A],ne.prototype,"name",void 0),ne=ee([y({tagName:"render-on-set"})],ne);var re=(Et=function(){function t(){var e;return Ut(this,t),(e=zt(this,t,arguments))._zero=0,e._renderCount=0,e}return $t(t,ht),Dt(t,[{key:"alwaysZero",value:function(){return 0}},{key:"zero",get:function(){return this._zero=this.alwaysZero(),this._zero}},{key:"render",value:function(){return this._renderCount++,h("div",null,"Value of Zero: ",this.zero," - Renders: ",this._renderCount)}}])}(),Et.style="/* */",Et);ee([A],re.prototype,"_zero",void 0),re=ee([y({tagName:"p-bugs-03"})],re);var oe=(xt=function(){function t(){return Ut(this,t),zt(this,t,arguments)}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("button",{class:"foo"},h("slot",null))}}])}(),xt.style=".foo{background-color: red; color: white; border: 0px;}",xt.delegatesFocus=!0,xt);oe=ee([y({tagName:"my-button"})],oe);var ie,ae,ue=(Nt=function(t){function e(){var t;return Ut(this,e),(t=zt(this,e,arguments)).count=1,t.name="",t.foo="foo",t.onInput=function(e){t.name=e.target.value},t.onPeterClick=function(e){console.log({e,p:t})},t.onFooEvent=function(e){t.foo=e.detail.foo},t}return $t(e,t),Dt(e,[{key:"enterAnimation",value:function(t,e){d()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(t,e,n){d()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){e(t)}})}},{key:"countUpdateAnimation",value:function(t,e,n){d().timeline().add([{duration:300,targets:t,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:t,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"render",value:function(){var t=this;return h("div",null,h("input",{type:"checkbox",checked:"Peter"===this.name}),h("h1",{on:{click:function(e){return console.log(e,t.slotContainer)}},id:"Foo"},"Hallo:"),h("h1",{"data-force-event-handler":"true",onclick:function(){return console.log("click "+t.name)},"data-title":this.name&&this.name.toLocaleUpperCase(),class:"title"},this.foo," ",this.name),h("p",{"data-count":this.count,updateAnimation:this.countUpdateAnimation},this.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",{eventListeners:[["mouseenter",function(){return console.log("enter")},{once:!0}],["mouseleave",function(){return console.log("leave")},{once:!0}]]},"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:this.name,oninput:this.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),this.name&&this.name.toLowerCase&&this.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:this.peterRemoved,afterCreate:this.peterCreate,class:"is-peter",eventListeners:[["click",this.onPeterClick]],enterAnimation:function(e,n){return t.enterAnimation(e,n)},exitAnimation:function(e,n,r){return t.exitAnimation(e,n,r)}},h("p",null,"Hello Peter"),h("img",{class:"is-peter--image",src:"https://s-media-cache-ak0.pinimg.com/474x/ce/1d/07/ce1d07011c0afb8e0614a0ae42a8c861.jpg",height:"140"})):"")}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var t=this;Wt(e,"connectedCallback",this,3)([]);var n=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(n),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){t.count++,t.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(t,e,n){"name"===t&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}])}((ie=function(){function t(){return Ut(this,t),zt(this,t,arguments)}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("div",null)}}])}(),ae=new WeakMap,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l(t=a(this,e,[].concat(r)),ae,!1),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"highlight",get:function(){return e=this,(t=ae).get(f(t,e));var t,e},set:function(t){var e,n,r;n=this,r=t,(e=ae).set(f(e,n),r);var o="unset";t&&(o="yellow");var i=null==this?void 0:this.shadowRoot.querySelector("div");i&&(i.style.backgroundColor=o)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(ie))),Nt.isFormAssociated=!0,Nt);ee([A],ue.prototype,"name",void 0),ee([A],ue.prototype,"foo",void 0),ee([function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r){Object.defineProperty(n,r,{get:function(){return e?this.shadowRoot.querySelector(t):this.querySelector(t)}})}}("#SlotContainer")],ue.prototype,"slotContainer",void 0),ue=ee([y({tagName:"my-greetings"})],ue);var ce=new WeakMap,se=new WeakSet,le=function(){function t(){var e,n,r;return Ut(this,t),e=zt(this,t,arguments),Zt(n=e,r=se),r.add(n),Yt(e,ce,void 0),Kt(ce,e,!1),e.disabled=!1,e}return $t(t,Ft),Dt(t,[{key:"connected",value:function(){console.log("connected"),Kt(ce,this,!0),Qt(se,this,fe).call(this)}},{key:"disconnected",value:function(){console.info("disconnected"),Kt(ce,this,!1)}},{key:"shouldUpdate",value:function(t,e,n){return console.info("shouldUpdate",{property:t,oldValue:e,newValue:n}),!0}},{key:"updated",value:function(t,e,n){console.info("updated",{property:t,oldValue:e,newValue:n}),Qt(se,this,fe).call(this)}},{key:"hostRenderStart",value:function(t){console.info("hostRenderStart",{isFirstRender:t,controller:this})}},{key:"hostRenderDone",value:function(t){console.info("hostRenderDone",{isFirstRender:t,controller:this})}}])}();function fe(){Jt(ce,this)&&(!0===this.disabled?this.hostElement.setAttribute("disabled","!!"):this.hostElement.removeAttribute("disabled"))}ee([_({type:"boolean"})],le.prototype,"disabled",void 0);var he=(Mt=function(){function t(){var e;return Ut(this,t),(e=zt(this,t,arguments)).disabledController=new le(e),e.items=["foo","bar"],e.nickName="de prutser",e.render=function(){var t;return h("div",{classes:{foo:!0,foo__disabled:e.disabledController.disabled}},h("div",null,"Hello ",e.name," ",e.nickName?h("span",null," (",e.nickName,")"):null),h("div",null,"age ",e.age),e.data?h("pre",null,JSON.stringify(e.data,null,2)):null,null===(t=e.items)||void 0===t?void 0:t.map((function(t,e){return h("div",{key:"item".concat(e)},t)})))},e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.info("init")}},{key:"shouldUpdate",value:function(t,e,n){return"name"!==t||"string"!=typeof n||"adolf"!==n.toLocaleLowerCase()}},{key:"updated",value:function(t,e,n){console.info("PFoo",{name:t,old:e,newValue:n})}},{key:"attributeChangedCallback",value:function(e,n,r){Wt(t,"attributeChangedCallback",this,3)([e,n,r]),"disabled"===e&&(this.disabledController.disabled=null!==r)}},{key:"renderStart",value:function(t){console.info("renderStart",{isFirstRender:t,tag:this.tagName})}},{key:"renderDone",value:function(t){console.info("renderDone",{isFirstRender:t,tag:this.tagName})}}])}(),Mt.style=".foo{color: red} .foo__disabled{opacity: 0.5;}",Mt.observedAttributes=["disabled"],Mt);ee([_({type:"string",attribute:"name",reflect:!0})],he.prototype,"name",void 0),ee([_({type:"number",attribute:"age",reflect:!0})],he.prototype,"age",void 0),ee([_({type:"object",attribute:"data",reflect:!0})],he.prototype,"data",void 0),ee([_({attribute:"items",type:"object",reflect:!0,converter:{fromAttribute:function(t){return t?t.split(",").map((function(t){return t.trim()})):null},toAttribute:function(t){return t.join?t.join(","):null}}})],he.prototype,"items",void 0),ee([_({type:"string",attribute:"nick-name"})],he.prototype,"nickName",void 0),he=ee([y({tagName:"p-foo"})],he);var pe=function(){function t(){var e;return Ut(this,t),(e=zt(this,t)).onclick=function(t){t.preventDefault(),alert("super")},e}return $t(t,Lt(HTMLAnchorElement)),Dt(t,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}])}();window.customElements.define("super-a",pe,{extends:"a"});var de=(Rt=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=zt(this,t),Rt,void 0),e.name="foo",Kt(Rt,e,!1),e.initProjector(),e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.log("This is a lifecycle for BringYourOwnProjector")}},{key:"initProjector",value:function(){this.rootElement=document.createElement("div"),this.rootElement.classList.add("root"),this.createProjector(this.rootElement,this.render),console.log("init")}},{key:"doneSomething",get:function(){return Jt(Rt,this)}},{key:"doItNow",value:function(t){Kt(Rt,this,t),this.renderNow()}},{key:"render",value:function(){return h("div",null,"Hello ",this.name," ",this.doneSomething&&h("p",null,"We did it!!"))}},{key:"connectedCallback",value:function(){this.appendChild(this.rootElement)}}])}());ee([A],de.prototype,"name",void 0),de=ee([y({tagName:"bring-your-own-projector"})],de);var ye=(Tt=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=zt(this,t),Tt,void 0),e.name="foo",Kt(Tt,e,!1),e.initProjector(),e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.log("This is a lifecycle for BringYourOwnProjector")}},{key:"initProjector",value:function(){this.attachShadow({mode:"open"}),this.rootElement=document.createElement("div"),this.rootElement.classList.add("root"),this.createProjector(this.rootElement,this.render),console.log("init")}},{key:"doneSomething",get:function(){return Jt(Tt,this)}},{key:"doItNow",value:function(t){Kt(Tt,this,t),this.renderNow()}},{key:"render",value:function(){return h("div",null,"Hello ",this.name," ",this.doneSomething&&h("p",null,"We did it!!"))}},{key:"connectedCallback",value:function(){this.shadowRoot.appendChild(this.rootElement)}}])}());ee([A],ye.prototype,"name",void 0),ye=ee([y({tagName:"bring-your-own-projector-in-shadow-root"})],ye);export{de as BringYourOwnProjector,ye as BringYourOwnProjectorInShadowRoot,oe as MyButton,ue as MyGreetings,re as PBugs03,ne as RenderOnSet};
1
+ /*! P-ELEMENTS 1.2.32 - Thu Apr 23 2026 13:19:23 GMT+0200 (Central European Summer Time) */var t={554(t,e,n){var r,o,i,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n.g&&null!=n.g?n.g:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var o=n++;return{value:e(o,t[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(t,e,n,r){if(e){for(n=a.global,t=t.split("."),r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var u=this;o=[],r=function(){function t(t){if(!W.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,r=2<=arguments.length?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function n(t){return t.reduce((function(t,e){return t.concat(W.arr(e)?n(e):e)}),[])}function r(e){return W.arr(e)?e:(W.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function o(t,e){return t.some((function(t){return t===e}))}function i(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,r=i(t);for(n in t)r[n]=e.hasOwnProperty(n)?e[n]:t[n];return r}function c(t,e){var n,r=i(t);for(n in e)r[n]=W.und(t[n])?e[n]:t[n];return r}function s(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function l(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,o=parseInt(n[3])/100;if(n=n[4]||1,0==r)o=r=t=o;else{var i=.5>o?o*(1+r):o+r-o*r,a=2*o-i;o=e(a,i,t+1/3),r=e(a,i,t),t=e(a,i,t-1/3)}return"rgba("+255*o+","+255*r+","+255*t+","+n+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function h(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function p(t,e){return W.fnc(t)?t(e.target,e.id,e.total):t}function d(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function y(t,e){return W.dom(t)&&o(L,e)?"transform":W.dom(t)&&(t.getAttribute(e)||W.svg(t)&&t[e])?"attribute":W.dom(t)&&"transform"!==e&&d(t,e)?"css":null!=t[e]?"object":void 0}function v(t,n){var r=h(n);if(r=-1<n.indexOf("scale")?1:0+r,!(t=t.style.transform))return r;for(var o=[],i=[],a=[],u=/(\w+)\((.+?)\)/g;o=u.exec(t);)i.push(o[1]),a.push(o[2]);return t=e(a,(function(t,e){return i[e]===n})),t.length?t[0]:r}function m(t,e){switch(y(t,e)){case"transform":return v(t,e);case"css":return d(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function b(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+r;case"-":return e-t+r;case"*":return e*t+r}}function g(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(t){t=t.points;for(var e,n=0,r=0;r<t.numberOfItems;r++){var o=t.getItem(r);0<r&&(n+=g(e,o)),e=o}return n}function k(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return g({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return w(t);case"polygon":var e=t.points;return w(t)+g(e.getItem(e.numberOfItems-1),e.getItem(0))}}function O(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var r=n(),o=n(-1),i=n(1);switch(t.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function S(t,e){var n,r=/-?\d*\.?\d+/g;if(n=W.pth(t)?t.totalLength:t,W.col(n))if(W.rgb(n)){var o=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=o?"rgba("+o[1]+",1)":n}else n=W.hex(n)?s(n):W.hsl(n)?l(n):void 0;else o=(o=f(n))?n.substr(0,n.length-o.length):n,n=e&&!/\s/g.test(n)?o+e:o;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:W.str(t)||e?n.split(r):[]}}function j(t){return e(t=t?n(W.arr(t)?t.map(r):r(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function P(t){var e=j(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function _(t,e){var n=i(e);if(W.arr(t)){var o=t.length;2!==o||W.obj(t[0])?W.fnc(e.duration)||(n.duration=e.duration/o):t={value:t}}return r(t).map((function(t,n){return n=n?0:e.delay,t=W.obj(t)&&!W.pth(t)?t:{value:t},W.und(t.delay)&&(t.delay=n),t})).map((function(t){return c(t,n)}))}function C(t,e){var n,r={};for(n in t){var o=p(t[n],e);W.arr(o)&&(o=o.map((function(t){return p(t,e)})),1===o.length&&(o=o[0])),r[n]=o}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function E(t){return W.arr(t)?V.apply(this,t):U[t]}function A(t,e){var n;return t.tweens.map((function(r){var o=(r=C(r,e)).value,i=m(e.target,t.name),a=n?n.to.original:i,u=(a=W.arr(o)?o[0]:a,b(W.arr(o)?o[1]:o,a));return i=f(u)||f(a)||f(i),r.from=S(a,i),r.to=S(u,i),r.start=n?n.end:t.offset,r.end=r.start+r.delay+r.duration,r.easing=E(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=W.pth(o),r.isColor=W.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function x(t,r){return e(n(t.map((function(t){return r.map((function(e){var n=y(t.target,e.name);if(n){var r=A(e,t);e={type:n,property:e.name,animatable:t,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else e=void 0;return e}))}))),(function(t){return!W.und(t)}))}function N(t,e,n,r){var o="delay"===t;return e.length?(o?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):o?r.delay:n.offset+r.delay+r.duration}function M(t){var e,n=a(I,t),r=a(F,t),o=P(t.targets),i=[],u=c(n,r);for(e in t)u.hasOwnProperty(e)||"targets"===e||i.push({name:e,offset:u.offset,tweens:_(t[e],r)});return c(n,{children:[],animatables:o,animations:t=x(o,i),duration:N("duration",t,n,r),delay:N("delay",t,n,r)})}function R(t){function n(){return window.Promise&&new Promise((function(t){return f=t}))}function r(t){return p.reversed?p.duration-t:t}function o(t){for(var n=0,r={},o=p.animations,i=o.length;n<i;){var a=o[n],u=a.animatable,c=(s=a.tweens)[h=s.length-1];h&&(c=e(s,(function(e){return t<e.end}))[0]||c);for(var s=Math.min(Math.max(t-c.start-c.delay,0),c.duration)/c.duration,l=isNaN(s)?1:c.easing(s,c.elasticity),f=(s=c.to.strings,c.round),h=[],y=void 0,v=(y=c.to.numbers.length,0);v<y;v++){var m=void 0,b=(m=c.to.numbers[v],c.from.numbers[v]);m=c.isPath?O(c.value,l*m):b+l*(m-b),f&&(c.isColor&&2<v||(m=Math.round(m*f)/f)),h.push(m)}if(c=s.length)for(y=s[0],l=0;l<c;l++)f=s[l+1],v=h[l],isNaN(v)||(y=f?y+(v+f):y+(v+" "));else y=h[0];B[a.type](u.target,a.property,y,r,u.id),a.currentValue=y,n++}if(n=Object.keys(r).length)for(o=0;o<n;o++)T||(T=d(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[o].target.style[T]=r[o].join(" ");p.currentTime=t,p.progress=t/p.duration*100}function i(t){p[t]&&p[t](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function u(t){var e=p.duration,u=p.offset,d=u+p.delay,y=p.currentTime,v=p.reversed,m=r(t);if(p.children.length){var b=p.children,g=b.length;if(m>=p.currentTime)for(var w=0;w<g;w++)b[w].seek(m);else for(;g--;)b[g].seek(m)}(m>=d||!e)&&(p.began||(p.began=!0,i("begin")),i("run")),m>u&&m<e?o(m):(m<=u&&0!==y&&(o(0),v&&a()),(m>=e&&y!==e||!e)&&(o(e),v||a())),i("update"),t>=e&&(p.remaining?(s=c,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,i("complete"),"Promise"in window&&(f(),h=n()))),l=0)}t=void 0===t?{}:t;var c,s,l=0,f=null,h=n(),p=M(t);return p.reset=function(){var t=p.direction,e=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===t,p.remaining="alternate"===t&&1===e?2:e,o(0),t=p.children.length;t--;)p.children[t].reset()},p.tick=function(t){c=t,s||(s=c),u((l+c-s)*R.speed)},p.seek=function(t){u(r(t))},p.pause=function(){var t=D.indexOf(p);-1<t&&D.splice(t,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,s=0,l=r(p.currentTime),D.push(p),z||q())},p.reverse=function(){p.reversed=!p.reversed,s=0,l=r(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var T,I={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},F={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},L="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),W={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return W.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||W.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return W.hex(t)||W.rgb(t)||W.hsl(t)}},V=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,r,o){if(0<=e&&1>=e&&0<=r&&1>=r){var i=new Float32Array(11);if(e!==n||r!==o)for(var a=0;11>a;++a)i[a]=t(.1*a,e,r);return function(a){if(e===n&&r===o)return a;if(0===a)return 0;if(1===a)return 1;for(var u=0,c=1;10!==c&&i[c]<=a;++c)u+=.1;--c,c=u+(a-i[c])/(i[c+1]-i[c])*.1;var s=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e;if(.001<=s){for(u=0;4>u&&0!=(s=3*(1-3*r+3*e)*c*c+2*(3*r-6*e)*c+3*e);++u){var l=t(c,e,r)-a;c-=l/s}a=c}else if(0===s)a=c;else{c=u,u+=.1;var f=0;do{0<(s=t(l=c+(u-c)/2,e,r)-a)?u=l:c=l}while(1e-7<Math.abs(s)&&10>++f);a=l}return t(a,n,o)}}}}(),U=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},o={linear:V(.25,.25,.75,.75)},i={};for(e in r)i.type=e,r[i.type].forEach(function(t){return function(e,r){o["ease"+t.type+n[r]]=W.fnc(e)?e:V.apply(u,e)}}(i)),i={type:i.type};return o}(),B={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){r[o]||(r[o]=[]),r[o].push(e+"("+n+")")}},D=[],z=0,q=function(){function t(){z=requestAnimationFrame(e)}function e(e){var n=D.length;if(n){for(var r=0;r<n;)D[r]&&D[r].tick(e),r++;t()}else cancelAnimationFrame(z),z=0}return t}();return R.version="2.2.0",R.speed=1,R.running=D,R.remove=function(t){t=j(t);for(var e=D.length;e--;)for(var n=D[e],r=n.animations,i=r.length;i--;)o(t,r[i].animatable.target)&&(r.splice(i,1),r.length||n.pause())},R.getValue=m,R.path=function(e,n){var r=W.str(e)?t(e)[0]:e,o=n||100;return function(t){return{el:r,property:t,totalLength:k(r)*(o/100)}}},R.setDashoffset=function(t){var e=k(t);return t.setAttribute("stroke-dasharray",e),e},R.bezier=V,R.easings=U,R.timeline=function(t){var e=R(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),r(n).forEach((function(n){var r=c(n,a(F,t||{}));r.targets=r.targets||t.targets,n=e.duration;var o=r.offset;r.autoplay=!1,r.direction=e.direction,r.offset=W.und(o)?n:b(o,n),e.began=!0,e.completed=!0,e.seek(r.offset),(r=R(r)).began=!0,r.completed=!0,r.duration>n&&(e.duration=r.duration),e.children.push(r)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},R.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},R},void 0===(i="function"==typeof r?r.apply(e,o):r)||(t.exports=i)}},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}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function a(t,e,n){return e=c(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var p=n(554),d=n.n(p),y=function(t){return function(e){customElements.get(t.tagName)?console.warn("Custom element with tag name ".concat(t.tagName," already exists.")):customElements.define(t.tagName,e,t.options)}};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}var w=new WeakSet,k=new WeakMap,O=new WeakMap;function S(t){var e=k.get(t);if(e){w.add(t);try{e.forEach((function(e,n){j(t,n,e.value,e.type,e.converter)}))}finally{w.delete(t)}k.delete(t)}var n=O.get(t);if(n&&t.updated){for(var r=n.length,o=0;o<r;){var i=n[o];t.updated(i.propertyKey,i.oldValue,i.newValue),o+=1}O.delete(t)}}function j(t,e,n,r,o){r===Boolean?n?t.setAttribute(e,""):t.removeAttribute(e):r===Object||r===Array?o&&o.toAttribute?t.setAttribute(e,o.toAttribute(n)):t.setAttribute(e,JSON.stringify(n)):null==n?t.removeAttribute(e):t.setAttribute(e,String(n))}var P=new Set;function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.attribute,r=void 0===n||n,o=t.reflect,i=void 0!==o&&o,a=t.converter,u=t.readonly,c=void 0!==u&&u,s=function(t){if("string"==typeof t)switch(t){case"string":return String;case"number":return Number;case"boolean":return Boolean;case"object":return Object;case"array":return Array;default:return null}return t}(e);return function(e,n){var o=new WeakMap,u=function(t,e){if(!1!==e)return!0===e?t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():"string"==typeof e?e:void 0}(n,r);if(!e.__p_elements_core_lifecycle_patch_applied){if(Object.prototype.hasOwnProperty.call(e,"connectedCallback")&&"function"==typeof e.connectedCallback){var l=e.connectedCallback;e.connectedCallback=function(){for(var t,n="__p_elements_core_pending_updates_called",r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(this[n])l&&l.apply(this,o);else{var a=!1,u=S,c=this;globalThis.__origProcessPendingUpdates=S,globalThis.processPendingUpdates=function(t){return t===c&&(a=!0),u(t)};try{l&&l.apply(this,o)}finally{globalThis.processPendingUpdates=globalThis.__origProcessPendingUpdates,delete globalThis.__origProcessPendingUpdates}if(!a){var s=Object.getPrototypeOf(e),f=s&&s.connectedCallback;"function"==typeof f?(f.apply(this,o),"undefined"!=typeof console&&console.info&&(t=this.nodeName,P.has(t)||(P.add(t),"undefined"!=typeof console&&console.info&&console.info("[CustomElement] connectedCallback called for <".concat(t.toLocaleLowerCase(),">"))))):(S(this),"undefined"!=typeof console&&console.info&&console.info("[p-elements-core] called processPendingUpdates automatically for <".concat(this.nodeName,">")))}this[n]=!0}}}if(Object.prototype.hasOwnProperty.call(e,"disconnectedCallback")&&"function"==typeof e.disconnectedCallback){var f=e.disconnectedCallback;e.disconnectedCallback=function(){for(var t="__p_elements_core_disconnected_called",n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(this[t])f&&f.apply(this,r);else{var i=!1,a=Object.getPrototypeOf(e),u=a&&a.disconnectedCallback;f&&(f.apply(this,r),i=!0),i||"function"!=typeof u||u.apply(this,r),this[t]=!0}}}if(Object.prototype.hasOwnProperty.call(e,"attributeChangedCallback")&&"function"==typeof e.attributeChangedCallback){var h=e.attributeChangedCallback;e.attributeChangedCallback=function(){for(var t="__p_elements_core_attribute_changed_called",n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(this[t])h&&h.apply(this,r);else{var i=!1,a=Object.getPrototypeOf(e),u=a&&a.attributeChangedCallback;h&&(h.apply(this,r),i=!0),i||"function"!=typeof u||u.apply(this,r),this[t]=!0}}}e.__p_elements_core_lifecycle_patch_applied=!0}Object.defineProperty(e,n,{get:function(){if(!o.has(this)&&u&&this.hasAttribute&&this.hasAttribute(u)){var t,e=this.getAttribute(u);if(null!==e)return t=a&&a.fromAttribute?a.fromAttribute(e):s===Boolean||(s===Number?Number(e):e),o.set(this,t),"function"==typeof this.renderNow&&this.renderNow(),t}return o.has(this)?o.get(this):s!==Boolean&&void 0},set:function(t){if(!c||!o.has(this)){var e,r=o.get(this),l=!1;if(null==s&&t!==r&&(l=!0),!o.has(this)&&u&&this.hasAttribute&&this.hasAttribute(u)){var f=this.getAttribute(u);if(null!==f)return e=a&&a.fromAttribute?a.fromAttribute(f):s===Boolean||(s===Number?Number(f):f),o.set(this,e),void(this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(n,r,e)):this.updated&&(O.has(this)||O.set(this,[]),O.get(this).push({propertyKey:n,oldValue:r,newValue:e})))}if(e=l?t:function(t,e,n){if(n&&n.fromAttribute&&"string"==typeof t)return n.fromAttribute(t);if(null==t)return t;switch(e){case String:return String(t);case Number:return Number(t);case Boolean:return Boolean(t);case Object:return"object"===g(t)?t:JSON.parse(String(t));case Array:return Array.isArray(t)?t:JSON.parse(String(t));default:return t}}(t,s,a),r!==e){var h=!this.shouldUpdate||this.shouldUpdate(n,r,e);if(o.set(this,h?e:r),i&&void 0!==u)if(this.isConnected){w.add(this);try{j(this,u,h?e:r,s,a)}finally{w.delete(this)}}else k.has(this)||k.set(this,new Map),k.get(this).set(u,{value:h?e:r,type:s,converter:a});this.isConnected?("function"==typeof this.renderNow&&this.renderNow(),this.updated&&this.updated(n,r,e)):this.updated&&(O.has(this)||O.set(this,[]),O.get(this).push({propertyKey:n,oldValue:r,newValue:e})),l&&"function"==typeof this.renderNow&&this.renderNow()}}},configurable:!0}),e.constructor._propertyInfo||(e.constructor._propertyInfo=new Map),e.constructor._propertyInfo.set(n,m(m({},t),{},{name:n,attribute:u,type:s})),u&&(e.constructor.observedAttributes||(e.constructor.observedAttributes=[]),e.constructor.observedAttributes.includes(u)||e.constructor.observedAttributes.push(u))}}var C=_({});new Map;function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||M(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */A=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(e,n,r,o){var i=n&&n.prototype instanceof h?n:h,a=Object.create(i.prototype);return c(a,"_invoke",function(e,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=k(u,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var s=l(e,n,r);if("normal"===s.type){if(o=r.done?4:2,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=4,r.method="throw",r.arg=s.arg)}}}(e,r,new j(o||[])),!0),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f={};function h(){}function p(){}function d(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(P([])));m&&m!==n&&r.call(m,i)&&(y=m);var b=d.prototype=h.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==T(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;c(this,"_invoke",(function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function k(e,n){var r=n.method,o=e.i[r];if(o===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function O(t){this.tryEntries.push(t)}function S(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function j(t){this.tryEntries=[[-1]],t.forEach(O,this),this.reset(!0)}function P(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(T(e)+" is not iterable")}return p.prototype=d,c(b,"constructor",d),c(d,"constructor",p),p.displayName=c(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},g(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(b),c(b,u,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){a.type="throw",a.arg=e,n.next=t}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],s=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,r(c),!0;if(u<s)return r(s),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:P(e),r:n,n:r},"next"===this.method&&(this.arg=t),f}},e}function x(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function N(t){return function(t){if(Array.isArray(t))return R(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||M(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){if(t){if("string"==typeof t)return R(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}function L(t,e){if(e&&("object"==T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function W(t){var e="function"==typeof Map?new Map:void 0;return W=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(V())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&U(o,n.prototype),o}(t,arguments,B(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),U(n,t)},W(t)}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function D(t,e,n){z(t,e),e.set(t,n)}function z(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(t,e,n){return n($(t,e))}function G(t,e){return t.get($(t,e))}function X(t,e,n){return t.set($(t,e),n),n}function $(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var H=[],Y=new WeakMap,Z=new WeakMap,J=new WeakMap,K=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,ut=new WeakMap,ct=new WeakMap,st=new WeakMap,lt=new WeakMap,ft=new WeakSet,ht=function(){function t(e){var n,r,o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=B(o=t),function(t,e){z(t,e),e.add(t)}(n=L(r,V()?Reflect.construct(o,i||[],B(r).constructor):o.apply(r,i)),ft),D(n,Y,void 0),D(n,Z,void 0),D(n,J,!1),D(n,K,void 0),D(n,Q,void 0),D(n,tt,void 0),D(n,et,!1),D(n,nt,!1),D(n,rt,!1),D(n,ot,!0),D(n,it,!0),D(n,at,null),D(n,ut,void 0),D(n,ct,[]),D(n,st,null),D(n,lt,null);var a=function(t){console.warn("ElementInternals.".concat(t," called before element was connected. Call will be ignored."))};return X(ut,n,{setValidity:function(t,e,n){a("setValidity")},reportValidity:function(){return a("reportValidity"),!1},checkValidity:function(){return a("checkValidity"),!0},setFormValue:function(t,e){a("setFormValue")}}),$(ft,n,mt).call(n),$(ft,n,dt).call(n),L(n,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&U(t,e)}(t,W(HTMLElement)),e=t,n=[{key:"isConnected",get:function(){return G(J,this)}},{key:"properties",get:function(){var t=this.constructor;return t._propertyInfo?Array.from(t._propertyInfo.values()):[]}},{key:"updateComplete",get:function(){return G(st,this)?G(st,this):Promise.resolve()}},{key:"internals",get:function(){if(!G(J,this)&&"object"===T(G(ut,this)))return G(ut,this);var t=this.constructor;if(null===G(at,this)&&t.formAssociated){var e=G(ut,this);for(var n in X(ut,this,null),X(at,this,this.attachInternals()),e)"function"!=typeof G(at,this)[n]&&(G(at,this)[n]=e[n])}return G(at,this)},set:function(t){X(at,this,t)}},{key:"requestUpdate",value:function(){var t=this;return G(st,this)||(X(st,this,new Promise((function(e){X(lt,t,e)}))),this.scheduleRender()),G(st,this)}},{key:"addController",value:function(t){G(ct,this).push(t),G(J,this)&&t.connected&&t.connected()}},{key:"scheduleRender",value:function(){var t;null===(t=G(Y,this))||void 0===t||t.scheduleRender()}},{key:"renderNow",value:function(){var t,e=this;if((!G(nt,this)||this.shadowRoot)&&(G(st,this)||X(st,this,new Promise((function(t){X(lt,e,t)}))),null===(t=G(Y,this))||void 0===t||t.renderNow(),this.updated("",null,null),G(lt,this))){var n=G(lt,this);X(lt,this,null),X(st,this,null),n()}}},{key:"updated",value:function(t,e,n){}},{key:"shouldUpdate",value:function(t,e,n){return!0}},{key:"addStylesheetToRootNode",value:function(t,e){if(q(ft,this,kt)){if(G(Q,this)||X(Q,this,new CSSStyleSheet),t=$(ft,this,bt).call(this),G(Q,this).replaceSync(t),G(et,this))return;if(e instanceof Document){var n=$(ft,this,wt).call(this,t);-1===H.indexOf(n)&&(document.adoptedStyleSheets=[].concat(N(document.adoptedStyleSheets),[G(Q,this)]),X(et,this,!0),H.push(n))}else this.shadowRoot.adoptedStyleSheets=[G(Q,this)],X(et,this,!0)}else if(X(tt,this,document.createElement("link")),G(tt,this).rel="stylesheet",t=$(ft,this,bt).call(this),G(tt,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})),e instanceof Document){var r=$(ft,this,wt).call(this,t);-1===H.indexOf(r)&&(document.head.appendChild(G(tt,this)),H.push(r))}else this.shadowRoot.appendChild(G(tt,this))}},{key:"templateFromString",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=document.createElement("template");r.innerHTML=t;var o=document.createDocumentFragment();o.appendChild(r.content);var i=o.querySelector("style");return n&&(X(nt,this,!0),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:G(rt,this)})),i&&($(ft,this,gt).call(this,i.textContent),i.remove()),window.addEventListener("updatecssapply",(function(){$(ft,e,bt).call(e)})),o}},{key:"adoptStyle",value:function(t,e){this.addStylesheetToRootNode(e,t)}},{key:"createProjector",value:(o=A().mark((function t(e,n){return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",$(ft,this,pt).call(this,e,n));case 1:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){x(i,n,r,a,u,"next",t)}function u(t){x(i,n,r,a,u,"throw",t)}a(void 0)}))},function(t,e){return i.apply(this,arguments)})},{key:"connectedCallback",value:function(){if(!G(J,this)){X(J,this,!0);for(var t=0,e=G(ct,this).length;t<e;){var n=G(ct,this)[t];null!=n&&n.connected&&n.connected(),t+=1}S(this),this.renderNow()}}},{key:"disconnectedCallback",value:function(){if(!1!==G(J,this)){X(J,this,!1);for(var t=0,e=G(ct,this).length;t<e;){var n=G(ct,this)[t];null!=n&&n.disconnected&&n.disconnected(),t+=1}}}},{key:"attributeChangedCallback",value:function(t,e,n){if(r=this,!w.has(r)&&n!==e){var r,o=this.constructor;if(null!=o&&o._propertyInfo){var i=Array.from(o._propertyInfo.values()).find((function(e){return e.attribute===t&&"string"==typeof e.attribute}));if(i){var a=i.converter,u=n;null!=a&&a.fromAttribute?u=a.fromAttribute(n):i.type===Boolean?u=null!==n:i.type===Number&&(u=null===n?null:Number(n)),this[i.name]=u,this.scheduleRender()}}}}}],n&&I(e.prototype,n),r&&I(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r,o,i}();function pt(t,e){var n=this;return new Promise((function(r,o){var i,a=G(Z,n)?G(Z,n):"append";requestAnimationFrame((function(){(i=window.Maquette.createProjector({performanceLogger:function(t){"renderStart"!==t&&"renderDone"!==t||$(ft,n,yt).call(n,t)}}))[a](t,e.bind(n)),X(Y,n,i),i.renderNow(),r(i),n.dispatchEvent(new CustomEvent("firstRender",{}))}))}))}function dt(){"function"==typeof this.init&&(this.init(),G(ct,this).forEach((function(t){null!=t&&t.init&&t.init()})))}function yt(t){var e=this;this[t]&&this[t](G("renderStart"===t?ot:it,this));var n="host".concat(t.charAt(0).toUpperCase()).concat(t.slice(1));G(ct,this).forEach((function(r){r[n]&&r[n](G("renderStart"===t?ot:it,e))})),X("renderStart"===t?ot:it,this,!1)}function vt(){var t=this.constructor;if(t._propertyInfo)for(var e=Array.from(t._propertyInfo.entries()),n=0,r=e.length;n<r;){var o=E(e[n],1)[0];if(Object.hasOwn(this,o)){var i=this[o];delete this[o],this[o]=i}n+=1}}function mt(){var t=this,e=this.constructor.projectorMode;X(Z,this,e||"append");var n=this.constructor.formAssociated,r=this.constructor.delegatesFocus;X(rt,this,r),n&&X(at,this,this.attachInternals());var o=this.constructor.style;if(o){X(nt,this,!0),X(Z,this,"replace"),this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:G(rt,this)}),$(ft,this,gt).call(this,o);var i=document.createElement("div");this.shadowRoot.appendChild(i),requestAnimationFrame((function(){$(ft,t,pt).call(t,i,t.render).then((function(){$(ft,t,vt).call(t)}))})),window.addEventListener("updatecssapply",(function(){$(ft,t,bt).call(t)}))}}function bt(){var t=function(t){for(var e,n=customElements.get("custom-style").cssApplyVars,r=t,o=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,i=function(){var t=e[0],o=e[1];if(n.has(o)){var i="@apply"+t.split("@apply",2)[1],a=n.get(o).map((function(t){return";".concat(t,": var(").concat(o,"_-_").concat(t,");")})).join("");r=r.replace(i,a)}};e=o.exec(r);)i();return r}(G(K,this));return G(K,this)!==t&&(X(K,this,t),q(ft,this,kt)&&G(Q,this)?G(Q,this).replaceSync(t):q(ft,this,kt)||(G(tt,this)&&URL.revokeObjectURL(G(tt,this).href),G(tt,this).href=URL.createObjectURL(new Blob([t],{type:"text/css"})))),t}function gt(t){X(K,this,t),G(nt,this)&&this.shadowRoot?this.addStylesheetToRootNode(t,this.shadowRoot):G(nt,this)||this.addStylesheetToRootNode(t,document)}function wt(t){for(var e=0,n=0;e<t.length;e++)n=Math.imul(31,n)+t.charCodeAt(e)|0;return n}function kt(t){return Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype}function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jt(r.key),r)}}function jt(t){var e=function(t,e){if("object"!=Ot(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ot(e)?e:e+""}function Pt(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function _t(t,e){return t.get(Ct(t,e))}function Ct(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}ht._propertyInfo=new Map;var Et,At,xt,Nt,Mt,Rt,Tt,It=new WeakMap,Ft=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pt(this,It,void 0),r=this,o=e,(n=It).set(Ct(n,r),o),_t(It,this).addController(this)},(e=[{key:"hostElement",get:function(){return _t(It,this)}},{key:"renderNow",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.renderNow()}},{key:"scheduleRender",value:function(){var t;null===(t=this.hostElement)||void 0===t||t.scheduleRender()}}])&&St(t.prototype,e),n&&St(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function Lt(t){var e="function"==typeof Map?new Map:void 0;return Lt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Gt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Ht(o,n.prototype),o}(t,arguments,Xt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,t)},Lt(t)}function Wt(t,e,n,r){var o=Vt(Xt(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function Vt(){return Vt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Xt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Vt.apply(null,arguments)}function Ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zt(r.key),r)}}function Dt(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function zt(t){var e=function(t,e){if("object"!=te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==te(e)?e:e+""}function qt(t,e,n){return e=Xt(e),function(t,e){if(e&&("object"==te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gt()?Reflect.construct(e,n||[],Xt(t).constructor):e.apply(t,n))}function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gt=function(){return!!t})()}function Xt(t){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xt(t)}function $t(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ht(t,e)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ht(t,e)}function Yt(t,e,n){Zt(t,e),e.set(t,n)}function Zt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jt(t,e){return t.get(Qt(t,e))}function Kt(t,e,n){return t.set(Qt(t,e),n),n}function Qt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function te(t){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(t)}var ee=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":te(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},ne=(Et=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=qt(this,t,arguments),Et,void 0),e.name="foo",Kt(Et,e,!1),e}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("div",null,"Render on set: ",this.name)}},{key:"connectedCallback",value:function(){if(!Jt(Et,this)){Kt(Et,this,!0);var t=this.templateFromString("<style>div{color: lime}</style><div />");this.shadowRoot.appendChild(t),this.createProjector(this.shadowRoot.querySelector("div"),this.render)}}}])}());ee([C],ne.prototype,"name",void 0),ne=ee([y({tagName:"render-on-set"})],ne);var re=(At=function(){function t(){var e;return Ut(this,t),(e=qt(this,t,arguments))._zero=0,e._renderCount=0,e}return $t(t,ht),Dt(t,[{key:"alwaysZero",value:function(){return 0}},{key:"zero",get:function(){return this._zero=this.alwaysZero(),this._zero}},{key:"render",value:function(){return this._renderCount++,h("div",null,"Value of Zero: ",this.zero," - Renders: ",this._renderCount)}}])}(),At.style="/* */",At);ee([C],re.prototype,"_zero",void 0),re=ee([y({tagName:"p-bugs-03"})],re);var oe=(xt=function(){function t(){return Ut(this,t),qt(this,t,arguments)}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("button",{class:"foo"},h("slot",null))}}])}(),xt.style=".foo{background-color: red; color: white; border: 0px;}",xt.delegatesFocus=!0,xt);oe=ee([y({tagName:"my-button"})],oe);var ie,ae,ue=(Nt=function(t){function e(){var t;return Ut(this,e),(t=qt(this,e,arguments)).count=1,t.name="",t.foo="foo",t.onInput=function(e){t.name=e.target.value},t.onPeterClick=function(e){console.log({e,p:t})},t.onFooEvent=function(e){t.foo=e.detail.foo},t}return $t(e,t),Dt(e,[{key:"enterAnimation",value:function(t,e){d()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],rotate:"2turn",duration:3e3,loop:!1})}},{key:"exitAnimation",value:function(t,e,n){d()({targets:t,translateX:[{value:100,duration:1200},{value:0,duration:800}],duration:3e3,opacity:0,loop:!1,complete:function(){e(t)}})}},{key:"countUpdateAnimation",value:function(t,e,n){d().timeline().add([{duration:300,targets:t,translateX:200,scale:1.9,easing:"easeOutExpo"},{duration:300,targets:t,translateX:0,scale:1,easing:"easeInExpo"}])}},{key:"render",value:function(){var t=this;return h("div",null,h("input",{type:"checkbox",checked:"Peter"===this.name}),h("h1",{on:{click:function(e){return console.log(e,t.slotContainer)}},id:"Foo"},"Hallo:"),h("h1",{"data-force-event-handler":"true",onclick:function(){return console.log("click "+t.name)},"data-title":this.name&&this.name.toLocaleUpperCase(),class:"title"},this.foo," ",this.name),h("p",{"data-count":this.count,updateAnimation:this.countUpdateAnimation},this.count),h("div",{id:"SlotContainer"},h("slot",null)),h("p",{eventListeners:[["mouseenter",function(){return console.log("enter")},{once:!0}],["mouseleave",function(){return console.log("leave")},{once:!0}]]},"Please enter your name (hint type"," ",h("em",null,h("strong",null,"Peter")),")",h("br",null),h("input",{type:"text",value:this.name,oninput:this.onInput})),h("p",null,h("a",{is:"super-a"},"Super a")),this.name&&this.name.toLowerCase&&this.name.toLowerCase().indexOf("peter")>-1?h("div",{key:"peter",afterRemoved:this.peterRemoved,afterCreate:this.peterCreate,class:"is-peter",eventListeners:[["click",this.onPeterClick]],enterAnimation:function(e,n){return t.enterAnimation(e,n)},exitAnimation:function(e,n,r){return t.exitAnimation(e,n,r)}},h("p",null,"Hello Peter"),h("img",{class:"is-peter--image",src:"https://s-media-cache-ak0.pinimg.com/474x/ce/1d/07/ce1d07011c0afb8e0614a0ae42a8c861.jpg",height:"140"})):"")}},{key:"peterRemoved",value:function(){console.log("removed")}},{key:"peterCreate",value:function(){console.log("create")}},{key:"connectedCallback",value:function(){var t=this;Wt(e,"connectedCallback",this,3)([]);var n=this.templateFromString('\n <style>\n\n :host{\n /* display: none; */\n }\n\n .root {\n display: flex;\n padding: 10px;\n flex-direction: row;\n }\n\n #Foo {\n @apply --mixin-sample;\n text-decoration: underline;\n }\n\n #SlotContainer ::slotted(*) {\n font-weight: bold;\n color: green;\n font-size: 1.5em;\n }\n\n </style>\n <div class="root"></div>\n ');this.shadowRoot.appendChild(n),this.createProjector(this.shadowRoot.querySelector(".root"),this.render),setInterval((function(){t.count++,t.renderNow()}),5e3),window.addEventListener("foo",this.onFooEvent)}},{key:"attributeChangedCallback",value:function(t,e,n){"name"===t&&(this.name=n)}}],[{key:"observedAttributes",get:function(){return["name"]}}])}((ie=function(){function t(){return Ut(this,t),qt(this,t,arguments)}return $t(t,ht),Dt(t,[{key:"render",value:function(){return h("div",null)}}])}(),ae=new WeakMap,function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l(t=a(this,e,[].concat(r)),ae,!1),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),n=e,(r=[{key:"highlight",get:function(){return e=this,(t=ae).get(f(t,e));var t,e},set:function(t){var e,n,r;n=this,r=t,(e=ae).set(f(e,n),r);var o="unset";t&&(o="yellow");var i=null==this?void 0:this.shadowRoot.querySelector("div");i&&(i.style.backgroundColor=o)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(ie))),Nt.isFormAssociated=!0,Nt);ee([C],ue.prototype,"name",void 0),ee([C],ue.prototype,"foo",void 0),ee([function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r){Object.defineProperty(n,r,{get:function(){return e?this.shadowRoot.querySelector(t):this.querySelector(t)}})}}("#SlotContainer")],ue.prototype,"slotContainer",void 0),ue=ee([y({tagName:"my-greetings"})],ue);var ce=new WeakMap,se=new WeakSet,le=function(){function t(){var e,n,r;return Ut(this,t),e=qt(this,t,arguments),Zt(n=e,r=se),r.add(n),Yt(e,ce,void 0),Kt(ce,e,!1),e.disabled=!1,e}return $t(t,Ft),Dt(t,[{key:"connected",value:function(){console.log("connected"),Kt(ce,this,!0),Qt(se,this,fe).call(this)}},{key:"disconnected",value:function(){console.info("disconnected"),Kt(ce,this,!1)}},{key:"shouldUpdate",value:function(t,e,n){return console.info("shouldUpdate",{property:t,oldValue:e,newValue:n}),!0}},{key:"updated",value:function(t,e,n){console.info("updated",{property:t,oldValue:e,newValue:n}),Qt(se,this,fe).call(this)}},{key:"hostRenderStart",value:function(t){console.info("hostRenderStart",{isFirstRender:t,controller:this})}},{key:"hostRenderDone",value:function(t){console.info("hostRenderDone",{isFirstRender:t,controller:this})}}])}();function fe(){Jt(ce,this)&&(!0===this.disabled?this.hostElement.setAttribute("disabled","!!"):this.hostElement.removeAttribute("disabled"))}ee([_({type:"boolean"})],le.prototype,"disabled",void 0);var he=(Mt=function(){function t(){var e;return Ut(this,t),(e=qt(this,t,arguments)).disabledController=new le(e),e.items=["foo","bar"],e.nickName="de prutser",e.render=function(){var t;return h("div",{classes:{foo:!0,foo__disabled:e.disabledController.disabled}},h("div",null,"Hello ",e.name," ",e.nickName?h("span",null," (",e.nickName,")"):null),h("div",null,"age ",e.age),e.data?h("pre",null,JSON.stringify(e.data,null,2)):null,null===(t=e.items)||void 0===t?void 0:t.map((function(t,e){return h("div",{key:"item".concat(e)},t)})))},e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.info("init")}},{key:"shouldUpdate",value:function(t,e,n){return"name"!==t||"string"!=typeof n||"adolf"!==n.toLocaleLowerCase()}},{key:"updated",value:function(t,e,n){console.info("PFoo",{name:t,old:e,newValue:n})}},{key:"attributeChangedCallback",value:function(e,n,r){Wt(t,"attributeChangedCallback",this,3)([e,n,r]),"disabled"===e&&(this.disabledController.disabled=null!==r)}},{key:"renderStart",value:function(t){console.info("renderStart",{isFirstRender:t,tag:this.tagName})}},{key:"renderDone",value:function(t){console.info("renderDone",{isFirstRender:t,tag:this.tagName})}}])}(),Mt.style=".foo{color: red} .foo__disabled{opacity: 0.5;}",Mt.observedAttributes=["disabled"],Mt);ee([_({type:"string",attribute:"name",reflect:!0})],he.prototype,"name",void 0),ee([_({type:"number",attribute:"age",reflect:!0})],he.prototype,"age",void 0),ee([_({type:"object",attribute:"data",reflect:!0})],he.prototype,"data",void 0),ee([_({attribute:"items",type:"object",reflect:!0,converter:{fromAttribute:function(t){return t?t.split(",").map((function(t){return t.trim()})):null},toAttribute:function(t){return t.join?t.join(","):null}}})],he.prototype,"items",void 0),ee([_({type:"string",attribute:"nick-name"})],he.prototype,"nickName",void 0),he=ee([y({tagName:"p-foo"})],he);var pe=function(){function t(){var e;return Ut(this,t),(e=qt(this,t)).onclick=function(t){t.preventDefault(),alert("super")},e}return $t(t,Lt(HTMLAnchorElement)),Dt(t,[{key:"connectedCallback",value:function(){this.classList.add("super"),this.style.color="red"}}])}();window.customElements.define("super-a",pe,{extends:"a"});var de=(Rt=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=qt(this,t),Rt,void 0),e.name="foo",Kt(Rt,e,!1),e.initProjector(),e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.log("This is a lifecycle for BringYourOwnProjector")}},{key:"initProjector",value:function(){this.rootElement=document.createElement("div"),this.rootElement.classList.add("root"),this.createProjector(this.rootElement,this.render),console.log("init")}},{key:"doneSomething",get:function(){return Jt(Rt,this)}},{key:"doItNow",value:function(t){Kt(Rt,this,t),this.renderNow()}},{key:"render",value:function(){return h("div",null,"Hello ",this.name," ",this.doneSomething&&h("p",null,"We did it!!"))}},{key:"connectedCallback",value:function(){this.appendChild(this.rootElement)}}])}());ee([C],de.prototype,"name",void 0),de=ee([y({tagName:"bring-your-own-projector"})],de);var ye=(Tt=new WeakMap,function(){function t(){var e;return Ut(this,t),Yt(e=qt(this,t),Tt,void 0),e.name="foo",Kt(Tt,e,!1),e.initProjector(),e}return $t(t,ht),Dt(t,[{key:"init",value:function(){console.log("This is a lifecycle for BringYourOwnProjector")}},{key:"initProjector",value:function(){this.attachShadow({mode:"open"}),this.rootElement=document.createElement("div"),this.rootElement.classList.add("root"),this.createProjector(this.rootElement,this.render),console.log("init")}},{key:"doneSomething",get:function(){return Jt(Tt,this)}},{key:"doItNow",value:function(t){Kt(Tt,this,t),this.renderNow()}},{key:"render",value:function(){return h("div",null,"Hello ",this.name," ",this.doneSomething&&h("p",null,"We did it!!"))}},{key:"connectedCallback",value:function(){this.shadowRoot.appendChild(this.rootElement)}}])}());ee([C],ye.prototype,"name",void 0),ye=ee([y({tagName:"bring-your-own-projector-in-shadow-root"})],ye);export{de as BringYourOwnProjector,ye as BringYourOwnProjectorInShadowRoot,oe as MyButton,ue as MyGreetings,re as PBugs03,ne as RenderOnSet};