(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd0bc"],{"805c":function(r,t,e){"use strict";e.r(t),e.d(t,"scopeCss",(function(){return N}));var n=function(){for(var r=0,t=0,e=arguments.length;t\\s~+[.,{:][\\s\\S]*)?$",m=/-shadowcsshost/gim,x=/:host/gim,w=/::slotted/gim,_=/:host-context/gim,b=/\/\*\s*[\s\S]*?\*\//g,S=function(r){return r.replace(b,"")},W=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,O=function(r){return r.match(W)||[]},k=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,j=/([{}])/g,E="{",R="}",T="%BLOCK%",C=function(r,t){var e=L(r),n=0;return e.escapedString.replace(k,(function(){for(var r=[],c=0;c0?o.push(a):(o.length>0&&(n.push(o.join("")),e.push(T),o=[]),e.push(a)),a===E&&c++}o.length>0&&(n.push(o.join("")),e.push(T));var i={escapedString:e.join(""),blocks:n};return i},B=function(r){return r=r.replace(_,i).replace(x,s).replace(w,a),r},I=function(r,t,e){return r.replace(t,(function(){for(var r=[],t=0;t-1?J(r,t,e):r+t+e+", "+t+" "+r+e},y=function(r,t){var e="."+t+" > ",n=[];return r=r.replace(p,(function(){for(var r=[],t=0;t=0;i--){var u=r[5][i];if("}"===u||","===u)break;a=u+a}var l=a+s,f=""+a.trimRight()+s.trim();if(l.trim()!==f.trim()){var p=f+", "+l;n.push({orgSelector:l,updatedSelector:p})}return s}return h+r[3]})),{selectors:n,cssText:r}},A=function(r){return I(r,f,$)},M=function(r){return v.reduce((function(r,t){return r.replace(t," ")}),r)},U=function(r){var t=/\[/g,e=/\]/g;return r=r.replace(t,"\\[").replace(e,"\\]"),new RegExp("^("+r+")"+d,"m")},q=function(r,t){var e=U(t);return!e.test(r)},z=function(r,t,e){if(m.lastIndex=0,m.test(r)){var n="."+e;return r.replace(g,(function(r,t){return t.replace(/([^:]*)(:*)(.*)/,(function(r,t,e,c){return t+n+e+c}))})).replace(m,n+" ")}return t+" "+r},D=function(r,t,e){var n=/\[is=([^\]]*)\]/g;t=t.replace(n,(function(r){for(var t=[],e=1;e-1)n=z(r,t,e);else{var c=r.replace(m,"");if(c.length>0){var o=c.match(/([^:]*)(:*)(.*)/);o&&(n=o[1]+s+o[2]+o[3])}}return n},i=c(r);r=i.content;var u,l="",f=0,p=/( |>|\+|~(?!=))\s*/g,g=r.indexOf(h)>-1,v=!g;while(null!==(u=p.exec(r))){var d=u[1],x=r.slice(f,u.index).trim();v=v||x.indexOf(h)>-1;var w=v?a(x):x;l+=w+" "+d+" ",f=p.lastIndex}var _=r.substring(f);return v=v||_.indexOf(h)>-1,l+=v?a(_):_,o(i.placeholders,l)},F=function(r,t,e,n){return r.split(",").map((function(r){return n&&r.indexOf("."+n)>-1?r.trim():q(r,t)?D(r,t,e).trim():r.trim()})).join(", ")},G=function(r,t,e,n,c){return C(r,(function(r){var c=r.selector,o=r.content;"@"!==r.selector[0]?c=F(r.selector,t,e,n):(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document"))&&(o=G(r.content,t,e,n));var s={selector:c.replace(/\s{2,}/g," ").trim(),content:o};return s}))},H=function(r,t,e,n,c){r=B(r),r=K(r),r=A(r);var o=y(r,n);return r=o.cssText,r=M(r),t&&(r=G(r,t,e,n)),r=r.replace(/-shadowcsshost-no-combinator/g,"."+e),r=r.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:r.trim(),slottedSelectors:o.selectors}},N=function(r,t,e){var c=t+"-h",o=t+"-s",s=O(r);r=S(r);var a=[];if(e){var i=function(r){var t="/*!@___"+a.length+"___*/",e="/*!@"+r.selector+"*/";return a.push({placeholder:t,comment:e}),r.selector=t+r.selector,r};r=C(r,(function(r){return"@"!==r.selector[0]?i(r):r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")?(r.content=C(r.content,i),r):r}))}var u=H(r,t,c,o);return r=n([u.cssText],s).join("\n"),e&&a.forEach((function(t){var e=t.placeholder,n=t.comment;r=r.replace(e,n)})),u.slottedSelectors.forEach((function(t){r=r.replace(t.orgSelector,t.updatedSelector)})),r}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license * * This file is a port of shadowCSS from webcomponents.js to TypeScript. * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts */}}]); //# sourceMappingURL=chunk-2d0dd0bc.b5c4bb06.js.map