enqueueScripts([function(){ (window.webpackJsonpvtex_order_items_0_14_0=window.webpackJsonpvtex_order_items_0_14_0||[]).push([[0],[,function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return I}));var i,r=n(0),a=n.n(r),u=new Uint8Array(16);function s(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(u)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var l=function(e){return"string"==typeof e&&o.test(e)},d=[],c=0;c<256;++c)d.push((c+256).toString(16).substr(1));var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n};var f=function(e,t,n){var i=(e=e||{}).random||(e.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return m(i)},v=n(12);const h=async()=>{},p=Object(r.createContext)({addItem:h,addItems:h,updateQuantity:h,removeItem:h,setManualPrice:h}),I=()=>Object(r.useContext)(p),g={queue:[]},y=e=>{var t;let n=null;try{n=JSON.parse(null!==(t=localStorage.getItem("orderQueue"))&&void 0!==t?t:"null")}catch{}if(!n)try{localStorage.setItem("orderQueue",JSON.stringify(g))}catch(t){null==e||e({type:"Error",level:"Critical",event:t,workflowType:"OrderItems",workflowInstance:"get-local-order-queue"})}return null!=n?n:g},w=(e,t)=>{try{localStorage.setItem("orderQueue",JSON.stringify(e))}catch(e){null==t||t({type:"Error",level:"Critical",event:e,workflowType:"OrderItems",workflowInstance:"save-local-order-queue"})}},b=(e,t)=>{const n=y(),i=n.queue.push(e);return w(n,t),i},k=(e=0,t)=>{const n=y(t),i=n.queue[e];if(i)return n.queue.splice(e,1),w(n,t),i},T="available",q=(e,t,n)=>{var i,r,a;const u=(null===(i=e.id)||void 0===i?void 0:i.toString())===t.id,s=e.seller===t.seller;if(t.isGift)return!1;if(null==e.options||!(null===(r=e.options)||void 0===r?void 0:r.length))return!(null===(a=t.attachments)||void 0===a?void 0:a.length)&&(u&&s);const o=e.options.every(e=>n.find(t=>t.id===e.id));return u&&s&&o},O=e=>{var t;return{id:+(null!==(t=e.id)&&void 0!==t?t:0),index:e.index,quantity:e.quantity,seller:e.seller,options:e.options}},M=(e,t)=>{var n,i,r,a;return{id:t.id,productId:t.productId,name:t.name,skuName:t.skuName,skuSpecifications:t.skuSpecifications,imageUrls:{at1x:t.imageUrl,at2x:t.imageUrl,at3x:t.imageUrl},price:t.price,listPrice:t.listPrice,sellingPrice:t.sellingPrice,measurementUnit:t.measurementUnit,quantity:null!==(n=t.quantity)&&void 0!==n?n:1,unitMultiplier:null!==(i=t.unitMultiplier)&&void 0!==i?i:1,uniqueId:null!==(r=e.uniqueId)&&void 0!==r?r:f(),detailUrl:t.detailUrl,availability:null!==(a=t.availability)&&void 0!==a?a:T,additionalInfo:t.additionalInfo,options:t.options,seller:t.seller,attachmentOfferings:[],attachments:[],bundleItems:[],offerings:[],priceTags:[],isGift:!1}},x=e=>void 0!==e;function C({useMutateAddItems:e,useOrderForm:t,useLogger:n}){return i=>{var a;const{setOrderForm:u}=t(),s=e(),{log:o}=null!==(a=null==n?void 0:n())&&void 0!==a?a:{};return Object(r.useCallback)(({mutationInputItems:e,mutationInputMarketingData:t,orderFormItems:n,salesChannel:r,allowedOutdatedData:a})=>({execute:async()=>{var l;const{data:d,errors:c}=await s({items:e,marketingData:t,salesChannel:r,allowedOutdatedData:a});if(!d||(null!==(l=null==c?void 0:c.length)&&void 0!==l?l:0)>0)throw null==c?void 0:c[0];return n.forEach(e=>{const t=null==d?void 0:d.items.find(t=>t.id===e.id);if(!t)return;const n=e.uniqueId;(({fakeUniqueId:e,uniqueId:t},n)=>{const i=y(n);i.queue=i.queue.map(n=>{if("update_mutation"!==n.type)return n;const i=n.variables.orderItems.findIndex(t=>"uniqueId"in t&&t.uniqueId===e);return i>-1&&(n.variables.orderItems[i]={...n.variables.orderItems[i],uniqueId:t}),n}),w(i,n)})({fakeUniqueId:n,uniqueId:t.uniqueId},o),i.current[n]=t.uniqueId}),u(n=>({...n,items:n.items.map(t=>{if(-1===e.findIndex(e=>q(e,t,n.items)))return t;const i=d.items.find(e=>e.id===t.id);return i?{...t,uniqueId:i.uniqueId}:null}).filter(e=>null!=e),marketingData:null!=t?t:n.marketingData})),d},rollback:()=>{u(t=>{const n=e.map(({id:e})=>e.toString());return{...t,items:t.items.filter(e=>!n.includes(e.id))}})}}),[i,o,s,u])}}const _=({totalizers:e,currentValue:t=0,newItem:n,oldItem:i})=>{var r,a,u,s,o;if((null==i?void 0:i.availability)!==T)return{totalizers:e,value:t};const l=(null!==(r=i.price)&&void 0!==r?r:0)*(null!==(a=i.unitMultiplier)&&void 0!==a?a:1),d=null!==(u=i.quantity)&&void 0!==u?u:0,c=null!==(s=i.sellingPrice)&&void 0!==s?s:0,m=l*d,f=n.price*(null!==(o=n.unitMultiplier)&&void 0!==o?o:1),v=f*n.quantity-m,h=(c-l)*d,p=(n.sellingPrice-f)*n.quantity-h,I=t+v+p;if(!e.length)return{totalizers:[{id:"Items",name:"Items Total",value:v},{id:"Discounts",name:"Discounts Total",value:p}],value:I};return{totalizers:e.map(e=>{switch(e.id){case"Items":return{...e,value:e.value+v};case"Discounts":return{...e,value:e.value+p};default:return e}}),value:I}},D=async()=>{};function E({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:u,useOrderQueue:s,useQueueStatus:o}){const l=C({useMutateAddItems:e,useOrderForm:i}),d=function({useMutateSetManualPrice:e}){return()=>{const t=e();return Object(r.useCallback)((e,n)=>{if(t)return{execute:async()=>{var i;const{data:r,errors:a}=await t({itemIndex:n,price:e});if(!r||(null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0)>0)throw null==a?void 0:a[0];return r}}},[t])}}({useMutateSetManualPrice:n}),c=function({useMutateUpdateQuantity:e,useOrderForm:t}){return n=>{const{setOrderForm:i}=t(),a=e();return Object(r.useCallback)(({items:e,orderFormItems:t,id:r,allowedOutdatedData:u,splitItem:s})=>({id:r,execute:async()=>{var t;const i={orderItems:e.map(e=>{if("uniqueId"in e){return{uniqueId:n.current[e.uniqueId]||e.uniqueId,quantity:e.quantity}}return e}),allowedOutdatedData:u,splitItem:s},{data:r,errors:o}=await a(i);if(!r||(null!==(t=null==o?void 0:o.length)&&void 0!==t?t:0)>0)throw null==o?void 0:o[0];return r},rollback:()=>{const n=e.filter(({quantity:e})=>0===e),r=e.filter(({quantity:e})=>0!==e),a=n.map(e=>t.find((t,n)=>"uniqueId"in e?t.uniqueId===e.uniqueId:e.index===n)).filter(x);i(e=>({...e,items:e.items.map(e=>{const n=r.findIndex((t,n)=>"uniqueId"in t?e.uniqueId===t.uniqueId:n===t.index);if(-1!==n){const i=r[n],a=t.find((e,t)=>"uniqueId"in i?e.uniqueId===i.uniqueId:t===i.index);return{...e,quantity:a.quantity}}return e}).concat(a)}))}}),[n,a,i])}}({useMutateUpdateQuantity:t,useOrderForm:i});return{OrderItemsProvider:({children:e})=>{const{orderForm:t,setOrderForm:n}=i(),{log:m}=u(),h=function({useOrderQueue:e}){const t=Object(r.useRef)({}),{listen:n}=e();return Object(r.useEffect)(()=>n("Fulfilled",()=>{t.current={}}),[n]),t}({useOrderQueue:s}),I=(({useOrderForm:e,useLogger:t,useOrderQueue:n,useQueueStatus:i})=>{const{log:a}=t(),{enqueue:u}=n(),s=i(),{setOrderForm:o}=e();return Object(r.useCallback)(e=>u(e.execute,e.id).then(e=>{k(0,a),"Fulfilled"===s.current?o(e):o(t=>{var n;return{...t,messages:{...e.messages,generalMessages:null===(n=e.messages)||void 0===n?void 0:n.generalMessages}}})},e=>{if(!e||e.code!==v.a)throw k(0,a),a({type:"Error",level:"Critical",event:e,workflowType:"OrderItems",workflowInstance:"enqueue-task-error"}),e;k(e.index,a)}),[u,s,o,a])})({useOrderForm:i,useLogger:u,useOrderQueue:s,useQueueStatus:o}),g=l(h),w=c(h),T=d(),x=Object(r.useRef)(t.items);Object(r.useEffect)(()=>{x.current=t.items},[t.items]);const C=Object(r.useCallback)(async(e,t)=>{var i,r,a;let u,s="";const o=x.current;if(e.id?u=o.findIndex(t=>q(e,t,o)):e.uniqueId?(s=e.uniqueId,u=o.findIndex(t=>t.uniqueId===e.uniqueId)):u=null!==(i=null==e?void 0:e.index)&&void 0!==i?i:-1,u<0||u>=o.length)throw new Error(`Item ${null!==(r=e.id)&&void 0!==r?r:e.uniqueId} not found`);s||(s=o[u].uniqueId);const l=null!==(a=e.quantity)&&void 0!==a?a:1;let d;n(e=>{const t=e.items.slice(),n=t[u],i={...n,quantity:l};return l>0?t[u]=i:t.splice(u,1),{...e,..._({totalizers:e.totalizers,currentValue:e.value,newItem:i,oldItem:n}),items:t}});let c=f();if(l>0){const n=y(m).queue;let i=-1;const r=c;for(let e=1;ee.quantity>0)?(i=e,c=t.id):(i=-1,c=r)}const a=-1===i?void 0:n[i],o="update_mutation"===(null==a?void 0:a.type)?a.variables.orderItems:[],f=o.findIndex(e=>"uniqueId"in e?e.uniqueId===s:e.index===u);let v={uniqueId:s,quantity:l};"index"in e&&(v={index:u,quantity:l}),d={allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem,orderItems:f>-1?o.map((e,t)=>t===f?v:e):o.concat([v])}}else d={allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem,orderItems:[{uniqueId:s,quantity:l}]};return b({id:c,type:"update_mutation",variables:d,orderFormItems:o},m),I(w({items:d.orderItems,orderFormItems:o,id:c,allowedOutdatedData:null==t?void 0:t.allowedOutdatedData,splitItem:null==t?void 0:t.splitItem}))},[I,m,n,w]),E=Object(r.useCallback)(async(e,t)=>{const{salesChannel:i,marketingData:r,allowedOutdatedData:a,splitItem:u}=null!=t?t:{},{newItems:s,updatedItems:o}=e.reduce((t,n)=>{var i;const{newItems:r,updatedItems:a}=t,u=n.options&&n.options.length>0?void 0:x.current.find(t=>q(n,t,e));return null==u?r.push(n):a.push({...n,quantity:(null!==(i=n.quantity)&&void 0!==i?i:1)+u.quantity}),t},{newItems:[],updatedItems:[]}),l=[];if(o.length&&o.forEach(e=>{const t=C(e,{allowedOutdatedData:a,splitItem:u});l.push(t)}),0===s.length)return Promise.all(l).then(D);const d=s.map(O),c=s.map((e,t)=>M(d[t],e));n(e=>{var t;return{...e,items:[...x.current,...c],totalizers:c.reduce((e,t)=>_({totalizers:e,newItem:t}).totalizers,null!==(t=e.totalizers)&&void 0!==t?t:[]),marketingData:null!=r?r:e.marketingData,value:e.value+c.reduce((e,t)=>e+t.sellingPrice*t.quantity,0)}}),b({type:"add_mutation",variables:{items:d,marketingData:r,salesChannel:i,allowedOutdatedData:a},orderFormItems:c},m);const f=I(g({mutationInputItems:d,mutationInputMarketingData:r,orderFormItems:c,salesChannel:i,allowedOutdatedData:null==t?void 0:t.allowedOutdatedData}));return Promise.all([...l,f]).then(D)},[g,I,m,n,C]),F=Object(r.useCallback)((e,t,n)=>E(e,{marketingData:t,salesChannel:n}),[E]),S=Object(r.useCallback)((e,t)=>{const n=T(e,t);n&&I(n)},[I,T]),j=Object(r.useCallback)((e,t)=>C({...e,quantity:0},t),[C]),P=Object(r.useMemo)(()=>({addItem:F,addItems:E,updateQuantity:C,removeItem:j,setManualPrice:S}),[F,E,C,j,S]);return Object(r.useEffect)(()=>{y(m).queue.forEach(e=>{"add_mutation"===e.type?I(g({mutationInputItems:e.variables.items,mutationInputMarketingData:e.variables.marketingData,orderFormItems:e.orderFormItems,salesChannel:e.variables.salesChannel,allowedOutdatedData:e.variables.allowedOutdatedData})):"update_mutation"===e.type&&I(w({items:e.variables.orderItems,orderFormItems:e.orderFormItems,allowedOutdatedData:e.variables.allowedOutdatedData,splitItem:e.variables.splitItem,id:e.id}))})},[g,I,m,w]),a.a.createElement(p.Provider,{value:P},e)}}}function F({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:r,useOrderQueue:a,useQueueStatus:u}){return E({useMutateAddItems:e,useMutateUpdateQuantity:t,useMutateSetManualPrice:n,useOrderForm:i,useLogger:r,useOrderQueue:a,useQueueStatus:u})}},,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var i=n(0);const r={cancel:Object.create(null),timeout:Object.create(null)},a="drained",u="error",s="timeout";function o(){}class l{constructor(e){var t,n;this.queue=[],this._isClosed=!1,this.waiters=[],e||(e={}),this.defaultTimeout=e.timeout,this.name=null!==(t=e.name)&&void 0!==t?t:"SequentialTaskQueue",this.scheduler=null!==(n=e.scheduler)&&void 0!==n?n:l.defaultScheduler}get isClosed(){return this._isClosed}push(e,t){if(this._isClosed)throw new Error(this.name+" has been previously closed");const n={callback:e,args:(null==t?void 0:t.args)?Array.isArray(t.args)?t.args.slice():[t.args]:[],timeout:void 0!==(null==t?void 0:t.timeout)?t.timeout:this.defaultTimeout,cancellationToken:{cancel:e=>this.cancelTask(n,e)},resolve:void 0,reject:void 0};n.args.push(n.cancellationToken),this.queue.push(n),this.scheduler.schedule(()=>this.next());const i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return i.cancel=e=>n.cancellationToken.cancel(e),i}cancel(){this.currentTask&&this.cancelTask(this.currentTask,r.cancel);const e=this.queue.splice(0);return e.length&&(e.forEach(e=>this.cancelTask(e,r.cancel)),this.emit(a)),this.wait()}indexOf(e){var t;if((null===(t=this.currentTask)||void 0===t?void 0:t.callback)===e)return 0;const n=this.queue.filter(e=>{var t;return!(null===(t=e.cancellationToken)||void 0===t?void 0:t.cancelled)}).findIndex(t=>t.callback===e);return n<0?n:n+(void 0!==this.currentTask?1:0)}close(e){return!this._isClosed&&(this._isClosed=!0,e)?this.cancel():this.wait()}async wait(){return this.currentTask||0!==this.queue.length?new Promise(e=>{this.waiters.push(e)}):Promise.resolve()}on(e,t){var n;this.events=null!==(n=this.events)&&void 0!==n?n:{},(this.events[e]||(this.events[e]=[])).push(t)}once(e,t){const n=(...i)=>{this.removeListener(e,n),t.apply(this,i)};this.on(e,n)}removeListener(e,t){if(this.events){const n=this.events[e];if(n){let e=0;for(;ee.apply(this,t))}catch(t){console.error(`${this.name}: Exception in '${e}' event handler`,t)}}next(){if(!this.currentTask){let t=this.queue.shift();for(;null==t?void 0:t.cancellationToken.cancelled;)t=this.queue.shift();if(t)try{this.currentTask=t,t.timeout&&(t.timeoutHandle=setTimeout(()=>{this.emit(s),this.cancelTask(t,r.timeout)},t.timeout));const n=t.callback.apply(void 0,t.args);n&&((e=n)&&"function"==typeof e.then)?n.then(e=>{t.result=e,this.doneTask(t)},e=>{this.doneTask(t,e)}):(t.result=n,this.doneTask(t))}catch(e){this.doneTask(t,e)}else this.callWaiters()}var e}cancelTask(e,t){e.cancellationToken.cancelled=!0,e.cancellationToken.reason=t,this.doneTask(e)}doneTask(e,t){e.timeoutHandle&&clearTimeout(e.timeoutHandle),e.cancellationToken.cancel=o,t?(this.emit(u,t),e.reject.call(void 0,t)):e.cancellationToken.cancelled?e.reject.call(void 0,e.cancellationToken.reason):e.resolve.call(void 0,e.result),this.currentTask===e&&(this.currentTask=void 0,this.queue.length?this.scheduler.schedule(()=>this.next()):(this.emit(a),this.callWaiters()))}callWaiters(){this.waiters.splice(0).forEach(e=>e())}}l.defaultScheduler={schedule:e=>setTimeout(()=>e(),0)},l.defaultScheduler={schedule:"function"==typeof e?t=>e(()=>t()):e=>setTimeout(()=>e(),0)};const d="TASK_CANCELLED",c={id:"default-order-form",items:[],value:-1,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};Object(i.createContext)(void 0);var m,f,v,h,p;p=!("undefined"==typeof window||!window.document||!window.document.createElement)&&(null===(h=null===(v=null===(f=null===(m=window)||void 0===m?void 0:m.__RUNTIME__)||void 0===f?void 0:f.settings)||void 0===v?void 0:v["vtex.store"])||void 0===h?void 0:h.enableOrderFormOptimization),Object(i.createContext)({orderForm:c,setOrderForm:()=>{},error:void 0,loading:!1})}).call(this,n(15).setImmediate)},,,function(e,t,n){var i="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(16),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,a,u,s,o=1,l={},d=!1,c=t.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(t);m=m&&m.setTimeout?m:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){v(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){v(e.data)},i=function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,i=function(e){var t=c.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(v,0,e)}:(u="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(u)&&v(+e.data.slice(u.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(u+e,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.length)&&(n=t.length);for(var e=0,r=new Array(n);e0?{cleanUrl:u[0],vParam:a}:{cleanUrl:e}}(e),i=r.vParam,u=r.cleanUrl;return i?"".concat(u,"-").concat(t,"-").concat(n,"?v=").concat(i):"".concat(u,"-").concat(t,"-").concat(n)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof n&&(n=Math.min(n,4e3));var r=o(e,t,n),i=r.includes("?")?"&":"?";return"".concat(r).concat(i,"width=").concat(t,"&height=").concat(n,"&aspect=true")}}function s(e){return e.commertialOffer.Price}function d(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function f(e,t){var n=e.filter(v);if(0===n.length)return e[0];if(1===n.length)return n[0];var r=n.map((function(e){return function(e,t){var n=e.sellers;if(1===n.length)return n[0].commertialOffer.Price;var r=n.filter(d).map(s);return"highest"===t?r.reduce((function(e,t){return t>e?t:e})):r.reduce((function(e,t){return tr[e]?n:e}),0):r.reduce((function(e,t,n){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var l,s=Object.assign({},e),d=s.items||[],f=s.properties||[],m=null!==(t=f.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(l=1===d.length?d[0]:m?p(d,m.values,a):h(d,a)){var v=null!==(n=Object(u.a)(null==l?void 0:l.sellers))&&void 0!==n?n:b,E=null!==(i=null==l?void 0:l.referenceId)&&void 0!==i?i:[],_=Object(r.a)(E,1),S=_[0],y=void 0===S?P:S,A=null!==(c=null==l?void 0:l.images)&&void 0!==c?c:[],I=A.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:O(e.imageUrl,o)})})),j=Object(r.a)(I,1),L=j[0],w=void 0===L?g:L;s.sku=Object.assign(Object.assign({},l),{seller:v,referenceId:y,image:w,images:I})}return s}},49:function(e,t,n){"use strict";n.r(t),n.d(t,"PRODUCT_LIST_PLACEMENT",(function(){return g}));var r=n(0),i=n.n(r),u=n(50),c=n.n(u),a=n(51),o=n.n(a),l=n(21),s=n.n(l),d=n(8),f=n(52),m=n.n(f);var v=function(){return m()(),null},p=n(22),h=s.a.ProductListProvider,g="home_shelf";function P(e){var t=e.children,n=e.products,u=e.ProductSummary,a=e.listName,l=e.actionOnProductClick,s=e.preferredSKU,f=e.buildExtraProductProps,m=o()().list,v=Object(d.useTreePath)().treePath,h=Object(r.useMemo)((function(){var e=null==n?void 0:n.map((function(e,t){var n=Object(p.b)(e,s),r=m.length+t+1,c=function(){"function"==typeof l&&l(n,{position:r})};return"function"==typeof u?i.a.createElement(u,{key:n.cacheId,product:n,listName:a,actionOnClick:c,position:r,placement:g,extraProductProps:f?f(e,t):{}}):i.a.createElement(d.ExtensionPoint,{id:"product-summary",key:e.cacheId,treePath:v,product:n,listName:a,actionOnClick:c,position:r,placement:g,extraProductProps:f?f(e,t):{}})}));return m.concat(null!=e?e:[])}),[n,m,s,u,v,a,l,f]);return i.a.createElement(c.a,{list:h},t)}t.default=function(e){var t=e.children,n=e.products,r=e.listName,u=e.ProductSummary,c=e.actionOnProductClick,a=e.preferredSKU,o=e.buildExtraProductProps;return i.a.createElement(h,{listName:null!=r?r:""},i.a.createElement(P,{preferredSKU:a,products:n,listName:r,ProductSummary:u,actionOnProductClick:c,buildExtraProductProps:o},t),i.a.createElement(v,null))}}}]); },function(){ (window.webpackJsonpvtex_product_summary_2_91_1=window.webpackJsonpvtex_product_summary_2_91_1||[]).push([["ProductSummaryList"],{0:function(t,e){t.exports=React},109:function(t,e,r){"use strict";r.r(e);var i=r(31),o=r.n(i),n=r(36),a=r(11),s=r(0),u=r.n(s),d=r(29),c=r(70),m=r.n(c),p=r(71),l=r.n(p),y=r(72),S=r.n(y),_=r(2),v=r(8),E=r(49),L=function(){var t=Object(v.useRuntime)().rootPath;return{getShippingOptionFromSession:Object(s.useCallback)(Object(n.a)(o.a.mark((function e(){var r,i,n,a,s,u,d,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new Headers).append("Content-Type","application/json"),u={method:"GET",headers:s,redirect:"follow"},e.next=5,fetch("".concat(null!=t?t:"","/api/sessions?items=public.shippingOption"),u);case 5:return d=e.sent,e.next=8,d.json();case 8:if(c=e.sent,null===(n=null===(i=null===(r=null==c?void 0:c.namespaces)||void 0===r?void 0:r.public)||void 0===i?void 0:i.shippingOption)||void 0===n?void 0:n.value){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",null===(a=JSON.parse(c.namespaces.public.shippingOption.value))||void 0===a?void 0:a.map((function(t){return t.value})));case 12:case"end":return e.stop()}}),e)}))),[t])}},f={RELEVANCE:{name:"admin/editor.productSummaryList.orderType.relevance",value:""},TOP_SALE_DESC:{name:"admin/editor.productSummaryList.orderType.sales",value:"OrderByTopSaleDESC"},PRICE_DESC:{name:"admin/editor.productSummaryList.orderType.priceDesc",value:"OrderByPriceDESC"},PRICE_ASC:{name:"admin/editor.productSummaryList.orderType.priceAsc",value:"OrderByPriceASC"},NAME_ASC:{name:"admin/editor.productSummaryList.orderType.nameAsc",value:"OrderByNameASC"},NAME_DESC:{name:"admin/editor.productSummaryList.orderType.nameDesc",value:"OrderByNameDESC"},RELEASE_DATE_DESC:{name:"admin/editor.productSummaryList.orderType.releaseDate",value:"OrderByReleaseDateDESC"},BEST_DISCOUNT_DESC:{name:"admin/editor.productSummaryList.orderType.discount",value:"OrderByBestDiscountDESC"}};function x(t){if(!v.canUseDOM)return"";for(var e="".concat(t,"="),r=decodeURIComponent(document.cookie).split(";"),i=0;i0?a.sku.seller=null!==(r=a.sku.sellers.find((function(e){return e.sellerDefault})))&&void 0!==r?r:a.sku.sellers[0]:a.sku.seller={commertialOffer:{Price:0,ListPrice:0}},a.sku.image=t.sku.image,n(a)}}})},C=r(38),R=r.n(C),j=r(61),T=r.n(j),k=g.a.useProductSummaryDispatch;var w=function(){var e,t=(null!==(e=R()())&&void 0!==e?e:{}).selectedItem,r=k(),n=T()();return function(e){var i=t&&e.items.find((function(e){return e.itemId===t.itemId}));r({type:"SET_PRODUCT",args:{product:e}}),null==n||n({type:"SET_PRODUCT",args:{product:e}}),null==n||n({type:"SET_SELECTED_ITEM",args:{item:i}})}};var L=function(e){var t=e.product,r=e.inView,n=e.children,i=e.priceBehavior,o=g.a.useProductSummaryDispatch(),a=w();return S({product:t,inView:r,priceBehavior:i,onError:function(){o({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})},onComplete:function(e){a(e),o({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})}}),u.a.createElement(u.a.Fragment,null,n)},D=r(32),M=r.n(D),A=["sponsoredBadgeContainer","sponsoredBadgeText"],B=function(e){var t=e.label,r=void 0===t?"store/sponsoredBadge.title":t,n=s()(A).handles,i=o()(n.sponsoredBadgeContainer,"absolute z-1"),a=o()(n.sponsoredBadgeText,"c-muted-1 t-mini-s");return u.a.createElement("div",{className:i},u.a.createElement("span",{className:a},u.a.createElement(M.a,{id:r})))},V=r(22),U=r(39),H=g.a.ProductSummaryProvider,Q=g.a.useProductSummaryDispatch,W=g.a.useProductSummary,q=["container","containerNormal","element","clearLink"];function F(e){var t,r,i,c,l,m,v=e.product,_=e.actionOnClick,g=e.children,b=e.href,x=e.priceBehavior,P=void 0===x?"default":x,y=e.position,I=e.classes,N=function(e){if(e){var t={},r=[];return Object.keys(e).forEach((function(n){n.startsWith("data-")?t[n]=e[n]:r.push(n)})),r.length>0&&console.warn("extraProductProps contains keys that don't start with 'data-': ".concat(r.join(", "))),Object.keys(t).length>0?t:void 0}}(e.extraProductProps),S=W(),C=S.isLoading,R=S.isHovering,j=S.selectedItem,T=S.listName,k=S.query,w=S.inView,D=S.sponsoredBadge,M=Q(),A=s()(q,{classes:I}).handles,V=(0,Object(O.useRuntime)().getSettings)("vtex.store"),H=null===(t=null==V?void 0:V.advancedSettings)||void 0===t?void 0:t.a11ySemanticHtmlMigration,F=p.a.useProductListDispatch(),G=p.a.useProductListState(),J="autocomplete-result-list"===(null==G?void 0:G.listName),z=Object(a.useRef)(null),K=Object(a.useCallback)((function(){null==F||F({type:"SEND_IMPRESSION",args:{product:v,position:y}}),M({type:"SET_IN_VIEW",args:{inView:!0}})}),[M,F,v,y]);d()({ref:z,once:!0,onView:K}),Object(a.useEffect)((function(){v&&M({type:"SET_PRODUCT",args:{product:v}})}),[v,M]),Object(a.useEffect)((function(){y&&M({type:"SET_POSITION",args:{position:y}})}),[y,M]);var X=Object(a.useCallback)((function(){M({type:"SET_HOVER",args:{isHovering:!1}})}),[M]),Y=Object(a.useCallback)((function(){M({type:"SET_HOVER",args:{isHovering:!0}})}),[M]),Z=Object(a.useCallback)((function(e){M({type:"SET_LOADING",args:{isLoading:e}})}),[M]),$=Object(a.useMemo)((function(){return{product:v,isLoading:C,isHovering:R,handleItemsStateUpdate:Z}}),[v,C,R,Z]),ee=o()(A.container,A.containerNormal,"br3 h-100 w-100 flex flex-column justify-between center tc",!H&&"overflow-hidden"),te=o()(A.element,"pointer pt3 pb4 flex flex-column h-100"),re=o()(A.clearLink,"h-100 flex flex-column",H&&"focus-visible:outline-2 focus-visible:outline-blue-500"),ne=null!==(r=null==j?void 0:j.itemId)&&void 0!==r?r:null===(i=null==v?void 0:v.sku)||void 0===i?void 0:i.itemId,ie=b?{to:b,onClick:J?_:void 0,onClickCapture:J?void 0:_,"aria-label":"View product details for ".concat((null==v?void 0:v.productName)||"product")}:{page:"store.product",params:{slug:null==v?void 0:v.linkText,id:null==v?void 0:v.productId,__listName:T},query:k,onClick:J?_:void 0,onClickCapture:J?void 0:_,"aria-label":"View product details for ".concat((null==v?void 0:v.productName)||"product")},oe=null!==(l=null===(c=v.advertisement)||void 0===c?void 0:c.eventParameters)&&void 0!==l?l:null===(m=v.advertisement)||void 0===m?void 0:m.adId,ae=Object(U.a)(v,null==D?void 0:D.position,"containerTopLeft"),ue=Object(E.useIntl)();return u.a.createElement(h.default.Provider,{value:$},u.a.createElement(f.a,{product:v,query:{skuId:ne}},u.a.createElement(L,{product:v,inView:w,priceBehavior:P},u.a.createElement("section",Object(n.a)({},N,{"aria-label":ue.formatMessage({id:"store/product-summary.shelf.aria-label"},{productName:v.productName}),className:ee,onMouseEnter:Y,onMouseLeave:X,style:{maxWidth:300},ref:z,"data-van-aid":oe}),u.a.createElement(O.Link,Object(n.a)({className:re},ie),u.a.createElement("article",{className:te},ae?u.a.createElement(B,{label:null==D?void 0:D.label}):null,g))))))}function G(e){var t=e.product,r=e.actionOnClick,n=e.href,i=e.priceBehavior,o=void 0===i?"default":i,a=e.trackListName,c=void 0===a||a,s=e.listName,l=e.position,d=e.sponsoredBadgePosition,m=e.sponsoredBadgeLabel,f=e.placement,v=e.classes,p=e.children,_=e.extraProductProps,g={position:d,label:m};return u.a.createElement(H,{product:t,listName:c?s:void 0,sponsoredBadge:g,isPriceLoading:"async"===o||"asyncOnly1P"===o},u.a.createElement(F,{product:t,href:n,actionOnClick:r,priceBehavior:o,position:l,placement:f,classes:v,extraProductProps:_},p))}G.schema={title:"admin/editor.productSummary.title",description:"admin/editor.productSummary.description"},G.mapCatalogProductToProductSummary=V.b;t.default=G},20:function(e,t,r){"use strict";function n(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}r.d(t,"a",(function(){return n}))},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-list-context@0.x/ProductListContext"]},22:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return b}));var n=r(11),i=r(37),o=r(20),a=new RegExp(/.+ids\/(\d+)/),u=new RegExp(/http:\/\//);function c(e,t,r){if(!e.includes("/arquivos/ids/"))return e;var n=function(e){var t,r,n,i,o=a.exec(e),u=(r="v",null===(i=null!==(n=null==(t=e)?void 0:t.split("".concat(r,"="))[1])&&void 0!==n?n:"")||void 0===i?void 0:i.split("&")[0]);return o&&o.length>0?{cleanUrl:o[0],vParam:u}:{cleanUrl:e}}(e),i=n.vParam,o=n.cleanUrl;return i?"".concat(o,"-").concat(t,"-").concat(r,"?v=").concat(i):"".concat(o,"-").concat(t,"-").concat(r)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var n=c(e,t,r),i=n.includes("?")?"&":"?";return"".concat(n).concat(i,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function l(e){return e.commertialOffer.Price}function d(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function m(e,t){var r=e.filter(v);if(0===r.length)return e[0];if(1===r.length)return r[0];var n=r.map((function(e){return function(e,t){var r=e.sellers;if(1===r.length)return r[0].commertialOffer.Price;var n=r.filter(d).map(l);return"highest"===t?n.reduce((function(e,t){return t>e?t:e})):n.reduce((function(e,t){return tn[e]?r:e}),0):n.reduce((function(e,t,r){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var s,l=Object.assign({},e),d=l.items||[],m=l.properties||[],f=null!==(t=m.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(s=1===d.length?d[0]:f?p(d,f.values,u):_(d,u)){var v=null!==(r=Object(o.a)(null==s?void 0:s.sellers))&&void 0!==r?r:E,b=null!==(i=null==s?void 0:s.referenceId)&&void 0!==i?i:[],x=Object(n.a)(b,1),P=x[0],y=void 0===P?O:P,I=null!==(a=null==s?void 0:s.images)&&void 0!==a?a:[],N=I.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:h(e.imageUrl,c)})})),S=Object(n.a)(N,1),C=S[0],R=void 0===C?g:C;l.sku=Object.assign(Object.assign({},s),{seller:v,referenceId:y,image:R,images:N})}return l}},29:function(e,t){e.exports=ReactApollo},32:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},39:function(e,t,r){"use strict";t.a=function(e,t,r){var n,i;return(!!(null===(n=null==e?void 0:e.advertisement)||void 0===n?void 0:n.adId)||!!(null===(i=e.advertisement)||void 0===i?void 0:i.eventParameters))&&t===r}},44:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r.n(n),o=i.a.createContext(void 0),a=o.Consumer;o.Consumer=function(e){return console.error("If you are seeing this, a component it's using ProductSummaryContext from vtex.product-summary, which is deprecated. Please see the issue https://github.com/vtex-apps/store-issues#28 on how to migrate to the new component."),i.a.createElement(a,e)},t.default=o},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},58:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.on-view@1.x/useOnView"]},59:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},60:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryItemsWithSimulation"]},61:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProductDispatch"]},7:function(e,t){e.exports=Classnames},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},85:function(e,t,r){"use strict";r.r(t),function(e){var t=r(4);r.p=Object(t.getPublicPath)("vtex.product-summary@2.91.1");var n=Object(t.register)((function(){return r(105)}),e,"vtex.product-summary@2.91.1","vtex.product-summary@2.x","ProductSummaryCustom");n.renderHotReload,n.setupHMR}.call(this,r(13)(e))}},[[85,"common"]]]); },function(){ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=18)}([function(e,n){e.exports=PropTypes},function(e,n){e.exports=React},,function(e,n,t){"use strict";var r={};function o(e,n,t){var i,l,a,u,s,c="";for("string"!=typeof n&&(t=n,n=o.defaultChars),void 0===t&&(t=!0),s=function(e){var n,t,o=r[e];if(o)return o;for(o=r[e]=[],n=0;n<128;n++)t=String.fromCharCode(n),/^[0-9a-z]$/i.test(t)?o.push(t):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1=56320&&u<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPublicPath=n.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},n.register=function(e,n,t,i,l){var a="".concat(t,"/").concat(l),u="".concat(i,"/").concat(l),s=function(){return function(e,n){try{var t=e();return t.__esModule?t.default:t.default||t}catch(e){throw new Error("An error happened while requiring the app ".concat(n,", please check your app's code.\\n").concat(e.stack))}}(e,a)};if(window[r]&&window[r].registerComponent){var c=!!window.__RENDER_LAZY__;window[r].registerComponent(n,c?s:s(),t,l,c)}else{var f=s();window[r]&&window[r].withHMR?window[o][a]=window[o][u]=window[r].withHMR(n,f):window[o][a]=window[o][u]=f}return{}},n.getPublicPath=function(e){var n=window.__hostname__,t="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(n=__RUNTIME__.assetServerPublishedHost||window.location.hostname,t=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+n+t+"".concat(e,"/public/react/")}},function(e,n,t){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},u=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var n,t=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!i)return!1;for(n in e);return void 0===n||r.call(e,n)},s=function(e,n){i&&"__proto__"===n.name?i(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},c=function(e,n){if("__proto__"===n){if(!r.call(e,n))return;if(l)return l(e,n).value}return e[n]};e.exports=function e(){var n,t,r,o,i,l,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});pe.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),a>-1&&(e.charCodeAt(i)===n.charCodeAt(a--)?a<0&&(o=i):(a=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(y(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){y(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const a=e.charCodeAt(t);if(47!==a)r<0&&(n=!0,r=t+1),46===a?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=u,a=0;continue}}else if(o.length>0){o="",i=0,l=u,a=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,u):o=e.slice(l+1,u),i=u-l-1;l=u,a=0}else 46===t&&a>-1?a++:a=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function y(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b={cwd:function(){return"/"}};function k(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function v(e){if("string"==typeof e)e=new URL(e);else if(!k(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let l;i&&n.push(r);try{l=e.apply(this,n)}catch(e){const n=e;if(i&&t)throw n;return r(n)}i||(l&&l.then&&"function"==typeof l.then?l.then(o,r):l instanceof Error?r(l):o(l))};function r(e,...r){t||(t=!0,n(e,...r))}function o(e){r(null,e)}}(a,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!=typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const O=function e(){const n=P(),t=[];let r,o={},i=-1;return l.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(M("data",r),o[e]=n,l):I.call(o,e)&&o[e]||null;if(e)return M("data",r),o=e,l;return o},l.Parser=void 0,l.Compiler=void 0,l.freeze=function(){if(r)return l;for(;++i{if(!e&&n&&t){const o=l.stringify(n,t);null==o||("string"==typeof(r=o)||D()(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r})}t(null,n)},l.processSync=function(e){let n;l.freeze(),B("processSync",l.Parser),z("processSync",l.Compiler);const t=U(e);return l.process(t,(function(e){n=!0,C(e)})),_("processSync","process",n),t},l;function l(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l0?(G(e,e.length,0,n),e):n}const W={}.hasOwnProperty;function Y(e,n){let t;for(t in n){const r=(W.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;if(o)for(i in o){W.call(r,i)||(r[i]=[]);const e=o[i];Q(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Q(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,a,u=t;for(;u--;)if("exit"===n.events[u][0]&&"chunkFlow"===n.events[u][1].type){if(o){a=n.events[u][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function b(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},pe={tokenize:function(e,n,t){return se(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const de={tokenize:function(e,n,t){return function(n){return ie(n)?se(e,r,"linePrefix")(n):r(n)};function r(e){return null===e||re(e)?n(e):t(e)}},partial:!0};function he(e,n,t,r){const o=e.length;let i,l=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ke={tokenize:function(e){const n=this,t=e.attempt(de,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,se(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ye,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const ve={resolveAll:Ee()},xe=Se("string"),we=Se("text");function Se(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return u(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),a;n.consume(e)}function a(e){return u(e)?(n.exit("data"),o(e)):(n.consume(e),a)}function u(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function h(){const{line:e,column:n,offset:t,_index:o,_bufferIndex:i}=r;return{line:e,column:n,offset:t,_index:o,_bufferIndex:i}}function g(){let e;for(;r._index=3&&(null===i||re(i))?(e.exit("thematicBreak"),n(i)):t(i)}function l(n){return n===r?(e.consume(n),o++,l):(e.exit("thematicBreakSequence"),ie(n)?se(e,i,"whitespace")(n):i(n))}}};const qe={name:"list",tokenize:function(e,n,t){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(n){const o=r.containerState.type||(42===n||43===n||45===n?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||n===r.containerState.marker:ee(n)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===n||45===n?e.check(De,t,u)(n):u(n);if(!r.interrupt||49===n)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(n)}return t(n)};function a(n){return ee(n)&&++l<10?(e.consume(n),a):(!r.interrupt||l<2)&&(r.containerState.marker?n===r.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),u(n)):t(n)}function u(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||n,e.check(de,r.interrupt?t:s,e.attempt(Le,f,c))}function s(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function c(n){return ie(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),f):t(n)}function f(t){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(t)}},continuation:{tokenize:function(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(de,(function(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,se(e,n,"listItemIndent",r.containerState.size+1)(t)}),(function(t){if(r.containerState.furtherBlankLines||!ie(t))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(t);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Fe,n,o)(t)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,se(e,e.attempt(qe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Le={tokenize:function(e,n,t){const r=this;return se(e,(function(e){const o=r.events[r.events.length-1];return!ie(e)&&o&&"listItemPrefixWhitespace"===o[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Fe={tokenize:function(e,n,t){const r=this;return se(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(e):t(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Pe={name:"blockQuote",tokenize:function(e,n,t){const r=this;return function(n){if(62===n){const t=r.containerState;return t.open||(e.enter("blockQuote",{_container:!0}),t.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(n),e.exit("blockQuoteMarker"),o}return t(n)};function o(t){return ie(t)?(e.enter("blockQuotePrefixWhitespace"),e.consume(t),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(t))}},continuation:{tokenize:function(e,n,t){const r=this;return function(n){if(ie(n))return se(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n);return o(n)};function o(r){return e.attempt(Pe,n,t)(r)}}},exit:function(e){e.exit("blockQuote")}};function Oe(e,n,t,r,o,i,l,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return function(n){if(60===n)return e.enter(r),e.enter(o),e.enter(i),e.consume(n),e.exit(i),f;if(null===n||32===n||41===n||X(n))return t(n);return e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(n)};function f(t){return 62===t?(e.enter(i),e.consume(t),e.exit(i),e.exit(o),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))}function p(n){return 62===n?(e.exit("chunkString"),e.exit(a),f(n)):null===n||60===n||re(n)?t(n):(e.consume(n),92===n?d:p)}function d(n){return 60===n||62===n||92===n?(e.consume(n),p):p(n)}function h(o){return c||null!==o&&41!==o&&!oe(o)?c999||null===f||91===f||93===f&&!a||94===f&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):re(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||re(n)||u++>999?(e.exit("chunkString"),s(n)):(e.consume(n),a||(a=!ie(n)),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,c):c(n)}}function Re(e,n,t,r,o,i){let l;return function(n){if(34===n||39===n||40===n)return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,a;return t(n)};function a(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),u(t))}function u(n){return n===l?(e.exit(i),a(l)):null===n?t(n):re(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),se(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||re(n)?(e.exit("chunkString"),u(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Be(e,n){let t;return function r(o){if(re(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(ie(o))return se(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function ze(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Me={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),function(n){return Ie.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)}(n)};function i(n){return o=ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),l):t(n)}function l(n){return oe(n)?Be(e,a)(n):a(n)}function a(n){return Oe(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(n)}function u(n){return e.attempt(Ne,s,s)(n)}function s(n){return ie(n)?se(e,c,"whitespace")(n):c(n)}function c(i){return null===i||re(i)?(e.exit("definition"),r.parser.defined.push(o),n(i)):t(i)}}},Ne={tokenize:function(e,n,t){return function(n){return oe(n)?Be(e,r)(n):t(n)};function r(n){return Re(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ie(n)?se(e,i,"whitespace")(n):i(n)}function i(e){return null===e||re(e)?n(e):t(e)}},partial:!0};const _e={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),se(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?a(n):re(n)?e.attempt(Ue,i,a)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||re(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function a(t){return e.exit("codeIndented"),n(t)}}},Ue={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):re(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):se(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):re(e)?o(e):t(e)}},partial:!0};const je={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o;return function(n){let l,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){l="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||l))return e.enter("setextHeadingLine"),o=n,function(n){return e.enter("setextHeadingLineSequence"),i(n)}(n);return t(n)};function i(n){return n===o?(e.consume(n),i):(e.exit("setextHeadingLineSequence"),ie(n)?se(e,l,"lineSuffix")(n):l(n))}function l(r){return null===r||re(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const He=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ve=["pre","script","style","textarea"],Ge={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,a,u;return function(n){return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s}(n)};function s(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,d):63===a?(e.consume(a),o=3,r.interrupt?n:I):K(a)?(e.consume(a),l=String.fromCharCode(a),h):t(a)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,a=0,p):K(i)?(e.consume(i),o=4,r.interrupt?n:I):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:I):t(o)}function p(o){return o==="CDATA[".charCodeAt(a++)?(e.consume(o),a==="CDATA[".length?r.interrupt?n:C:p):t(o)}function d(n){return K(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(a){if(null===a||47===a||62===a||oe(a)){const u=47===a,s=l.toLowerCase();return u||i||!Ve.includes(s)?He.includes(l.toLowerCase())?(o=6,u?(e.consume(a),g):r.interrupt?n(a):C(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(a):i?m(a):y(a)):(o=1,r.interrupt?n(a):C(a))}return 45===a||Z(a)?(e.consume(a),l+=String.fromCharCode(a),h):t(a)}function g(o){return 62===o?(e.consume(o),r.interrupt?n:C):t(o)}function m(n){return ie(n)?(e.consume(n),m):E(n)}function y(n){return 47===n?(e.consume(n),E):58===n||95===n||K(n)?(e.consume(n),b):ie(n)?(e.consume(n),y):E(n)}function b(n){return 45===n||46===n||58===n||95===n||Z(n)?(e.consume(n),b):k(n)}function k(n){return 61===n?(e.consume(n),v):ie(n)?(e.consume(n),k):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),u=n,x):ie(n)?(e.consume(n),v):w(n)}function x(n){return n===u?(e.consume(n),u=null,S):null===n||re(n)?t(n):(e.consume(n),x)}function w(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||oe(n)?k(n):(e.consume(n),w)}function S(e){return 47===e||62===e||ie(e)?y(e):t(e)}function E(n){return 62===n?(e.consume(n),A):t(n)}function A(n){return null===n||re(n)?C(n):ie(n)?(e.consume(n),A):t(n)}function C(n){return 45===n&&2===o?(e.consume(n),L):60===n&&1===o?(e.consume(n),F):62===n&&4===o?(e.consume(n),R):63===n&&3===o?(e.consume(n),I):93===n&&5===o?(e.consume(n),O):!re(n)||6!==o&&7!==o?null===n||re(n)?(e.exit("htmlFlowData"),T(n)):(e.consume(n),C):(e.exit("htmlFlowData"),e.check($e,B,T)(n))}function T(n){return e.check(We,D,B)(n)}function D(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),q}function q(n){return null===n||re(n)?T(n):(e.enter("htmlFlowData"),C(n))}function L(n){return 45===n?(e.consume(n),I):C(n)}function F(n){return 47===n?(e.consume(n),l="",P):C(n)}function P(n){if(62===n){const t=l.toLowerCase();return Ve.includes(t)?(e.consume(n),R):C(n)}return K(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),P):C(n)}function O(n){return 93===n?(e.consume(n),I):C(n)}function I(n){return 62===n?(e.consume(n),R):45===n&&2===o?(e.consume(n),I):C(n)}function R(n){return null===n||re(n)?(e.exit("htmlFlowData"),B(n)):(e.consume(n),R)}function B(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},$e={tokenize:function(e,n,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(de,n,t)}},partial:!0},We={tokenize:function(e,n,t){const r=this;return function(n){if(re(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o;return t(n)};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}},partial:!0};const Ye={tokenize:function(e,n,t){const r=this;return function(n){if(null===n)return t(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}},partial:!0},Qe={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let o=0;return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l};function l(n){return e.enter("codeFencedFence"),ie(n)?se(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):u(n)}function u(n){return n===i?(e.enter("codeFencedFenceSequence"),s(n)):t(n)}function s(n){return n===i?(o++,e.consume(n),s):o>=a?(e.exit("codeFencedFenceSequence"),ie(n)?se(e,c,"whitespace")(n):c(n)):t(n)}function c(r){return null===r||re(r)?(e.exit("codeFencedFence"),n(r)):t(r)}},partial:!0};let i,l=0,a=0;return function(n){return function(n){const t=r.events[r.events.length-1];return l=t&&"linePrefix"===t[1].type?t[2].sliceSerialize(t[1],!0).length:0,i=n,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(n)}(n)};function u(n){return n===i?(a++,e.consume(n),u):a<3?t(n):(e.exit("codeFencedFenceSequence"),ie(n)?se(e,s,"whitespace")(n):s(n))}function s(t){return null===t||re(t)?(e.exit("codeFencedFence"),r.interrupt?n(t):e.check(Ye,d,b)(t)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(n){return null===n||re(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(n)):ie(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,f,"whitespace")(n)):96===n&&n===i?t(n):(e.consume(n),c)}function f(n){return null===n||re(n)?s(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||re(n)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(n)):96===n&&n===i?t(n):(e.consume(n),p)}function d(n){return e.attempt(o,b,h)(n)}function h(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),g}function g(n){return l>0&&ie(n)?se(e,m,"linePrefix",l+1)(n):m(n)}function m(n){return null===n||re(n)?e.check(Ye,d,b)(n):(e.enter("codeFlowValue"),y(n))}function y(n){return null===n||re(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),y)}function b(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const Ke={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Ze={}.hasOwnProperty;function Je(e){return!!Ze.call(Ke,e)&&Ke[e]}const Xe={name:"characterReference",tokenize:function(e,n,t){const r=this;let o,i,l=0;return function(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),a};function a(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=Z,s(n))}function u(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=ne,s):(e.enter("characterReferenceValue"),o=7,i=ee,s(n))}function s(a){if(59===a&&l){const o=e.exit("characterReferenceValue");return i!==Z||Je(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(a)}return i(a)&&l++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);sn(f,-a),sn(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),u=[],e[t][1].end.offset-e[t][1].start.offset&&(u=$(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=$(u,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),u=$(u,Ce(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),u=$(u,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=$(u,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,G(e,t-1,c-t+3,u),c=t+u.length-s-2;break}c=-1;for(;++ci&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},G(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}},42:De,45:[je,De],60:Ge,61:je,95:De,96:Qe,126:Qe},hn={38:Xe,92:en},gn={[-5]:nn,[-4]:nn,[-3]:nn,33:{name:"labelStartImage",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(n),e.exit("labelImageMarker"),o};function o(n){return 91===n?(e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelImage"),i):t(n)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:tn.resolveAll},38:Xe,42:un,60:[{name:"autolink",tokenize:function(e,n,t){let r=0;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(n){return K(n)?(e.consume(n),i):u(n)}function i(e){return 43===e||45===e||46===e||Z(e)?(r=1,l(e)):u(e)}function l(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||Z(n))&&r++<32?(e.consume(n),l):(r=0,u(n))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),n):null===r||32===r||60===r||X(r)?t(r):(e.consume(r),a)}function u(n){return 64===n?(e.consume(n),s):J(n)?(e.consume(n),u):t(n)}function s(e){return Z(e)?c(e):t(e)}function c(t){return 46===t?(e.consume(t),r=0,s):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n):f(t)}function f(n){if((45===n||Z(n))&&r++<63){const t=45===n?f:c;return e.consume(n),t}return t(n)}}},{name:"htmlText",tokenize:function(e,n,t){const r=this;let o,i,l;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),a};function a(n){return 33===n?(e.consume(n),u):47===n?(e.consume(n),v):63===n?(e.consume(n),b):K(n)?(e.consume(n),S):t(n)}function u(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),i=0,d):K(n)?(e.consume(n),y):t(n)}function s(n){return 45===n?(e.consume(n),p):t(n)}function c(n){return null===n?t(n):45===n?(e.consume(n),f):re(n)?(l=c,P(n)):(e.consume(n),c)}function f(n){return 45===n?(e.consume(n),p):c(n)}function p(e){return 62===e?F(e):45===e?f(e):c(e)}function d(n){return n==="CDATA[".charCodeAt(i++)?(e.consume(n),i==="CDATA[".length?h:d):t(n)}function h(n){return null===n?t(n):93===n?(e.consume(n),g):re(n)?(l=h,P(n)):(e.consume(n),h)}function g(n){return 93===n?(e.consume(n),m):h(n)}function m(n){return 62===n?F(n):93===n?(e.consume(n),m):h(n)}function y(n){return null===n||62===n?F(n):re(n)?(l=y,P(n)):(e.consume(n),y)}function b(n){return null===n?t(n):63===n?(e.consume(n),k):re(n)?(l=b,P(n)):(e.consume(n),b)}function k(e){return 62===e?F(e):b(e)}function v(n){return K(n)?(e.consume(n),x):t(n)}function x(n){return 45===n||Z(n)?(e.consume(n),x):w(n)}function w(n){return re(n)?(l=w,P(n)):ie(n)?(e.consume(n),w):F(n)}function S(n){return 45===n||Z(n)?(e.consume(n),S):47===n||62===n||oe(n)?E(n):t(n)}function E(n){return 47===n?(e.consume(n),F):58===n||95===n||K(n)?(e.consume(n),A):re(n)?(l=E,P(n)):ie(n)?(e.consume(n),E):F(n)}function A(n){return 45===n||46===n||58===n||95===n||Z(n)?(e.consume(n),A):C(n)}function C(n){return 61===n?(e.consume(n),T):re(n)?(l=C,P(n)):ie(n)?(e.consume(n),C):E(n)}function T(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),o=n,D):re(n)?(l=T,P(n)):ie(n)?(e.consume(n),T):(e.consume(n),q)}function D(n){return n===o?(e.consume(n),o=void 0,L):null===n?t(n):re(n)?(l=D,P(n)):(e.consume(n),D)}function q(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):47===n||62===n||oe(n)?E(n):(e.consume(n),q)}function L(e){return 47===e||62===e||oe(e)?E(e):t(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}function P(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),O}function O(n){return ie(n)?se(e,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):I(n)}function I(n){return e.enter("htmlTextData"),l(n)}}}],91:{name:"labelStartLink",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:tn.resolveAll},92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.consume(n),r};function r(r){return re(r)?(e.exit("hardBreakEscape"),n(r)):t(r)}}},en],93:tn,95:un,96:{name:"codeText",tokenize:function(e,n,t){let r,o,i=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),l(n)};function l(n){return 96===n?(e.consume(n),i++,l):(e.exit("codeTextSequence"),a(n))}function a(n){return null===n?t(n):32===n?(e.enter("space"),e.consume(n),e.exit("space"),a):96===n?(o=e.enter("codeTextSequence"),r=0,s(n)):re(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(n))}function u(n){return null===n||32===n||96===n||re(n)?(e.exit("codeTextData"),a(n)):(e.consume(n),u)}function s(t){return 96===t?(e.consume(t),r++,s):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(t)):(o.type="codeTextData",u(t))}},resolve:function(e){let n,t,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(n=o;++n13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"�":String.fromCharCode(t)}const wn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return xn(t.slice(n?2:1),n?16:10)}return Je(t)||e}const En={}.hasOwnProperty,An=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(x),autolinkProtocol:d,autolinkEmail:d,atxHeading:l(b),blockQuote:l((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:l(y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(y,a),codeText:l((function(){return{type:"inlineCode",value:""}}),a),codeTextData:d,data:d,codeFlowValue:d,definition:l((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(v,a),htmlFlowData:d,htmlText:l(v,a),htmlTextData:d,image:l((function(){return{type:"image",title:null,url:"",alt:null}})),label:a,link:l(x),listItem:l((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){if(i("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}},listOrdered:l(w,(function(){o("expectingFirstListItemValue",!0)})),listUnordered:l(w),paragraph:l((function(){return{type:"paragraph",children:[]}})),reference:function(){o("referenceType","collapsed")},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(b),strong:l((function(){return{type:"strong",children:[]}})),thematicBreak:l((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:s(),atxHeadingSequence:function(e){const n=this.stack[this.stack.length-1];if(!n.depth){const t=this.sliceSerialize(e).length;n.depth=t}},autolink:s(),autolinkEmail:function(e){h.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){h.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(e){const n=this.sliceSerialize(e),t=i("characterReferenceType");let r;if(t)r=xn(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType");else{const e=Je(n);r=e}const l=this.stack.pop();l.value+=r,l.position.end=Cn(e.end)},codeFenced:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")})),codeFencedFence:function(){if(i("flowCodeInside"))return;this.buffer(),o("flowCodeInside",!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:h,codeIndented:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:h,data:h,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=ze(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(g),hardBreakTrailing:s(g),htmlFlow:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:h,htmlText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:h,image:s((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const n=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=n,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],n=this.resume(),t=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===t.type){const n=e.children;t.children=n}else t.alt=n},labelText:function(e){const n=this.sliceSerialize(e),t=this.stack[this.stack.length-2];t.label=function(e){return e.replace(wn,Sn)}(n),t.identifier=ze(n).toLowerCase()},lineEnding:function(e){const t=this.stack[this.stack.length-1];if(i("atHardBreak")){return t.children[t.children.length-1].position.end=Cn(e.end),void o("atHardBreak")}!i("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(t.type)&&(d.call(this,e),h.call(this,e))},link:s((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const n=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=n,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=ze(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){o("inReference")},setextHeading:s((function(){o("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){o("setextHeadingSlurpLineEnding",!0)},strong:s(),thematicBreak:s()}};!function e(n,t){let r=-1;for(;++r0){const e=l.tokenStack[l.tokenStack.length-1];(e[1]||Dn).call(l,void 0,e[0])}t.position={start:Cn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Cn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;for(;++f{const t=this.data("settings");return An(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const Ln=function(e,n,t){const r={type:String(e)};return null!=t||"string"!=typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:null!=t&&(r.value=String(t)),r},Fn=function(e){if(null==e)return On;if("string"==typeof e)return n=e,Pn((function(e){return e&&e.type===n}));var n;if("object"==typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"})}return c;function c(){let s,c,f,p=[];if((!n||o(l,a,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[!0,e];return[e]}(t(l,u)),!1===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=u.concat(l);c>-1&&c-1?t.offset:null}}}const Nn={}.hasOwnProperty;function _n(e){return String(e||"").toUpperCase()}const Un={}.hasOwnProperty;function jn(e,n){const t=n.data||{};return"value"in n&&!(Un.call(t,"hName")||Un.call(t,"hProperties")||Un.call(t,"hChildren"))?e.augment(n,Ln("text",n.value)):e(n,"div",Gn(e,n))}function Hn(e,n,t){const r=n&&n.type;let o;if(!r)throw new Error("Expected node, got `"+n+"`");return o=Un.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Vn:e.unknownHandler,("function"==typeof o?o:jn)(e,n,t)}function Vn(e,n){return"children"in n?{...n,children:Gn(e,n)}:n}function Gn(e,n){const t=[];if("children"in n){const r=n.children;let o=-1;for(;++o0&&t.push(Ln("text","\n")),t}function Yn(e,n){const t={},r=n.ordered?"ol":"ul",o=Gn(e,n);let i=-1;for("number"==typeof n.start&&1!==n.start&&(t.start=n.start);++i1:n}const et={blockquote:function(e,n){return e(n,"blockquote",Wn(Gn(e,n),!0))},break:function(e,n){return[e(n,"br"),Ln("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[Ln("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Gn(e,n))},emphasis:function(e,n){return e(n,"em",Gn(e,n))},footnoteReference:Qn,footnote:function(e,n){const t=e.footnoteById,r=e.footnoteOrder;let o=1;for(;o in t;)o++;const i=String(o);return r.push(i),t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:n.children}],position:n.position},Qn(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Gn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Ln("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Jn(e,n);const r={src:Zn()(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Zn()(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[Ln("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Jn(e,n);const r={href:Zn()(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Gn(e,n))},link:function(e,n){const t={href:Zn()(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Gn(e,n))},listItem:function(e,n,t){const r=Gn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(Ln("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let a=-1;for(;++a{const t=_n(e.identifier);t&&!Nn.call(n,t)&&(n[t]=e)}),function(e){const t=_n(e);return t&&Nn.call(n,t)?n[t]:null}}(e),l.footnoteById=o,l.footnoteOrder=[],l.augment=i,l.handlers={...et,...t.handlers},l.unknownHandler=t.unknownHandler,l.passThrough=t.passThrough,Rn(e,"footnoteDefinition",e=>{const n=String(e.identifier).toUpperCase();tt.call(o,n)||(o[n]=e)}),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:Bn(r),end:zn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function ot(e,n){const t=rt(e,n),r=Hn(t,e,null),o=function(e){const n=e.footnoteById,t=e.footnoteOrder;let r=-1;const o=[];for(;++r{e.run(ot(t,n),r,e=>{o(e)})}}(e,n):function(e){return n=>ot(n,e)}(e)};var lt=t(0),at=t.n(lt);class ut{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function st(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Tt=At({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Dt(e,n){return n in e?e[n]:n}function qt(e,n){return Dt(e,n.toLowerCase())}const Lt=At({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qt,properties:{xmlns:null,xmlnsXLink:null}}),Ft=At({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:mt,ariaColIndex:mt,ariaColSpan:mt,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:yt,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:mt,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:mt,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:yt,ariaRowCount:mt,ariaRowIndex:mt,ariaRowSpan:mt,ariaSelected:ht,ariaSetSize:mt,ariaSort:null,ariaValueMax:mt,ariaValueMin:mt,ariaValueNow:mt,ariaValueText:null,role:null}}),Pt=At({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bt,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:dt,allowPaymentRequest:dt,allowUserMedia:dt,alt:null,as:null,async:dt,autoCapitalize:null,autoComplete:yt,autoFocus:dt,autoPlay:dt,blocking:yt,capture:null,charSet:null,checked:dt,cite:null,className:yt,cols:mt,colSpan:null,content:null,contentEditable:ht,controls:dt,controlsList:yt,coords:mt|bt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dt,defer:dt,dir:null,dirName:null,disabled:dt,download:gt,draggable:ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dt,formTarget:null,headers:yt,height:mt,hidden:dt,high:mt,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:dt,inputMode:null,integrity:null,is:null,isMap:dt,itemId:null,itemProp:yt,itemRef:yt,itemScope:dt,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dt,low:mt,manifest:null,max:null,maxLength:mt,media:null,method:null,min:null,minLength:mt,multiple:dt,muted:dt,name:null,nonce:null,noModule:dt,noValidate:dt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:dt,optimum:mt,pattern:null,ping:yt,placeholder:null,playsInline:dt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dt,referrerPolicy:null,rel:yt,required:dt,reversed:dt,rows:mt,rowSpan:mt,sandbox:yt,scope:null,scoped:dt,seamless:dt,selected:dt,shadowRootDelegatesFocus:dt,shadowRootMode:null,shape:null,size:mt,sizes:null,slot:null,span:mt,spellCheck:ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:mt,step:null,style:null,tabIndex:mt,target:null,title:null,translate:null,type:null,typeMustMatch:dt,useMap:null,value:ht,width:mt,wrap:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:mt,borderColor:null,bottomMargin:mt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dt,declare:dt,event:null,face:null,frame:null,frameBorder:null,hSpace:mt,leftMargin:mt,link:null,longDesc:null,lowSrc:null,marginHeight:mt,marginWidth:mt,noResize:dt,noHref:dt,noShade:dt,noWrap:dt,object:null,profile:null,prompt:null,rev:null,rightMargin:mt,rules:null,scheme:null,scrolling:ht,standby:null,summary:null,text:null,topMargin:mt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:mt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dt,disableRemotePlayback:dt,prefix:null,property:null,results:mt,security:null,unselectable:null}}),Ot=At({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Dt,properties:{about:kt,accentHeight:mt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:mt,amplitude:mt,arabicForm:null,ascent:mt,attributeName:null,attributeType:null,azimuth:mt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:mt,by:null,calcMode:null,capHeight:mt,className:yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:mt,diffuseConstant:mt,direction:null,display:null,dur:null,divisor:mt,dominantBaseline:null,download:dt,dx:null,dy:null,edgeMode:null,editable:null,elevation:mt,enableBackground:null,end:null,event:null,exponent:mt,externalResourcesRequired:null,fill:null,fillOpacity:mt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bt,g2:bt,glyphName:bt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:mt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:mt,horizOriginX:mt,horizOriginY:mt,id:null,ideographic:mt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:mt,k:mt,k1:mt,k2:mt,k3:mt,k4:mt,kernelMatrix:kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:mt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:mt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:mt,overlineThickness:mt,paintOrder:null,panose1:null,path:null,pathLength:mt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:mt,pointsAtY:mt,pointsAtZ:mt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kt,rev:kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kt,requiredFeatures:kt,requiredFonts:kt,requiredFormats:kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:mt,specularExponent:mt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:mt,strikethroughThickness:mt,string:null,stroke:null,strokeDashArray:kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:mt,strokeOpacity:mt,strokeWidth:null,style:null,surfaceScale:mt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kt,tabIndex:mt,tableValues:null,target:null,targetX:mt,targetY:mt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:mt,underlineThickness:mt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:mt,values:null,vAlphabetic:mt,vMathematical:mt,vectorEffect:null,vHanging:mt,vIdeographic:mt,version:null,vertAdvY:mt,vertOriginX:mt,vertOriginY:mt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:mt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),It=st([Tt,Ct,Lt,Ft,Pt],"html"),Rt=st([Tt,Ct,Lt,Ft,Ot],"svg");function Bt(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{Rn(n,"element",(n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"==typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"==typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t})}}const zt=["http","https","mailto","tel"];var Mt=t(11),Nt=t.n(Mt);function _t(e){const n=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const Ut=/^data[-\w.:]+$/i,jt=/-[a-z]/g,Ht=/[A-Z]/g;function Vt(e){return"-"+e.toLowerCase()}function Gt(e){return e.charAt(1).toUpperCase()}const $t={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Wt=t(12),Yt=t.n(Wt);const Qt={}.hasOwnProperty,Kt=new Set(["table","thead","tbody","tfoot","tr"]);function Zt(e,n){const t=[];let r,o=-1;for(;++oString(e)).join("")),!h&&o.rawSourcePos&&(u.sourcePosition=n.position),!h&&o.includeElementIndex&&(u.index=Xt(r,n),u.siblingCount=Xt(r)),h||(u.node=n),f.length>0?l.a.createElement(d,u,f):l.a.createElement(d,u)}function Xt(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&Ut.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(jt,Gt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!jt.test(e)){let t=e.replace(Ht,Vt);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=wt}return new o(r,n)}(r.schema,n);let i=t;null!=i&&i==i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){const t=n||{};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"==typeof i&&(i=function(e){const n={};try{Yt()(e,(function(e,t){const r="-ms-"===e.slice(0,4)?"ms-"+e.slice(4):e;n[r.replace(/-([a-z])/g,nr)]=t}))}catch{}return n}(i)),o.space&&o.property?e[Qt.call($t,o.property)?$t[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function nr(e,n){return n.toUpperCase()}const tr={}.hasOwnProperty,rr={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function or(e){for(const n in rr)if(tr.call(rr,n)&&tr.call(e,n)){const e=rr[n];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${n}\` (see for more info)`),delete rr[n]}const n=O().use(qn).use(e.remarkPlugins||e.plugins||[]).use(it,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Bt,e),t=new w;"string"==typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=l.a.createElement(l.a.Fragment,{},Zt({options:e,schema:It,listDepth:0},r));return e.className&&(o=l.a.createElement("div",{className:e.className},o)),o}or.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},or.propTypes={children:at.a.string,className:at.a.string,allowElement:at.a.func,allowedElements:at.a.arrayOf(at.a.string),disallowedElements:at.a.arrayOf(at.a.string),unwrapDisallowed:at.a.bool,remarkPlugins:at.a.arrayOf(at.a.oneOfType([at.a.object,at.a.func,at.a.arrayOf(at.a.oneOfType([at.a.object,at.a.func]))])),rehypePlugins:at.a.arrayOf(at.a.oneOfType([at.a.object,at.a.func,at.a.arrayOf(at.a.oneOfType([at.a.object,at.a.func]))])),sourcePos:at.a.bool,rawSourcePos:at.a.bool,skipHtml:at.a.bool,includeElementIndex:at.a.bool,transformLinkUri:at.a.oneOfType([at.a.func,at.a.bool]),linkTarget:at.a.oneOfType([at.a.func,at.a.string]),transformImageUri:at.a.func,components:at.a.object};var ir=t(8),lr=t.n(ir),ar=function(e){var n=e.notifications,t=e.autoplay,r=e.autoplayTimeout;if(!n||!n.length)return null;var o=t?{timeout:r,stopOnHover:!0}:void 0;return l.a.createElement(u.a,{itemsPerPage:{mobile:1,desktop:1},autoplay:o,showNavigationArrows:"always",showPaginationDots:"never",infinite:!0,arrowSize:10},null==n?void 0:n.map((function(e,n){return l.a.createElement("div",{key:n,className:"".concat(lr.a.notification," w-100")},l.a.createElement(or,null,e.text))})))};ar.schema={title:"Top banner Editable",type:"object",properties:{notifications:{type:"array",items:{title:"Notificación",type:"object",properties:{__editorItemTitle:{title:"Nombre del Item",description:"This will only be visible in the Site Editor",default:"Ítem",type:"string"},text:{title:"Texto",type:"string"}}}},autoplay:{title:"Autoplay",type:"boolean",default:!1},autoplayTimeout:{title:"Autoplay Timeout (ms)",type:"number",default:1e4}}};var ur=ar;n.default=ur}]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];st.length)&&(n=t.length);for(var e=0,r=new Array(n);e0&&"not-empty"===c||"always"===c;return r.a.createElement(x.a,{icon:r.a.createElement("span",{className:"".concat(v.minicartIconContainer," gray relative")},r.a.createElement(i,null),R&&r.a.createElement("span",{style:{userSelect:"none"},className:"".concat(v.minicartQuantityBadge," ").concat(O.a.minicartQuantityBadgeDefault," c-on-emphasis absolute t-mini bg-emphasis br4 w1 h1 pa1 flex justify-center items-center lh-solid")},w)),variation:"tertiary",onMouseEnter:"hover"===f?function(){return N({type:"OPEN_MINICART"})}:void 0,onClick:function(){if(C)return"popupWithLink"===u&&I(P),"hover"===f?void N({type:"SET_OPEN_BEHAVIOR",value:"click"}):(N({type:"CLOSE_MINICART"}),void N({type:"SET_OPEN_BEHAVIOR",value:"hover"}));N({type:_?"CLOSE_MINICART":"OPEN_MINICART"})}})},P=function(e){var t=e.children,n=e.quantityDisplay,a=e.Icon,i=e.itemCountMode,o=e.customPixelEventId,c=e.customPixelEventName,l=e.variation,s=Object(M.useMinicartState)(),u=s.open,p=s.openBehavior,d=s.hasBeenOpened,v=s.openOnHoverProp,_=Object(M.useMinicartDispatch)(),x=b().handles;E()({eventId:o,eventName:c,handler:function(){_({type:"OPEN_MINICART"})}});return r.a.createElement("div",{onMouseLeave:"hover"===p?function(){_({type:"CLOSE_MINICART"})}:void 0},r.a.createElement(w,{variation:l,Icon:a,itemCountMode:i,quantityDisplay:n}),u&&r.a.createElement(m.a,null,"click"===p&&r.a.createElement("div",{className:"fixed top-0 left-0 w-100 h-100",onClick:function(){v&&_({type:"SET_OPEN_BEHAVIOR",value:"hover"}),_({type:"CLOSE_MINICART"})}}),r.a.createElement("div",{className:"".concat(x.popupWrapper," ").concat(O.a.popupBoxPosition," absolute z-max flex flex-column")},r.a.createElement("div",{className:"".concat(x.popupContentContainer," w-100 shadow-3 bg-base")},r.a.createElement("div",{className:"".concat(x.arrowUp," ").concat(O.a.popupArrowUp," absolute top-0 bg-base h1 w1 pa4 rotate-45")}),r.a.createElement("div",{className:"".concat(x.popupChildrenContainer," mt3 bg-base relative flex flex-column ph5 pv3")},d&&t)))))},I=n(55),R=n.n(I),D=function(e){var t=e.Icon,n=e.children,a=e.maxDrawerWidth,i=e.quantityDisplay,o=e.itemCountMode,c=e.drawerSlideDirection,l=e.backdropMode,s=void 0===l?"visible":l,u=e.customPixelEventId,p=e.customPixelEventName,d=b().handles;return r.a.createElement(R.a,{maxWidth:a,backdropMode:s,slideDirection:c,customPixelEventId:u,customPixelEventName:p,customIcon:r.a.createElement(w,{Icon:t,itemCountMode:o,quantityDisplay:i})},r.a.createElement("div",{className:"".concat(d.minicartSideBarContentWrapper," flex flex-column w-100 h-100"),style:{height:window.innerHeight-58}},n))},S=n(32),j=[].concat(Object(a.a)(["popupWrapper","popupContentContainer","arrowUp","popupChildrenContainer"]),Object(a.a)(["minicartSideBarContentWrapper"]),Object(a.a)(["minicartIconContainer","minicartQuantityBadge"]),["minicartWrapperContainer","minicartContainer"]),g=function(e){var t=e.children,n=e.backdropMode,a=e.linkVariationUrl,i=e.maxDrawerWidth,o=void 0===i?400:i,l=e.MinicartIcon,u=void 0===l?c.a:l,d=e.quantityDisplay,m=void 0===d?"not-empty":d,v=e.itemCountMode,E=void 0===v?"distinct":v,_=e.drawerSlideDirection,x=void 0===_?"rightToLeft":_,f=e.customPixelEventId,O=e.customPixelEventName,C=e.classes,N=p()(j,{classes:C}),b=N.handles,y=N.withModifiers,I=Object(M.useMinicartState)().variation,R=Object(s.useCheckoutURL)().url;return"link"===I?r.a.createElement("aside",{className:"".concat(b.minicartWrapperContainer," relative fr flex items-center")},r.a.createElement("div",{className:"".concat(b.minicartContainer," flex flex-column")},r.a.createElement("a",{href:null!=a?a:R},r.a.createElement(h,{handles:b,withModifiers:y},r.a.createElement(w,{variation:I,Icon:u,itemCountMode:E,quantityDisplay:m}))))):"block"===I?r.a.createElement("aside",{className:"".concat(b.minicartWrapperContainer," relative fr flex items-center")},r.a.createElement("div",{className:"".concat(b.minicartContainer," flex flex-column")},t)):r.a.createElement("aside",{className:"".concat(b.minicartWrapperContainer," relative fr flex items-center")},r.a.createElement("div",{className:"".concat(b.minicartContainer," flex flex-column")},r.a.createElement(h,{handles:b,withModifiers:y},"drawer"===I?r.a.createElement(D,{Icon:u,backdropMode:n,itemCountMode:E,maxDrawerWidth:o,quantityDisplay:m,drawerSlideDirection:x,customPixelEventId:f,customPixelEventName:O},t):r.a.createElement(P,{Icon:u,itemCountMode:E,quantityDisplay:m,customPixelEventId:f,customPixelEventName:O,variation:I},t))))},T=function(){var e=Object(l.useOrderForm)(),t=e.orderForm,n=!e.loading&&t?t.id:void 0;return Object(S.a)(n),null};t.default=function(e){return r.a.createElement(M.MinicartContextProvider,{variation:e.variation,openOnHover:e.openOnHover},r.a.createElement(T,null),r.a.createElement(g,e))}},11:function(e,t,n){"use strict";n.r(t),n.d(t,"MinicartContextProvider",(function(){return d})),n.d(t,"useMinicartDispatch",(function(){return v})),n.d(t,"useMinicartState",(function(){return m}));var a=n(14),i=n(0),r=n.n(i),o=n(21),c=n.n(o),l=Object(i.createContext)(void 0),s=Object(i.createContext)(void 0);function u(e,t){switch(t.type){case"OPEN_MINICART":return Object.assign(Object.assign({},e),{open:!0,hasBeenOpened:!0});case"CLOSE_MINICART":return Object.assign(Object.assign({},e),{open:!1});case"SET_OPEN_BEHAVIOR":return Object.assign(Object.assign({},e),{openBehavior:t.value});default:return e}}var p=function(e){return"popup"===e||"popupWithLink"===e},d=function(e){var t=e.variation,n=void 0===t?"drawer":t,o=e.openOnHover,d=void 0!==o&&o,m=e.children,v=c()().isMobile,E=p(n)&&(v||window&&window.innerWidth<=480)?"drawer":n,_=Object(i.useReducer)(u,{variation:E,open:!1,hasBeenOpened:!1,openOnHoverProp:d,openBehavior:p(E)&&d?"hover":"click"}),x=Object(a.a)(_,2),f=x[0],O=x[1];return r.a.createElement(l.Provider,{value:f},r.a.createElement(s.Provider,{value:O},m))};function m(){var e=Object(i.useContext)(l);if(void 0===e)throw new Error("useMinicartState must be used within a MinicartContextProvider");return e}function v(){var e=Object(i.useContext)(s);if(void 0===e)throw new Error("useMinicartDispatch must be used within a MinicartContextProvider");return e}},12:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},17:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixel"]},19:function(e,t,n){e.exports={drawerStyles:"leviscl-minicart-0-x-drawerStyles",popupStyles:"leviscl-minicart-0-x-popupStyles",minicartEmptyStateContainerDefault:"leviscl-minicart-0-x-minicartEmptyStateContainerDefault",minicartQuantityBadgeDefault:"leviscl-minicart-0-x-minicartQuantityBadgeDefault",popupBoxPosition:"leviscl-minicart-0-x-popupBoxPosition",popupArrowUp:"leviscl-minicart-0-x-popupArrowUp"}},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(6),i=n(3);function r(){var e=Object(a.useCheckoutURL)(),t=e.url,n=e.major,r=Object(i.useRuntime)(),o=r.navigate,c=r.rootPath,l=void 0===c?"":c;return function(e){n>0&&e===t?o({to:e}):window.location.href="".concat(l).concat(e)}}},25:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconCart"]},26:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},27:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ButtonWithIcon"]},3:function(e,t){e.exports=__RENDER_8_RUNTIME__},32:function(e,t,n){"use strict";var a=n(0),i=n(17),r=n.n(i);t.a=function(e){var t=r()().push;Object(a.useEffect)((function(){e&&t({event:"cartId",cartId:e})}),[t,e])}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},53:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},54:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},55:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-drawer@0.x/Drawer"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/Utils"]},75:function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("leviscl.minicart@0.0.10");var a=Object(t.register)((function(){return n(102)}),e,"leviscl.minicart@0.0.10","leviscl.minicart@0.x","Minicart");a.renderHotReload,a.setupHMR}.call(this,n(20)(e))}},[[75,"common"]]]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];s=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},48:function(t,n,e){t.exports=e(89)},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},57:function(t,n,e){"use strict";function r(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},59:function(t,n,e){"use strict";function r(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}function o(t){return function(){var n=this,e=arguments;return new Promise((function(o,i){var u=t.apply(n,e);function c(t){r(u,o,i,c,a,"next",t)}function a(t){r(u,o,i,c,a,"throw",t)}c(void 0)}))}}e.d(n,"a",(function(){return o}))},71:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0?o=setTimeout(l,t-a):(o=null,n||(s=e.apply(r,i),r=i=null))}null==t&&(t=100);var a=function(){r=this,i=arguments,u=Date.now();var a=n&&!o;return o||(o=setTimeout(l,t)),a&&(s=e.apply(r,i),r=i=null),s};return a.clear=function(){o&&(clearTimeout(o),o=null)},a.flush=function(){o&&(s=e.apply(r,i),r=i=null,clearTimeout(o),o=null)},a}n.debounce=n,e.exports=n},87:function(e,t,n){"use strict";var o=n(40),i=n(13),r=n(100),u=n(32),s=n(2),l=n.n(s),a=n(0);n(101);function d(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function c(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeightt||r>e&&u=t&&s>=n?r-e-o:u>t&&sn?u-t+i:0}var f=0;function g(e){return"function"==typeof e?e:m}function m(){}function v(e,t){null!==e&&function(e,t){var n=window,o=t.scrollMode,i=t.block,r=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof u?u:function(e){return e!==u};if(!d(e))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,c=[],f=e;d(f)&&l(f);){if((f=f.parentNode)===a){c.push(f);break}f===document.body&&p(f)&&!p(document.documentElement)||p(f,s)&&c.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,I=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,S=y.width,w=y.top,x=y.right,C=y.bottom,O=y.left,H="start"===i||"nearest"===i?w:"end"===i?C:w+b/2,E="center"===r?O+S/2:"end"===r?x:O,M=[],D=0;D=0&&O>=0&&C<=m&&x<=g&&w>=R&&C<=V&&O>=K&&x<=j)return M;var _=getComputedStyle(P),L=parseInt(_.borderLeftWidth,10),$=parseInt(_.borderTopWidth,10),B=parseInt(_.borderRightWidth,10),W=parseInt(_.borderBottomWidth,10),U=0,N=0,F="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-B:0,z="offsetHeight"in P?P.offsetHeight-P.clientHeight-$-W:0;if(a===P)U="start"===i?H:"end"===i?H-m:"nearest"===i?h(I,I+m,m,$,W,I+H,I+H+b,b):H-m/2,N="start"===r?E:"center"===r?E-g/2:"end"===r?E-g:h(v,v+g,g,L,B,v+E,v+E+S,S),U=Math.max(0,U+I),N=Math.max(0,N+v);else{U="start"===i?H-R-$:"end"===i?H-V+W+z:"nearest"===i?h(R,V,k,$,W+z,H,H+b,b):H-(R+k/2)+z/2,N="start"===r?E-K-L:"center"===r?E-(K+A/2)+F/2:"end"===r?E-j+B+F:h(K,j,A,L,B+F,E,E+S,S);var X=P.scrollLeft,Y=P.scrollTop;H+=Y-(U=Math.max(0,Math.min(Y+U,P.scrollHeight-k+z))),E+=X-(N=Math.max(0,Math.min(X+N,P.scrollWidth-A+F)))}M.push({el:P,top:U,left:N})}return M}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o}))}function I(e,t){return e===t||e.contains&&e.contains(t)}function y(e,t){var n;function o(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,r=new Array(i),u=0;u1?n-1:0),i=1;i=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function D(e,t,n){var o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var i=t+e;return i<0?i=o:i>o&&(i=0),i}var P=y((function(){k().textContent=""}),500);function T(e,t){var n=k(t);e&&(n.textContent=e,P())}function k(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var A=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),R=function(){var e=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(f++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==o})),e()}),t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=E(t),n.internalSetState(Object(i.a)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=E(t),n.internalSetState(Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,u={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var a={},d={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),l.type=l.type||0,Object.keys(l).forEach((function(e){t[e]!==l[e]&&(u[e]=l[e]),"type"!==e&&(d[e]=l[e],n.isControlledProp(e)||(a[e]=l[e]))})),s&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},l)),a}),(function(){g(t)(),Object.keys(u).length>1&&n.props.onStateChange(u,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(u,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var h=n.getState().isOpen;return Object(i.a)(((r={})[l]=S(a,n.rootRef),r.role="combobox",r["aria-expanded"]=h,r["aria-haspopup"]="listbox",r["aria-owns"]=h?n.menuId:null,r["aria-labelledby"]=n.labelId,r),d)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,u=(t.onPress,t.onKeyDown),s=t.onKeyUp,l=t.onBlur,a=Object(o.a)(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),d=n.getState().isOpen,c={onClick:b(r,n.buttonHandleClick),onKeyDown:b(u,n.buttonHandleKeyDown),onKeyUp:b(s,n.buttonHandleKeyUp),onBlur:b(l,n.buttonHandleBlur)},p=a.disabled?{}:c;return Object(i.a)({type:"button",role:"button","aria-label":d?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},p,{},a)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=M(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Object(r.a)(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return Object(i.a)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,u=t.onBlur,s=t.onChange,l=t.onInput,a=(t.onChangeText,Object(o.a)(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),d={};var c,p=n.getState(),h=p.inputValue,f=p.isOpen,g=p.highlightedIndex;a.disabled||((c={}).onChange=b(s,l,n.inputHandleChange),c.onKeyDown=b(r,n.inputHandleKeyDown),c.onBlur=b(u,n.inputHandleBlur),d=c);return Object(i.a)({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},d,{},a)},n.inputHandleKeyDown=function(e){var t=M(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Object(r.a)(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,Object(i.a)(((r={})[l]=S(a,n.menuRef),r.role="listbox",r["aria-labelledby"]=d&&d["aria-label"]?null:n.labelId,r.id=n.menuId,r),d)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,u=r.onMouseMove,s=r.onMouseDown,l=r.onClick,a=(r.onPress,r.index),d=r.item,c=void 0===d?void 0:d,p=Object(o.a)(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===a?(n.items.push(c),a=n.items.indexOf(c)):n.items[a]=c;var h=l,f=((t={onMouseMove:b(u,(function(){a!==n.getState().highlightedIndex&&(n.setHighlightedIndex(a,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:b(s,(function(e){e.preventDefault()}))}).onClick=b(h,(function(){n.selectItemAtIndex(a,{type:9})})),t),g=p.disabled?{onMouseDown:f.onMouseDown}:f;return Object(i.a)({id:n.getItemId(a),role:"option","aria-selected":n.getState().highlightedIndex===a},g,{},p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.selectedItem;return Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.isOpen;return Object(i.a)({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var o=n.getState(),i=o.isOpen,r=o.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof r&&n.setHighlightedIndex(r,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=y((function(){var e=n.getState(),t=n.items[e.highlightedIndex],o=n.getItemCount(),r=n.props.getA11yStatusMessage(Object(i.a)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:t},e));n.previousResultCount=o,T(r,n.props.environment.document)}),200);var u=n.props,s=u.defaultHighlightedIndex,l=u.initialHighlightedIndex,a=void 0===l?s:l,d=u.defaultIsOpen,c=u.initialIsOpen,p=void 0===c?d:c,h=u.initialInputValue,m=void 0===h?"":h,v=u.initialSelectedItem,I=void 0===v?null:v,w=n.getState({highlightedIndex:a,isOpen:p,inputValue:m,selectedItem:I});return null!=w.selectedItem&&void 0===n.props.initialInputValue&&(w.inputValue=n.props.itemToString(w.selectedItem)),n.state=w,n}Object(u.a)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n}),{})},n.isControlledProp=function(e){return void 0!==this.props[e]},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var o=D(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(o,t)}},n.highlightFirstOrLastIndex=function(e,t,n){var o=this.getItemCount()-1;o<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:o,n))},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,u=this.id,s=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,c=this.getInputProps,p=this.getItemProps,h=this.openMenu,f=this.closeMenu,g=this.toggleMenu,m=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:c,getItemProps:p,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:g,selectItem:m,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:b,clearItems:S,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:r,id:u,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(I(e,t)||n&&I(e,o.activeElement))}))},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},i=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},u=function(n){var o=t(n.target,!1);e.isTouchMove||o||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},s=this.props.environment;s.addEventListener("mousedown",n),s.addEventListener("mouseup",o),s.addEventListener("touchstart",i),s.addEventListener("touchmove",r),s.addEventListener("touchend",u),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),s.removeEventListener("mousedown",n),s.removeEventListener("mouseup",o),s.removeEventListener("touchstart",i),s.removeEventListener("touchmove",r),s.removeEventListener("touchend",u)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=x(this.props.children,m);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=x(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?Object(a.cloneElement)(t,this.getRootProps(O(t))):void 0:null},t}(a.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:w,itemToString:function(e){return null==e?"":String(e)},onStateChange:m,onInputValueChange:m,onUserAction:m,onChange:m,onSelect:m,onOuterClick:m,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:v},e.stateChangeTypes=A,e}();l.a.array.isRequired,l.a.func,l.a.func,l.a.func,l.a.bool,l.a.number,l.a.number,l.a.number,l.a.bool,l.a.bool,l.a.bool,l.a.any,l.a.any,l.a.any,l.a.string,l.a.string,l.a.string,l.a.func,l.a.string,l.a.func,l.a.func,l.a.func,l.a.func,l.a.func,l.a.shape({addEventListener:l.a.func,removeEventListener:l.a.func,document:l.a.shape({getElementById:l.a.func,activeElement:l.a.any,body:l.a.any})});"undefined"==typeof window||window;t.a=R}}]); },function(){ (window.webpackJsonpvtex_store_components_3_178_5=window.webpackJsonpvtex_store_components_3_178_5||[]).push([[4],{113:function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Autocomplete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"maxRows"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-components@3.178.5",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autocomplete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"maxRows"},value:{kind:"Variable",name:{kind:"Name",value:"maxRows"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"inputValue"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"3a97904fea3a8b9f456a986074d629e1b74eea17e7186617597d30b54b227a42",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemsReturned"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thumb"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"criteria"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:437}};t.loc.source={body:'query Autocomplete($maxRows: Int, $inputValue: String) @context(sender: "vtex.store-components@3.178.5") {\n autocomplete(maxRows: $maxRows, searchTerm: $inputValue) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "3a97904fea3a8b9f456a986074d629e1b74eea17e7186617597d30b54b227a42") {\n itemsReturned {\n thumb\n name\n href\n productId\n criteria\n slug\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t0;){var m=s;s=new Set,m.forEach((function(e){l.has(e)||(l.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return l.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"Autocomplete")},157:function(e,n,t){e.exports={resultsList:"vtex-store-components-3-x-resultsList",resultsItemImage:"vtex-store-components-3-x-resultsItemImage"}},91:function(e,n,t){"use strict";t.r(n);var a=t(10),i=t(9),r=t(0),l=t.n(r),s=t(6),m=t.n(s),o=t(4),c=t(23),u=t(92),d=t.n(u),v=t(8),p=t(7),f=t.n(p),k=(t(157),t(113)),h=t.n(k),g=["resultsItem","resultsList","searchTerm","resultsItemImage","spinnerContainer","spinnerInnerContainer","resultsItemName"],b=function(e){var n,t=null!==(n=e.match(/https?:(.*?)"/g))&&void 0!==n?n:[""];return Object(i.a)(t,1)[0].replace(/https?:/,"").replace(/-25-25/g,"-50-50")};n.default=function(e){var n,t,i=e.parentContainer,s=e.isOpen,u=e.inputValue,p=e.closeMenu,k=e.onClearInput,x=e.getItemProps,N=e.getMenuProps,I=e.highlightedIndex,w=e.attemptPageTypeSearch,y=e.customSearchPageUrl,E=e.classes,S=Object(c.useQuery)(h.a,{skip:!u,variables:{inputValue:u}}),_=S.data,V=S.loading,F=null!==(t=null===(n=null==_?void 0:_.autocomplete)||void 0===n?void 0:n.itemsReturned)&&void 0!==t?t:[],D=Object(v.useRuntime)().hints.mobile,R=f()(g,{classes:E}).handles,j=encodeURIComponent(u),C=Object(r.useMemo)((function(){var e,n;return{width:Math.max(320,null!==(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==n?n:0)}}),[i]),O=m()(R.resultsList,"z-max w-100 bl-ns bb br-ns bw1 b--muted-4 bg-base c-on-base t-body left-0 list pv4 ph0 mv0 list overflow-y-auto",D?"fixed":"absolute",(!s||!u)&&"dn"),T=function(){k(),p()};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.itemIndex,t=void 0===n?-1:n,a=e.highlightedIndex,i=e.hasThumb,r=a===t?"bg-muted-5":"";return"pointer pa4 outline-0 ".concat(R.resultsItem," ").concat(r," ").concat(i?"flex justify-start":"db w-100")}var q=function(){return l.a.createElement("div",{className:"w-100 flex justify-center ".concat(R.spinnerContainer)},l.a.createElement("div",{className:"".concat(R.spinnerInnerContainer," w3 ma0")},l.a.createElement(d.a,null)))},L=l.a.createElement(o.FormattedMessage,{id:"store/search.searchFor",values:{term:l.a.createElement("span",{className:R.searchTerm},'"'.concat(u,'"'))}});return l.a.createElement("div",{style:C},l.a.createElement("ul",Object(a.a)({className:O},N()),s?V?l.a.createElement("div",{className:A({})},l.a.createElement(q,null)):l.a.createElement(r.Fragment,null,l.a.createElement("li",x({key:"ft".concat(u),item:{term:j},index:0,onClick:T}),w?l.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},className:A({itemIndex:0,highlightedIndex:I})},L):function(e){return y?l.a.createElement(v.Link,{className:A({itemIndex:0,highlightedIndex:I}),to:y.replace(/\$\{term\}/g,e)},L):l.a.createElement(v.Link,{page:"store.search",params:{term:e},query:"map=ft",className:A({itemIndex:0,highlightedIndex:I})},L)}(j)),F.map((function(e,n){return l.a.createElement("li",x({key:"".concat(e.name).concat(n),index:n+1,item:e,onClick:T}),l.a.createElement(v.Link,Object(a.a)({},function(e){var n=e.slug.split("/");if(e.criteria){var t="&_c=".concat(n[0]);return{page:"store.search",params:{term:n.join("/")},query:"map=c,ft".concat(t)}}return{page:"store.product",params:{slug:e.slug,id:e.productId},query:""}}(e),{className:A({itemIndex:n+1,highlightedIndex:I,hasThumb:!!e.thumb})}),e.thumb&&l.a.createElement("img",{width:50,height:50,alt:e.name,className:"".concat(R.resultsItemImage," mr4"),src:b(e.thumb)}),l.a.createElement("div",{className:"".concat(R.resultsItemName," flex justify-start items-center")},e.name)))}))):null))}}}]); },function(){ (window.webpackJsonpvtex_store_components_3_178_5=window.webpackJsonpvtex_store_components_3_178_5||[]).push([["SearchBar"],{0:function(e,t){e.exports=React},140:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContext"]},141:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},142:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/InputSearch"]},143:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconSearch"]},144:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconClose"]},17:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/formatIOMessage"]},2:function(e,t){e.exports=PropTypes},201:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.178.5");var a=Object(t.register)((function(){return n(233)}),e,"vtex.store-components@3.178.5","vtex.store-components@3.x","SearchBar");a.renderHotReload,a.setupHMR}.call(this,n(15)(e))},23:function(e,t){e.exports=ReactApollo},233:function(e,t,n){"use strict";n.r(t),n.d(t,"SEARCH_BAR_CSS_HANDLES",(function(){return $}));var a=n(9),o=n(20),r=n(0),c=n.n(r),s=n(4),l=n(140),i=n.n(l),u=n(8),p=n(7),d=n.n(p),m=n(70),h=n.n(m),f=n(10),b=n(6),v=n.n(b),O=n(87),g=n(56),x=n.n(g),E=n(141),_=n.n(E),C=n(17),M=n.n(C),I=n(99),S=n.n(I),y=n(91),N=n(54),j=n.n(N),P=n(142),T=n.n(P),R=n(143),B=n.n(R),k=n(144),w=n.n(k),A=n(46),D=n.n(A)()($),F=D.CssHandlesProvider,L=D.useContextCssHandles,H=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o0,y="clear-button"===I&&!S||"search-button"===I,N="search-and-clear-buttons"===I,P=("clear-button"===I&&S||"search-and-clear-buttons"===I)&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(_("searchBarIcon","clear")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),style:{visibility:S?"visible":"hidden"},"aria-label":M.formatMessage({id:"store/search.clear-input"}),onClick:function(){return t()}},c.a.createElement(q,null)),R=y&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(_("searchBarIcon","search")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),onClick:function(){return S&&u()},"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null)),B=N&&c.a.createElement("div",{className:"".concat(E.externalSearchButtonWrapper," bw1 bl b--muted-4 flex items-center ")},c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(_("searchBarIcon","external-search")," flex items-center h-100 pointer pv0 nr5 ph5 bn c-link"),onClick:u,"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null))),k=c.a.createElement("div",{className:"".concat(E.suffixWrapper," flex h-100")},P,R,B),w=c.a.createElement("span",{className:"".concat(l," ").concat(_("searchBarIcon","prefix")," ")},c.a.createElement(U,null)),A=v()("w-100 flex",n&&E.compactMode);return"search"===O?c.a.createElement("form",{action:"#",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},className:E.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(T.a,Object(f.a)({ref:C,size:"large",value:a},g,{error:Boolean(h),errorMessage:h,onSubmit:u,"aria-label":M.formatMessage({id:"store/search.autocompleteInput.aria-label"})})))):c.a.createElement("div",{className:E.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(j.a,Object(f.a)({ref:C,size:"large",value:a,prefix:o&&w,suffix:k},g,{error:Boolean(h),errorMessage:h,"aria-label":M.formatMessage({id:"store/search.autocompleteInput.aria-label"})}))))},V=Object(s.defineMessages)({searchTermTooShort:{id:"store/search.search-term-too-short"}});var z=function(e){var t=e.placeholder,n=e.onInputChange,o=e.onGoToSearchPage,l=e.onClearInput,i=e.inputValue,p=e.compactMode,d=e.hasIconLeft,m=e.iconClasses,h=e.iconBlockClass,b=e.autoFocus,g=e.maxWidth,E=e.attemptPageTypeSearch,C=e.customSearchPageUrl,I=e.autocompleteAlignment,N=e.openAutocompleteOnFocus,j=e.blurOnSubmit,P=e.submitOnIconClick,T=e.displayMode,R=e.minSearchTermLength,B=e.autocompleteFullWidth,k=e.inputType,w=e.containerMode,A=void 0===w?"overlay":w,D=e.disableBlurAndTouchEndHandler,F=L().withModifiers,H=Object(s.useIntl)(),W=Object(r.useRef)(null),q=Object(u.useRuntime)().navigate,U=Object(r.useState)(i),z=Object(a.a)(U,2),J=z[0],$=z[1],K=Object(r.useState)(),Q=Object(a.a)(K,2),X=Q[0],Y=Q[1],Z=Object(r.useCallback)(x()((function(e){$(e)}),1e3),[]);Object(r.useEffect)((function(){Z(i)}),[Z,i]);var ee=Object(r.useCallback)((function(e){if(e){if(e.term)return E?void(window.location.href="/".concat(e.term)):C?void q({to:C.replace(/\$\{term\}/g,e.term)}):void q({page:"store.search",params:{term:e.term},query:"map=ft"});var t="store.product",n={slug:e.slug,id:e.productId},a="",o=e.slug.split("/");if(e.criteria){var r="&_c=".concat(o[0]);t="store.search",n={term:o.join("/")},a="map=c,ft".concat(r)}q({page:t,params:n,query:a})}}),[q,E,C]),te=c.a.createElement(G,{placeholder:M()({id:t,intl:H}),onInputChange:n,inputValue:i,hasIconLeft:d,iconClasses:m,iconBlockClass:h,inputErrorMessage:X,onGoToSearchPage:o,onClearInput:l}),ne=Boolean(Object(u.useChildBlock)({id:"autocomplete-result-list"})),ae=Object(r.useMemo)((function(){if(ne){return function(e){return c.a.createElement(u.ExtensionPoint,Object(f.a)({id:"autocomplete-result-list"},e))}}return function(e){return c.a.createElement(y.default,e)}}),[ne]),oe=Object(r.useRef)(null);return c.a.createElement("div",{ref:W,className:v()("w-100 mw7 pv4",S.a.searchBarContainer),style:Object.assign({},g&&{maxWidth:"number"==typeof g?"".concat(g,"px"):g})},c.a.createElement(u.NoSSR,{onSSR:te},c.a.createElement(O.a,{onSelect:ee,stateReducer:function(e,t){var n=t.type;return n!==O.a.stateChangeTypes.blurInput&&n!==O.a.stateChangeTypes.touchEnd||!D?t:Object.assign(Object.assign({},t),{isOpen:e.isOpen})}},(function(e){var a,r=e.getInputProps,s=e.getItemProps,u=e.getMenuProps,h=e.getLabelProps,v=e.selectedItem,O=e.highlightedIndex,g=e.isOpen,x=e.closeMenu,y=e.openMenu;return c.a.createElement("div",{className:"relative-m w-100 ".concat(F("searchBarInnerContainer",[g?"opened":"",i?"filled":""]))},c.a.createElement("label",Object(f.a)({},h(),{className:S.a.visuallyHidden}),M()({id:t,intl:H})),c.a.createElement(G,Object(f.a)({autoFocus:b,compactMode:p,hasIconLeft:d,iconClasses:m,openAutocompleteOnFocus:N,submitOnIconClick:P,displayMode:T,inputType:k,openMenu:y,inputErrorMessage:X},r({onKeyDown:function(e){if("Enter"===e.key&&null===O){var t=R&&i.length