(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874],{19220:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var r=n(67294),o=n(14646),a=n(32680),i=n(56260),s=n(48560);const l=({type:e,className:t,style:n,isLightLogo:l,customSize:c,badge:u,locale:h,dateForSeasonal:p,isPro:d})=>{const[g,f]=(0,r.useState)({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return(0,r.useEffect)((()=>{if(!p||isNaN(new Date(p).getTime()))return;const e=new Date(p),t=(0,i.i)(e),n=i.a.includes(h)&&(0,i.b)(e),r=!n&&(0,i.c)(e),a=(0,i.d)(e),s=h===o.L.Vietnam&&(0,i.e)(e),l=h===o.L.Vietnam&&(0,i.f)(e),c=h===o.L.Vietnam&&(0,i.g)(e);f({isChristmas:t,isLunarNewYear:n,isNewYear:r,isRamadan:a,isVNHungKing:s,isVN3004:l,isLabourDay:c})}),[h,new Date(p).getDate()]),r.createElement(i.S,{className:t,style:n,"data-logo-is-light":l||void 0,"data-has-badge":!!u,"data-seasonal":g.isRamadan?"ramadan":g.isChristmas?"christmas":g.isLunarNewYear?"lunar-new-year":g.isNewYear?"new-year":g.isVNHungKing?"hung-king":g.isVN3004?"30-04":g.isLabourDay?"labour-day":void 0,"data-type":e},g.isChristmas?r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"left xmas logo",src:a.C.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),r.createElement(s.I,{alt:"right xmas logo",src:a.C.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):g.isNewYear?r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"left new year logo",src:a.C.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),r.createElement(s.I,{alt:"right new year logo",src:a.C.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):g.isLunarNewYear?r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"left lunar new year logo",loading:"lazy",src:a.C.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),r.createElement(s.I,{alt:"right lunar new year logo",loading:"lazy",src:a.C.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):g.isRamadan&&"hellosehat"===e?r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"left ramadan logo",loading:"lazy",src:a.C.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),r.createElement(s.I,{alt:"right ramadan logo",loading:"lazy",src:a.C.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):g.isRamadan&&"hellodoktor"===e?r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"left ramadan logo",loading:"lazy",src:a.C.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),r.createElement(s.I,{alt:"right ramadan logo",loading:"lazy",src:a.C.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!g.isVNHungKing||"hellobacsi"!==e&&"marryBaby"!==e?null:r.createElement(r.Fragment,null,r.createElement(s.I,{alt:"Hung King logo",loading:"lazy",src:a.C.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),r.createElement(i.L,{type:e,width:null===c||void 0===c?void 0:c.width,height:null===c||void 0===c?void 0:c.height}),d?r.createElement(i.h,{src:a.C.getAssetPath("logo/pro-suffix.svg")}):null,u)}},11024:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(33919),o=n(67294),a=n(75529);n(47856);const i=e=>{var{size:t="base",type:n="regular"}=e,i=(0,r._)(e,["size","type"]);return o.createElement(a.T,Object.assign({size:t,weight:"caption"===n?"bold":n,"data-size":t,"data-type":n,"data-word-wrap":i.wordWrap,"data-is-uppercase":i.isUppercase},i))}},56260:function(e,t,n){"use strict";n.d(t,{L:function(){return h},S:function(){return c},a:function(){return g},b:function(){return f},c:function(){return m},d:function(){return v},e:function(){return w},f:function(){return b},g:function(){return k},h:function(){return u},i:function(){return p}});var r=n(93867),o=n(89814),a=n(67294),i=n(32680),s=n(48560),l=n(14646);const c=r.Z.div` position: relative; display: inline-flex; align-items: center; z-index: 1; .main-logo-icon { object-fit: contain; } &[data-logo-is-light] { > svg path { fill: #fff; } img { filter: brightness(0) invert(1); } } &[data-has-badge] { @supports (display: flex) and (gap: 1em) { gap: 0.5rem; } @supports not ((display: flex) and (gap: 1em)) { > img { margin-left: 0.25rem; } } } .common-logo-seasonal-left, .common-logo-seasonal-right { z-index: -1; max-width: unset; max-height: unset; } .common-logo-seasonal-left { position: absolute; top: 50%; left: 0; transform: translateY(-50%); } .common-logo-seasonal-right { position: absolute; top: 50%; right: 0; transform: translateY(-50%); } &[data-seasonal='christmas'] { padding-left: 37px; padding-right: 22px; .common-logo-seasonal-left { width: 125px; height: 56px; } .common-logo-seasonal-right { width: 23px; height: 17px; } } &[data-seasonal='new-year'] { padding-right: 85px; .common-logo-seasonal-left { top: 35%; width: 100px; height: 56px; } .common-logo-seasonal-right { width: 85px; height: 54px; } ${o.M.mbDown} { padding-right: 0; .common-logo-seasonal-right { display: none; } } } &[data-seasonal='lunar-new-year'] { padding-left: 30px; padding-right: 35px; .common-logo-seasonal-left { width: 33px; height: 41px; } .common-logo-seasonal-right { width: 37px; height: 54px; } } &[data-seasonal='ramadan'] { &[data-type='hellosehat'] { padding-right: 35px; .common-logo-seasonal-left { width: 165px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 33px; height: unset; } } &[data-type='hellodoktor'] { padding-right: 66px; .common-logo-seasonal-left { width: 133px; height: unset; left: 6px; } .common-logo-seasonal-right { width: 63px; height: unset; } } } &[data-seasonal='hung-king'] { &[data-type='hellobacsi'] { .common-logo-seasonal-left { width: 134px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } &[data-type='marryBaby'] { .common-logo-seasonal-left { width: 145px; height: unset; left: 50%; top: 50%; transform: translate(-50%, -50%); } } } `,u=r.Z.img` height: 16px; width: unset; margin-bottom: 4px; margin-left: -3px; `,h=(0,a.memo)((({type:e,width:t,height:n})=>{const r=(0,a.useMemo)((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:i.C.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:i.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:i.C.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:i.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:i.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:i.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:i.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:i.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:i.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:i.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:i.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:i.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:i.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:i.C.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:o,width:l,height:c}=r||{};return a.createElement(s.I,{alt:`${e} logo`,className:"main-logo-icon",src:o,style:{width:l,height:c}})})),p=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},d={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},g=[l.L.Vietnam,l.L.Taiwan,l.L.Indonesia,l.L.Malaysia],f=e=>{const t=e.getFullYear(),n=d[t];if(!n)return!1;const r=new Date(t,n[1],n[0]),o=new Date(r);o.setDate(r.getDate()-7);const a=new Date(r);return a.setDate(r.getDate()+5),o<=e&&e<=a},m=e=>{const t=e.getDate(),n=e.getMonth();return 11===n&&t>=26||0===n&&t<=15},y=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],v=e=>{const t=e.getFullYear(),n=y.filter((e=>e.year===t));return!!n.length&&n.some((n=>{const r=n.start[2]||t,o=new Date(r,n.start[1],n.start[0]),a=new Date(r,n.end[1],n.end[0]);return o<=e&&e<=a}))},x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]},w=e=>{const t=e.getFullYear(),n=x[t];if(!n)return!1;const r=new Date(t,n[1],n[0]),o=new Date(r);o.setDate(r.getDate()-1);const a=new Date(r);return a.setDate(r.getDate()+1),o<=e&&e<=a},b=e=>{const t=e.getFullYear(),n=new Date(t,3,30),r=new Date(n);r.setDate(n.getDate()-1);const o=new Date(n);return o.setDate(n.getDate()+2),r<=e&&e<=o},k=e=>{const t=e.getFullYear(),n=new Date(t,4,1),r=new Date(n);r.setDate(n.getDate()-1);const o=new Date(n);return o.setDate(n.getDate()+1),r<=e&&e<=o}},99960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},47915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(99960),i=n(97790);o(n(97790),t);var s=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(n=t,t=l),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:l,this.elementCB=null!==n&&void 0!==n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===a.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var r=new i.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(a.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"===typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},97790:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var d=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return r(t,e),t}(p);t.Document=d;var g=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o,r)||this;return i.name=t,i.attribs=n,i}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function f(e){return(0,a.isTag)(e)}function m(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function b(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(v(e))n=new u(e.data);else if(f(e)){var r=t?k(e.children):[],i=new g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(m(e)){r=t?k(e.children):[];var s=new p(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(w(e)){r=t?k(e.children):[];var l=new d(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var b=new h(e.name,e.data);null!=e["x-name"]&&(b["x-name"]=e["x-name"],b["x-publicId"]=e["x-publicId"],b["x-systemId"]=e["x-systemId"]),n=b}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return b(e,!0)})),n=1;n/i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"===typeof window.DOMParser){var h=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),h.parseFromString(e,"text/html")}}if(document.implementation){var p=n(1507).isIE,d=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);c=function(e,t){return t?(d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var g,f=document.createElement("template");f.content&&(g=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var t,n,h,p,d=e.match(i);switch(d&&d[1]&&(t=d[1].toLowerCase()),t){case r:return n=u(e),s.test(e)||(h=n.getElementsByTagName(o)[0])&&h.parentNode.removeChild(h),l.test(e)||(h=n.getElementsByTagName(a)[0])&&h.parentNode.removeChild(h),n.getElementsByTagName(r);case o:case a:return p=c(e).getElementsByTagName(t),l.test(e)&&s.test(e)?p[0].parentNode.childNodes:p;default:return g?g(e):c(e,a).getElementsByTagName(a)[0].childNodes}}},14152:function(e,t,n){var r=n(38276),o=n(1507).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},1507:function(e,t,n){for(var r,o=n(60885),a=n(97790),i=o.CASE_SENSITIVE_TAG_NAMES,s=a.Comment,l=a.Element,c=a.ProcessingInstruction,u=a.Text,h={},p=0,d=i.length;p1&&(u=g(u,{key:u.key||w})),y.push(u);else if("text"!==a.type){switch(h=a.attribs,l(a)?i(h.style,h):h&&(h=o(h)),p=null,a.type){case"script":case"style":a.children[0]&&(h.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?h.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,n));break;default:continue}b>1&&(h.key=w),y.push(f(a.name,h,p))}else{if((c=!a.data.trim().length)&&a.parent&&!s(a.parent))continue;if(x&&c)continue;y.push(a.data)}return 1===y.length?y[0]:y}},74606:function(e,t,n){var r=n(67294),o=n(41476).default;var a={reactCompat:!0};var i=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!==typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"===typeof t,a={},i={};for(n in e)r=e[n],o&&(a=t(n,r))&&2===a.length?i[a[0]]=a[1]:"string"===typeof r&&(i[r]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!==e&&void 0!==e)try{t.style=o(e,a)}catch(n){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var h=1,p=1;function d(e){var t=e.match(n);t&&(h+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function g(){var e={line:h,column:p};return function(t){return t.position=new f(e),x(),t}}function f(e){this.start=e,this.end={line:h,column:p},this.source=l.source}f.prototype.content=e;var m=[];function y(t){var n=new Error(l.source+":"+h+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=h,n.column=p,n.source=e,!l.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function x(){v(r)}function w(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,d(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function k(){var e=g(),n=v(o);if(n){if(b(),!v(a))return y("property missing ':'");var r=v(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return x(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},83:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n