slice-machine-ui 2.17.2-beta.3 → 2.17.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/chunks/pages/{_app-33d293c68b7c0a17.js → _app-20b580525c9dd4d8.js} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- /package/out/_next/static/{8xVz5YQwOY20VZPYTBtRF → qsIV6OuRkZuXZ3EaJau1x}/_buildManifest.js +0 -0
- /package/out/_next/static/{8xVz5YQwOY20VZPYTBtRF → qsIV6OuRkZuXZ3EaJau1x}/_ssgManifest.js +0 -0
|
@@ -126,7 +126,7 @@ ${JSON.stringify(t)}
|
|
|
126
126
|
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.error("Error while sending event:",e)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,o]=t.split(":");return{reason:n,category:o,quantity:e[t]}})}}function er(e){return void 0===e.type}function eo(e){return"transaction"===e.type}var ei=n(4285);function ea(e,t){let n=el(e,t),o={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(o.stacktrace={frames:n}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function es(e,t){return{exception:{values:[ea(e,t)]}}}function el(e,t){let n=t.stacktrace||t.stack||"",o=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(eu.test(e.message))return 1}return 0}(t);try{return e(n,o)}catch(e){}return[]}let eu=/Minified React error #\d+;/i;function ec(e,t,n,o,i){let a;if((0,U.VW)(t)&&t.error)return es(e,t.error);if((0,U.TX)(t)||(0,U.fm)(t)){if("stack"in t)a=es(e,t);else{let i=t.name||((0,U.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;a=ed(e,s,n,o),(0,A.Db)(a,s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,U.VZ)(t)?es(e,t):((0,U.PO)(t)||(0,U.cO)(t)?a=function(e,t,n,o){let i=(0,T.Gd)().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,U.cO)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:`Non-Error ${o?"promise rejection":"exception"} captured with keys: ${(0,_.zf)(t)}`}]},extra:{__serialized__:function e(t,n=3,o=102400){let i=z(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>o?e(t,n-1,o):i}(t,a)}};if(n){let t=el(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,i):(a=ed(e,t,n,o),(0,A.Db)(a,`${t}`,void 0)),(0,A.EG)(a,{synthetic:!0}),a)}function ed(e,t,n,o){let i={message:t};if(o&&n){let o=el(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function ef(e,t){(0,T.Gd)().setContext(e,t)}function ep(e,t){(0,T.Gd)().setTag(e,t)}function eh(e){(0,T.Gd)().setUser(e)}let em=X.n2,eg=0;function ey(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if((0,_.HK)(e))return e}catch(t){return e}let o=function(){let o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=o.map(e=>ey(e,t));return e.apply(this,i)}catch(e){var i;throw eg++,setTimeout(()=>{eg--}),i=n=>{n.addEventProcessor(e=>(t.mechanism&&((0,A.Db)(e,void 0,void 0),(0,A.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e)),(0,T.Gd)().captureException(e,{captureContext:void 0})},(0,T.Gd)().withScope(i),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,_.$Q)(o,e),(0,_.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}var ev=n(54194);let eb=["fatal","error","warning","log","info","debug"];function eA(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+o}}let ew="Breadcrumbs";class ex{static __initStatic(){this.id=ew}__init(){this.name=ex.id}constructor(e){ex.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&(0,D.o)("console",eC),this.options.dom&&(0,D.o)("dom",(e=this.options.dom,function(t){let n;let o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof o&&(o=[o]);try{let e=t.event;n=e&&e.target?(0,ev.Rt)(e.target,{keyAttrs:o,maxStringLength:i}):(0,ev.Rt)(e,{keyAttrs:o,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&(0,T.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,D.o)("xhr",eS),this.options.fetch&&(0,D.o)("fetch",e_),this.options.history&&(0,D.o)("history",ek)}addSentryBreadcrumb(e){this.options.sentry&&(0,T.Gd)().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,A.jH)(e)},{event:e})}}function eC(e){var t;for(let t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":eb.includes(t)?t:"log",message:(0,w.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,w.nK)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,T.Gd)().addBreadcrumb(n,{input:e.args,level:e.level})}function eS(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;let{method:t,url:n,status_code:o,body:i}=e.xhr.__sentry_xhr__||{};(0,T.Gd)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:o},type:"http"},{xhr:e.xhr,input:i});return}}function e_(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,T.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,T.Gd)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response&&e.response.status},type:"http"},{input:e.args,response:e.response}))}function ek(e){let t=e.from,n=e.to,o=eA(em.location.href),i=eA(t),a=eA(n);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),o.protocol===i.protocol&&o.host===i.host&&(t=i.relative),(0,T.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}ex.__initStatic();class eE extends en{constructor(e){let t=em.SENTRY_SDK_SOURCE||(0,ei.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:v}],version:v},super(e),e.sendClientReports&&em.document&&em.document.addEventListener("visibilitychange",()=>{"hidden"===em.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,o){let i=ec(e,t,n&&n.syntheticException||void 0,o);return(0,A.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,W.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",o,i){let a=ed(e,t,o&&o.syntheticException||void 0,i);return a.level=n,o&&o.event_id&&(a.event_id=o.event_id),(0,W.WD)(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){let n=this.getIntegrationById(ew);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("Sending outcomes:",t);let n=Y(this._dsn,this._options),o=V((e=this._options.tunnel&&F(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,J.yW)(),discarded_events:t}]]);try{"[object Navigator]"!==Object.prototype.toString.call(em&&em.navigator)||"function"!=typeof em.navigator.sendBeacon||this._options.transportOptions?this._sendEnvelope(o):em.navigator.sendBeacon.bind(em.navigator)(n,H(o))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.error(e)}}}class eT{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=eT.id}__init2(){this._installFunc={onerror:eR,onunhandledrejection:eO}}constructor(e){eT.prototype.__init.call(this),eT.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}}function eR(){(0,D.o)("error",e=>{let[t,n,o]=ej();if(!t.getIntegration(eT))return;let{msg:i,url:a,line:s,column:l,error:u}=e;if(eg>0||u&&u.__sentry_own_request__)return;let c=void 0===u&&(0,U.HD)(i)?function(e,t,n,o){let i=(0,U.VW)(e)?e.message:e,a="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(a=s[1],i=s[2]),eI({exception:{values:[{type:a,value:i}]}},t,n,o)}(i,a,s,l):eI(ec(n,u||i,void 0,o,!1),a,s,l);c.level="error",eM(t,u,c,"onerror")})}function eO(){(0,D.o)("unhandledrejection",e=>{var t;let[n,o,i]=ej();if(!n.getIntegration(eT))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(eg>0||a&&a.__sentry_own_request__)return!0;let s=(0,U.pt)(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):ec(o,a,void 0,i,!0);s.level="error",eM(n,a,s,"onunhandledrejection")})}function eI(e,t,n,o){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],c=isNaN(parseInt(o,10))?void 0:o,d=isNaN(parseInt(n,10))?void 0:n,p=(0,U.HD)(t)&&t.length>0?t:(0,ev.l4)();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:d}),e}function eM(e,t,n,o){(0,A.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function ej(){let e=(0,T.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}eT.__initStatic();let eD=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class eL{static __initStatic(){this.id="TryCatch"}__init(){this.name=eL.id}constructor(e){eL.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,_.hl)(em,"setTimeout",eP),this._options.setInterval&&(0,_.hl)(em,"setInterval",eP),this._options.requestAnimationFrame&&(0,_.hl)(em,"requestAnimationFrame",eF),this._options.XMLHttpRequest&&"XMLHttpRequest"in em&&(0,_.hl)(XMLHttpRequest.prototype,"send",eN);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:eD).forEach(eB)}}function eP(e){return function(...t){let n=t[0];return t[0]=ey(n,{mechanism:{data:{function:(0,M.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function eF(e){return function(t){return e.apply(this,[ey(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,M.$P)(e)},handled:!0,type:"instrument"}})])}}function eN(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,_.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,M.$P)(t)},handled:!0,type:"instrument"}},o=(0,_.HK)(t);return o&&(n.mechanism.data.handler=(0,M.$P)(o)),ey(t,n)})}),e.apply(this,t)}}function eB(e){let t=em[e]&&em[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,_.hl)(t,"addEventListener",function(t){return function(n,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=ey(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,M.$P)(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ey(o,{mechanism:{data:{function:"addEventListener",handler:(0,M.$P)(o),target:e},handled:!0,type:"instrument"}}),i])}}),(0,_.hl)(t,"removeEventListener",function(e){return function(t,n,o){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,o)}catch(e){}return e.call(this,t,n,o)}}))}eL.__initStatic();class eU{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=eU.id}constructor(e={}){eU.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){let e=(0,T.Gd)().getClient();e&&(0,R.c)((t,n)=>{let o=(0,T.Gd)().getIntegration(eU);return o?function(e,t,n,o,i){if(!o.exception||!o.exception.values||!i||!(0,U.V9)(i.originalException,Error))return o;let a=function e(t,n,o,i,a=[]){if(!(0,U.V9)(o[i],Error)||a.length+1>=n)return a;let s=ea(t,o[i]);return e(t,n,o[i],i,[s,...a])}(e,n,i.originalException,t);return o.exception.values=[...a,...o.exception.values],o}(e.getOptions().stackParser,o._key,o._limit,t,n):t})}}eU.__initStatic();class eW{constructor(){eW.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=eW.id}setupOnce(){(0,R.c)(e=>{if((0,T.Gd)().getIntegration(eW)){if(!em.navigator&&!em.location&&!em.document)return e;let t=e.request&&e.request.url||em.location&&em.location.href,{referrer:n}=em.document||{},{userAgent:o}=em.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},a={...e.request,...t&&{url:t},headers:i};return{...e,request:a}}return e})}}eW.__initStatic();class ez{constructor(){ez.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=ez.id}setupOnce(e,t){let n=e=>{if(e.type)return e;let n=t().getIntegration(ez);if(n){try{var o;if((o=n._previousEvent)&&(function(e,t){let n=e.message,o=t.message;return!!((n||o)&&(!n||o)&&(n||!o)&&n===o&&eK(e,t)&&eV(e,t))}(e,o)||function(e,t){let n=e$(t),o=e$(e);return!!(n&&o&&n.type===o.type&&n.value===o.value&&eK(e,t)&&eV(e,t))}(e,o)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function eV(e,t){let n=eH(e),o=eH(t);if(!n&&!o)return!0;if(n&&!o||!n&&o||o.length!==n.length)return!1;for(let e=0;e<o.length;e++){let t=o[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function eK(e,t){let n=e.fingerprint,o=t.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;try{return!(n.join("")!==o.join(""))}catch(e){return!1}}function e$(e){return e.exception&&e.exception.values&&e.exception.values[0]}function eH(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}function eq(e,t,n,o){let i={filename:e,abs_path:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==o&&(i.colno=o),i}ez.__initStatic();let eG=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eZ=/\((\S*)(?::(\d+))(?::(\d+))\)/,eY=[30,e=>{let t=eG.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=eZ.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=e2(t[1]||"?",t[2]);return eq(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],eQ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eJ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eX=[50,e=>{let t=eQ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=eJ.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=e2(n,e),eq(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],e0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,e1=(0,M.pE)(eY,eX,[40,e=>{let t=e0.exec(e);return t?eq(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),e2=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function e5(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,W.$2)(new L("Not adding Promise because buffer limit was reached."));let i=o();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new W.cW((n,o)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,W.WD)(e).then(()=>{--i||(clearTimeout(a),n(!0))},o)})})}}}(e.bufferSize||30)){let o={};return{send:function(i){let a=[];if(K(i,(t,n)=>{let i=q[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(o,i)){let o=e3(t,n);e.recordDroppedEvent("ratelimit_backoff",i,o)}else a.push(t)}),0===a.length)return(0,W.WD)();let s=V(i[0],a),l=t=>{K(s,(n,o)=>{let i=e3(n,o);e.recordDroppedEvent(t,q[o],i)})};return n.add(()=>t({body:H(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),o=function(e,{statusCode:t,headers:n},o=Date.now()){let i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n]=e.split(":",2),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))i[e]=o+s;else i.all=o+s}else s?i.all=o+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let o=Date.parse(`${e}`);return isNaN(o)?6e4:o-t}(s,o):429===t&&(i.all=o+6e4);return i}(o,e),e),e=>{throw l("network_error"),e})).then(e=>e,e=>{if(e instanceof L)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,W.WD)();throw e})},flush:e=>n.drain(e)}}function e3(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function e6(e,t=function(){if(s)return s;if((0,j.Du)(em.fetch))return s=em.fetch.bind(em);let e=em.document,t=em.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return s=t.bind(em)}()){return e5(e,function(n){let o={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n.body.length<=65536,...e.fetchOptions};try{return t(e.url,o).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return s=void 0,(0,W.$2)(e)}})}function e4(e){return e5(e,function(t){return new W.cW((n,o)=>{let i=new XMLHttpRequest;for(let t in i.onerror=o,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let e8=[new C,new k,new eL,new ex,new eT,new eU,new ez,new eW];function e7(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let e9={};em.Sentry&&em.Sentry.Integrations&&em.Sentry.Integrations;var te=n(68976),tt=n(94610);let tn=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tr(e){let t;let n=e.match(tn);if(e&&n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}var to=n(78999);let ti="baggage",ta="sentry-",ts=/^sentry-/;function tl(e){if(!(0,U.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=tc(t);return{...e,...n}},{});else{if(!e)return;t=tc(e)}let n=Object.entries(t).reduce((e,[t,n])=>(t.match(ts)&&(e[t.slice(ta.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function tu(e){return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],o)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===o?i:`${e},${i}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${ta}${t}`]=n),e),{}))}function tc(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}var td=n(67532);let tf=X.n2,tp=(e,t,n)=>{let o,i;return a=>{t.value>=0&&(a||n)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,e(t))}},th=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,tm=()=>{let e=tf.performance.timing,t=tf.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},tg=()=>tf.__WEB_VITALS_POLYFILL__?tf.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||tm()):tf.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ty=()=>{let e=tg();return e&&e.activationStart||0},tv=(e,t)=>{let n=tg(),o="navigate";return n&&(o=tf.document.prerendering||ty()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:th(),navigationType:o}},tb=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let o=new PerformanceObserver(e=>{t(e.getEntries())});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch(e){}},tA=(e,t)=>{let n=o=>{("pagehide"===o.type||"hidden"===tf.document.visibilityState)&&(e(o),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},tw=e=>{let t;let n=tv("CLS",0),o=0,i=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let a=i[0],s=i[i.length-1];o&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-a.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e]),o>n.value&&(n.value=o,n.entries=i,t&&t())}})},s=tb("layout-shift",a);if(s){t=tp(e,n);let o=()=>{a(s.takeRecords()),t(!0)};return tA(o),o}},tx=-1,tC=()=>"hidden"!==tf.document.visibilityState||tf.document.prerendering?1/0:0,tS=()=>{tA(({timeStamp:e})=>{tx=e},!0)},t_=()=>(tx<0&&(tx=tC(),tS()),{get firstHiddenTime(){return tx}}),tk=e=>{let t;let n=t_(),o=tv("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),t(!0))},a=e=>{e.forEach(i)},s=tb("first-input",a);t=tp(e,o),s&&tA(()=>{a(s.takeRecords()),s.disconnect()},!0)},tE={},tT=e=>{let t;let n=t_(),o=tv("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-ty(),0);e<n.firstHiddenTime&&(o.value=e,o.entries=[i],t())}},a=tb("largest-contentful-paint",i);if(a){t=tp(e,o);let n=()=>{tE[o.id]||(i(a.takeRecords()),a.disconnect(),tE[o.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,n,{once:!0,capture:!0})}),tA(n,!0),n}};function tR(e){return"number"==typeof e&&isFinite(e)}function tO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function tI(e){return e/1e3}function tM(){return tf&&tf.addEventListener&&tf.performance}let tj=0,tD={};function tL(e,t,n,o,i,a){let s=a?t[a]:t[`${n}End`],l=t[`${n}Start`];l&&s&&tO(e,{op:"browser",description:i||n,startTimestamp:o+tI(l),endTimestamp:o+tI(s)})}let tP=["localhost",/^\//],tF={traceFetch:!0,traceXHR:!0,tracingOrigins:tP,tracePropagationTargets:tP},tN={...tt.AT,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let o;if(!tf||!tf.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=tf.location.href;t&&(o=e({name:tf.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,D.o)("history",({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=e({name:tf.location.pathname,op:"navigation",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...tF};class tB{__init(){this.name="BrowserTracing"}constructor(e){tB.prototype.__init.call(this),this.options={...tN,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){let e=tM();if(e&&J.Z1){e.mark&&tf.performance.mark("sentry-tracing-init"),tk(e=>{let t=e.entries.pop();if(!t)return;let n=tI(J.Z1),o=tI(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding FID"),tD.fid={value:e.value,unit:"millisecond"},tD["mark.fid"]={value:n+o,unit:"second"}});let t=tw(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding CLS"),tD.cls={value:e.value,unit:""},a=t)}),n=tT(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding LCP"),tD.lcp={value:e.value,unit:"millisecond"},i=t)});return()=>{t&&t(),n&&n()}}return()=>void 0}(),this.options.enableLongTask&&tb("longtask",e=>{for(let t of e){let e=(0,td.x1)();if(!e)return;let n=tI(J.Z1+t.startTime),o=tI(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+o})}}),this.options._experiments.enableInteractions&&tb("event",e=>{for(let t of e){let e=(0,td.x1)();if(!e)return;if("click"===t.name){let n=tI(J.Z1+t.startTime),o=tI(t.duration);e.startChild({description:(0,ev.Rt)(t.target),op:`ui.interaction.${t.name}`,startTimestamp:n,endTimestamp:n+o})}}},{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let{routingInstrumentation:n,startTransactionOnLocationChange:o,startTransactionOnPageLoad:i,markBackgroundTransactions:a,traceFetch:s,traceXHR:l,tracePropagationTargets:u,shouldCreateSpanForRequest:c,_experiments:d}=this.options;n(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},i,o),a&&(tf&&tf.document?tf.document.addEventListener("visibilitychange",()=>{let e=(0,td.x1)();if(tf.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d.enableInteractions&&this._registerInteractionListener(),function(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:o,tracingOrigins:i,shouldCreateSpanForRequest:a}={traceFetch:tF.traceFetch,traceXHR:tF.traceXHR,...e},s="function"==typeof a?a:e=>!0,l=e=>{var t;return t=o||i,(0,w.U0)(e,t||tP)},u={};t&&(0,D.o)("fetch",e=>{(function(e,t,n,o){if(!(0,p.z)()||!(e.fetchData&&t(e.fetchData.url)))return;if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=o[t];n&&(e.response?n.setHttpStatus(e.response.status):e.error&&n.setStatus("internal_error"),n.finish(),delete o[t]);return}let i=(0,T.Gd)().getScope(),a=i&&i.getSpan(),s=a&&a.transaction;if(a&&s){let t=a.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=t.spanId,o[t.spanId]=t;let i=e.args[0];e.args[1]=e.args[1]||{};let l=e.args[1];n(e.fetchData.url)&&(l.headers=function(e,t,n,o){let i=tu(t),a=n.toTraceparent(),s="undefined"!=typeof Request&&(0,U.V9)(e,Request)?e.headers:o.headers;if(!s)return{"sentry-trace":a,baggage:i};if("undefined"!=typeof Headers&&(0,U.V9)(s,Headers)){let e=new Headers(s);return e.append("sentry-trace",a),i&&e.append(ti,i),e}if(Array.isArray(s)){let e=[...s,["sentry-trace",a]];return i&&e.push([ti,i]),e}{let e="baggage"in s?s.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),i&&t.push(i),{...s,"sentry-trace":a,baggage:t.length>0?t.join(","):void 0}}}(i,s.getDynamicSamplingContext(),t,l))}})(e,s,l,u)}),n&&(0,D.o)("xhr",e=>{(function(e,t,n,o){if(!(0,p.z)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;let i=e.xhr.__sentry_xhr__;if(e.endTimestamp){let t=e.xhr.__sentry_xhr_span_id__;if(!t)return;let n=o[t];n&&(n.setHttpStatus(i.status_code),n.finish(),delete o[t]);return}let a=(0,T.Gd)().getScope(),s=a&&a.getSpan(),l=s&&s.transaction;if(s&&l){let t=s.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=t.spanId,o[e.xhr.__sentry_xhr_span_id__]=t,e.xhr.setRequestHeader&&n(e.xhr.__sentry_xhr__.url))try{e.xhr.setRequestHeader("sentry-trace",t.toTraceparent());let n=l.getDynamicSamplingContext(),o=tu(n);o&&e.xhr.setRequestHeader(ti,o)}catch(e){}}})(e,s,l,u)})}({traceFetch:s,traceXHR:l,tracePropagationTargets:u,shouldCreateSpanForRequest:c})}_createRouteTransaction(e){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let{beforeNavigate:t,idleTimeout:n,finalTimeout:o,heartbeatInterval:s}=this.options,l="pageload"===e.op,u=l?tU("sentry-trace"):null,c=l?tU("baggage"):null,d=u?tr(u):void 0,p=c?tl(c):void 0,h={...e,...d,metadata:{...e.metadata,dynamicSamplingContext:d&&!p?{}:p},trimEnd:!0},m="function"==typeof t?t(h):h,g=void 0===m?{...h,sampled:!1}:m;g.metadata=g.name!==h.name?{...g.metadata,source:"custom"}:g.metadata,this._latestRouteName=g.name,this._latestRouteSource=g.metadata&&g.metadata.source,!1===g.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`[Tracing] Starting ${g.op} transaction on scope`);let y=this._getCurrentHub(),{location:v}=tf,A=(0,to.l)(y,g,n,o,!0,{location:v},s);return A.registerBeforeFinishCallback(e=>{this._collectWebVitals(),function(e){let t,n;let o=tM();if(!o||!tf.performance.getEntries||!J.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Tracing] Adding & adjusting spans using Performance API");let s=tI(J.Z1),l=o.getEntries();if(l.slice(tj).forEach(o=>{let i=tI(o.startTime),a=tI(o.duration);if("navigation"!==e.op||!(s+i<e.startTimestamp))switch(o.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{tL(e,o,t,s)}),tL(e,o,"secureConnection",s,"TLS/SSL","connectEnd"),tL(e,o,"fetch",s,"cache","domainLookupStart"),tL(e,o,"domainLookup",s,"DNS"),tO(e,{op:"browser",description:"request",startTimestamp:s+tI(o.requestStart),endTimestamp:s+tI(o.responseEnd)}),tO(e,{op:"browser",description:"response",startTimestamp:s+tI(o.responseStart),endTimestamp:s+tI(o.responseEnd)}),t=s+tI(o.responseStart),n=s+tI(o.requestStart);break;case"mark":case"paint":case"measure":{(function(e,t,n,o,i){let a=i+n;tO(e,{description:t.name,endTimestamp:a+o,op:t.entryType,startTimestamp:a})})(e,o,i,a,s);let t=t_(),n=o.startTime<t.firstHiddenTime;"first-paint"===o.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding FP"),tD.fp={value:o.startTime,unit:"millisecond"}),"first-contentful-paint"===o.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding FCP"),tD.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{let t=o.name.replace(tf.location.origin,"");(function(e,t,n,o,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);let l=a+o;tO(e,{description:n,endTimestamp:l+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:l,data:s})})(e,o,t,i,a,s)}}}),tj=Math.max(l.length-1,0),function(e){let t=tf.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),tR(n.rtt)&&(tD["connection.rtt"]={value:n.rtt,unit:"millisecond"})),tR(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),tR(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding TTFB"),tD.ttfb={value:(t-e.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof n&&n<=t&&(tD["ttfb.requestTime"]={value:(t-n)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(t=>{if(!tD[t]||s>=e.startTimestamp)return;let n=tD[t].value,o=Math.abs((s+tI(n)-e.startTimestamp)*1e3),i=o-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log(`[Measurements] Normalized ${t} from ${n} to ${o} (${i})`),tD[t].value=o});let o=tD["mark.fid"];o&&tD.fid&&(tO(e,{description:"first input delay",endTimestamp:o.value+tI(tD.fid.value),op:"ui.action",startTimestamp:o.value}),delete tD["mark.fid"]),"fcp"in tD||delete tD.cls,Object.keys(tD).forEach(t=>{e.setMeasurement(t,tD[t].value,tD[t].unit)}),i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding LCP Data"),i.element&&e.setTag("lcp.element",(0,ev.Rt)(i.element)),i.id&&e.setTag("lcp.id",i.id),i.url&&e.setTag("lcp.url",i.url.trim().slice(0,200)),e.setTag("lcp.size",i.size)),a&&a.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.log("[Measurements] Adding CLS Data"),a.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,(0,ev.Rt)(t.node))))}i=void 0,a=void 0,tD={}}(e)}),A}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:o}=this.options,i="ui.action.click";if(e&&(e.finish(),e=void 0),!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:s}=tf,l={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=(0,to.l)(a,l,t,n,!0,{location:s},o)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}}function tU(e){let t=(0,ev.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):null}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,te.r)();var tW=n(34406);function tz(e,t,n={}){return Array.isArray(t)?tV(e,t,n):o=>{let i=t(o);return e.allowExclusionByUser&&!i.find(t=>t.name===e.name)?i:tV(e,i,n)}}function tV(e,t,n){let o=t.find(t=>t.name===e.name);if(o){for(let[e,t]of Object.entries(n))!function e(t,n,o){let i=n.match(/([a-z_]+)\.(.*)/i);null===i?t[n]=o:e(t[i[1]],i[2],o)}(o,e,t);return t}return[...t,e]}var tK=n(5632),t$=n.n(tK);let tH={"routing.instrumentation":"next-router"},tq=(0,T.Gd)().getClient();function tG(e,t=!0,n=!0){let{route:o,traceParentData:i,baggage:a,params:s}=function(){let e;let t=em.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:o,query:i,props:a}=e;return n.route=o,n.params=i,a&&a.pageProps&&(a.pageProps._sentryBaggage&&(n.baggage=a.pageProps._sentryBaggage),a.pageProps._sentryTraceData&&(n.traceParentData=tr(a.pageProps._sentryTraceData))),n}();if(u=o||em.location.pathname,t){let t=tl(a);l=e({name:u,op:"pageload",tags:tH,...s&&tq&&tq.getOptions().sendDefaultPii&&{data:s},...i,metadata:{source:o?"route":"url",dynamicSamplingContext:i&&!t?{}:t}})}n&&t$().events.on("routeChangeStart",t=>{let n,o;let i=function(e){let t=(em.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let o=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${o}${n}(?:/)?$`)}(t);return e.match(n)})}(t.split(/[\?#]/,1)[0]);i?(n=i,o="route"):(n=t,o="url");let a={...tH,from:u};u=n,l&&l.finish();let s=e({name:n,op:"navigation",tags:a,metadata:{source:o}});if(s){let e=s.startChild({op:"ui.nextjs.route-change",description:"Next.js Route Change"}),t=()=>{e.finish(),t$().events.off("routeChangeComplete",t)};t$().events.on("routeChangeComplete",t)}})}let tZ=n.g,tY=n.g;function tQ(e){var t,n;!function(e){let t=tZ.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=N(e.dsn),o=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(o){let i=o[1],a=`${t}?o=${i}&p=${n.projectId}`;e.tunnel=a,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.info(`Tunneling events to "${a}"`)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),t=["nextjs","react"],e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.nextjs",packages:t.map(e=>({name:`npm:@sentry/${e}`,version:v})),version:v},e.environment=e.environment||function(e){let t=e?tW.env.NEXT_PUBLIC_VERCEL_ENV:tW.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",function(e){let t=e.integrations||[],n=tY.__rewriteFramesAssetPrefixPath__||"";t=tz(new y({iteratee:e=>{try{let{origin:t}=new URL(e.filename);e.filename=function(e){let t;let n=e[0],o=1;for(;o<e.length;){let i=e[o],a=e[o+1];if(o+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=a(n)):("call"===i||"optionalCall"===i)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(t,"app://"),"access",e=>e.replace,"call",e=>e(n,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e}}),t),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,p.z)(e)&&(t=tz(new tB({tracingOrigins:[...tF.tracingOrigins,/^(api\/)/],routingInstrumentation:tG}),t,{"options.routingInstrumentation":tG})),e.integrations=t}(e),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:v}],version:v},function(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=e8),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),em.SENTRY_RELEASE&&em.SENTRY_RELEASE.id&&(e.release=em.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?b.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let n=(0,T.Gd)(),o=n.getScope();o&&o.update(t.initialScope);let i=new e(t);n.bindClient(i)}(eE,{...e,stackParser:(0,M.Sq)(e.stackParser||e1),integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let o=function(e){let t={};return e.forEach(e=>{let{name:n}=e,o=t[n];o&&!o.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,A.lE)(n(t)):t),i=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(o,e=>"Debug"===e.name);if(-1!==i){let[e]=o.splice(i,1);o.push(e)}return o}(e),transport:e.transport||((0,j.Ak)()?e6:e4)}),e.autoSessionTracking&&function(){if(void 0===em.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&b.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let e=(0,T.Gd)();e.captureSession&&(e7(e),(0,D.o)("history",({from:e,to:t})=>{void 0===e||e===t||e7((0,T.Gd)())}))}()}(e),n=e=>{e.setTag("runtime","browser");let t=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;t.id="NextClient404Filter",e.addEventProcessor(t)},(0,T.Gd)().configureScope(n)}},68976:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var o=n(66465),i=n(78999),a=n(37392),s=n(67532),l=n(64005),u=n(58536);function c(){let e=(0,s.x1)();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function d(){(0,i.T)(),(0,a.KV)()&&function(){let t=(0,o.cu)();if(!t.__SENTRY__)return;let n={mongodb:()=>new((0,a.l$)(e,"./node/integrations/mongo")).Mongo,mongoose:()=>new((0,a.l$)(e,"./node/integrations/mongo")).Mongo({mongoose:!0}),mysql:()=>new((0,a.l$)(e,"./node/integrations/mysql")).Mysql,pg:()=>new((0,a.l$)(e,"./node/integrations/postgres")).Postgres},i=Object.keys(n).filter(e=>!!(0,a.$y)(e)).map(e=>{try{return n[e]()}catch(e){return}}).filter(e=>e);i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}(),(0,l.o)("error",c),(0,l.o)("unhandledrejection",c)}e=n.hmd(e)},54194:function(e,t,n){"use strict";n.d(t,{Rt:function(){return a},l4:function(){return s},qT:function(){return l}});var o=n(81757);let i=(0,n(90063).Rf)();function a(e,t={}){try{let n,i=e,a=[],s=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&s++<5&&(n=function(e,t){let n,i,a,s,l;let u=[];if(!e||!e.tagName)return"";u.push(e.tagName.toLowerCase());let c=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(c&&c.length)c.forEach(e=>{u.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&u.push(`#${e.id}`),(n=e.className)&&(0,o.HD)(n))for(l=0,i=n.split(/\s+/);l<i.length;l++)u.push(`.${i[l]}`);let d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)a=d[l],(s=e.getAttribute(a))&&u.push(`[${a}="${s}"]`);return u.join("")}(i,u),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=c)));)a.push(n),l+=n.length,i=i.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function l(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},4285:function(e,t,n){"use strict";function o(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return o}})},64005:function(e,t,n){"use strict";let o,i,a;n.d(t,{o:function(){return g}});var s=n(81757),l=n(58536),u=n(21995),c=n(69038),d=n(49798);let p=(0,n(90063).Rf)(),h={},m={};function g(e,t){h[e]=h[e]||[],h[e].push(t),function(e){if(!m[e])switch(m[e]=!0,e){case"console":"console"in p&&l.RU.forEach(function(e){e in p.console&&(0,u.hl)(p.console,e,function(t){return function(...n){y("console",{args:n,level:e}),t&&t.apply(p.console,n)}})});break;case"dom":(function(){if(!("document"in p))return;let e=y.bind(null,"dom"),t=v(e,!0);p.document.addEventListener("click",t,!1),p.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=p[t]&&p[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",function(t){return function(n,o,i){if("click"===n||"keypress"==n)try{let o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){let o=v(e);a.handler=o,t.call(this,n,o,i)}a.refCount++}catch(e){}return t.call(this,n,o,i)}}),(0,u.hl)(n,"removeEventListener",function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,o),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,o)}}))})})();break;case"xhr":(function(){if(!("XMLHttpRequest"in p))return;let e=XMLHttpRequest.prototype;(0,u.hl)(e,"open",function(e){return function(...t){let n=this,o=t[1],i=n.__sentry_xhr__={method:(0,s.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,s.HD)(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let a=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}y("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,u.hl)(n,"onreadystatechange",function(e){return function(...t){return a(),e.apply(n,t)}}):n.addEventListener("readystatechange",a),e.apply(n,t)}}),(0,u.hl)(e,"send",function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),y("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":(0,d.t$)()&&(0,u.hl)(p,"fetch",function(e){return function(...t){let n={args:t,fetchData:{method:function(e=[]){return"Request"in p&&(0,s.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}(t),url:function(e=[]){return"string"==typeof e[0]?e[0]:"Request"in p&&(0,s.V9)(e[0],Request)?e[0].url:String(e[0])}(t)},startTimestamp:Date.now()};return y("fetch",{...n}),e.apply(p,t).then(e=>(y("fetch",{...n,endTimestamp:Date.now(),response:e}),e),e=>{throw y("fetch",{...n,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if(!(0,d.Bf)())return;let e=p.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=o,t=String(n);o=t,y("history",{from:e,to:t})}return e.apply(this,t)}}p.onpopstate=function(...t){let n=p.location.href,i=o;if(o=n,y("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,u.hl)(p.history,"pushState",t),(0,u.hl)(p.history,"replaceState",t)})();break;case"error":b=p.onerror,p.onerror=function(e,t,n,o,i){return y("error",{column:o,error:i,line:n,msg:e,url:t}),!!b&&b.apply(this,arguments)};break;case"unhandledrejection":A=p.onunhandledrejection,p.onunhandledrejection=function(e){return y("unhandledrejection",e),!A||A.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("unknown instrumentation type:",e);return}}(e)}function y(e,t){if(e&&h[e])for(let n of h[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(`Error while triggering instrumentation handler.
|
|
127
127
|
Type: ${e}
|
|
128
128
|
Name: ${(0,c.$P)(n)}
|
|
129
|
-
Error:`,t)}}function v(e,t=!1){return n=>{if(!n||a===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let o="keypress"===n.type?"input":n.type;void 0===i?(e({event:n,name:o,global:t}),a=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(a,n)&&(e({event:n,name:o,global:t}),a=n),clearTimeout(i),i=p.setTimeout(()=>{i=void 0},1e3)}}let b=null,A=null},81757:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return c},J8:function(){return y},Kj:function(){return g},PO:function(){return p},TX:function(){return l},V9:function(){return A},VW:function(){return s},VZ:function(){return i},cO:function(){return h},fm:function(){return u},i2:function(){return b},kK:function(){return m},pt:function(){return d}});let o=Object.prototype.toString;function i(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return A(e,Error)}}function a(e,t){return o.call(e)===`[object ${t}]`}function s(e){return a(e,"ErrorEvent")}function l(e){return a(e,"DOMError")}function u(e){return a(e,"DOMException")}function c(e){return a(e,"String")}function d(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function h(e){return"undefined"!=typeof Event&&A(e,Event)}function m(e){return"undefined"!=typeof Element&&A(e,Element)}function g(e){return a(e,"RegExp")}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function v(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e){return"number"==typeof e&&e!=e}function A(e,t){try{return e instanceof t}catch(e){return!1}}},58536:function(e,t,n){"use strict";let o;n.d(t,{Cf:function(){return s},RU:function(){return a},kg:function(){return o}});var i=n(90063);let a=["debug","info","warn","error","log","assert","trace"];function s(e){if(!("console"in i.n2))return e();let t=i.n2.console,n={};a.forEach(e=>{let o=t[e]&&t[e].__sentry_original__;e in t&&o&&(n[e]=t[e],t[e]=o)});try{return e()}finally{Object.keys(n).forEach(e=>{t[e]=n[e]})}}function l(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>void 0}),t}"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o=(0,i.YO)("logger",l):o=l()},63699:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return u},EG:function(){return c},YO:function(){return d},jH:function(){return l},lE:function(){return p}});var o=n(21995),i=n(90063);function a(){let e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");let n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function l(e){let{message:t,event_id:n}=e;if(t)return t;let o=s(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){let o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function c(e,t){let n=s(e);if(!n)return;let o=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...o,...t},t&&"data"in t){let e={...o&&o.data,...t.data};n.mechanism.data=e}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function p(e){return Array.isArray(e)?e:[e]}},37392:function(e,t,n){"use strict";n.d(t,{$y:function(){return l},KV:function(){return a},l$:function(){return s}});var o=n(4285);e=n.hmd(e);var i=n(34406);function a(){return!(0,o.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(e,t){return e.require(t)}function l(t){let n;try{n=s(e,t)}catch(e){}try{let{cwd:o}=s(e,"process");n=s(e,`${o()}/node_modules/${t}`)}catch(e){}return n}},21995:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return c},Jr:function(){return y},Sh:function(){return p},_j:function(){return d},hl:function(){return s},xp:function(){return l},zf:function(){return g}});var o=n(54194),i=n(81757),a=n(39660);function s(e,t,n){if(!(t in e))return;let o=e[t],i=n(o);if("function"==typeof i)try{u(i,o)}catch(e){}e[t]=i}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){let n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,i.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,i.kK)(e)?(0,o.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,a.$G)(n[0],t);for(let e=n.length;e>0;e--){let o=n.slice(0,e).join(", ");if(!(o.length>t)){if(e===n.length)return o;return(0,a.$G)(o,t)}}return""}function y(e){return function e(t,n){if((0,i.PO)(t)){let o=n.get(t);if(void 0!==o)return o;let i={};for(let o of(n.set(t,i),Object.keys(t)))void 0!==t[o]&&(i[o]=e(t[o],n));return i}if(Array.isArray(t)){let o=n.get(t);if(void 0!==o)return o;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},69038:function(e,t,n){"use strict";n.d(t,{$P:function(){return l},Sq:function(){return a},pE:function(){return i}});let o=/\(error: (.*)\)/;function i(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let i=[];for(let a of e.split("\n").slice(n)){if(a.length>1024)continue;let e=o.test(a)?a.replace(o,"$1"):a;for(let n of t){let t=n(e);if(t){i.push(t);break}}}return function(e){if(!e.length)return[];let t=e,n=t[0].function||"",o=t[t.length-1].function||"";return(-1!==n.indexOf("captureMessage")||-1!==n.indexOf("captureException"))&&(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(i)}}function a(e){return Array.isArray(e)?i(...e):e}let s="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch(e){return s}}},39660:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return a}});var o=n(81757);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let o=e[t];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):!!(0,o.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},49798:function(e,t,n){"use strict";n.d(t,{Ak:function(){return a},Bf:function(){return u},Du:function(){return s},t$:function(){return l}});var o=n(58536);let i=(0,n(90063).Rf)();function a(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if(!a())return!1;if(s(i.fetch))return!0;let e=!1,t=i.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function u(){let e=i.chrome,t=e&&e.app&&e.app.runtime,n="history"in i&&!!i.history.pushState&&!!i.history.replaceState;return!t&&n}},97946:function(e,t,n){"use strict";n.d(t,{$2:function(){return l},WD:function(){return s},cW:function(){return u}});var o,i,a=n(81757);function s(e){return new u(t=>{t(e)})}function l(e){return new u((t,n)=>{n(e)})}(o=i||(i={}))[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED";class u{__init(){this._state=i.PENDING}__init2(){this._handlers=[]}constructor(e){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u((n,o)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){o(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){o(e)}else o(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new u((t,n)=>{let o,i;return this.then(t=>{i=!1,o=t,e&&e()},t=>{i=!0,o=t,e&&e()}).then(()=>{if(i){n(o);return}t(o)})})}__init3(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,a.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},7790:function(e,t,n){"use strict";n.d(t,{Z1:function(){return h},_I:function(){return p},ph:function(){return d},yW:function(){return c}});var o=n(37392),i=n(90063);e=n.hmd(e);let a=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},l=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=a;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),u=void 0===l?s:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},c=s.nowSeconds.bind(s),d=u.nowSeconds.bind(u),p=d,h=(()=>{let{performance:e}=a;if(!e||!e.now)return;let t=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;return o<36e5||s<36e5?o<=s?e.timeOrigin:i:n})()},90063:function(e,t,n){"use strict";function o(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{};return a[e]||(a[e]=t())}},12170:function(e,t,n){"use strict";n.d(t,{Fq:function(){return H},_j:function(){return V},$n:function(){return K},DZ:function(){return $}});var o=n(7896),i=n(80753),a=n(81665),s=n(95058),l=n(88960),u=n(70352);function c(e,t,n){return(c=(0,u.Z)()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&(0,l.Z)(i,n.prototype),i}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,(0,s.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,l.Z)(n,e)})(e)}var p=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,i.Z)(n)}return(0,a.Z)(t,e),t}(d(Error));function h(e){return Math.round(255*e)}function m(e,t,n){return h(e)+","+h(t)+","+h(n)}function g(e,t,n,o){if(void 0===o&&(o=m),0===t)return o(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,s=a*(1-Math.abs(i%2-1)),l=0,u=0,c=0;i>=0&&i<1?(l=a,u=s):i>=1&&i<2?(l=s,u=a):i>=2&&i<3?(u=a,c=s):i>=3&&i<4?(u=s,c=a):i>=4&&i<5?(l=s,c=a):i>=5&&i<6&&(l=a,c=s);var d=n-a/2;return o(l+d,u+d,c+d)}var y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},v=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,A=/^#[a-fA-F0-9]{3}$/,w=/^#[a-fA-F0-9]{4}$/,x=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,C=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,S=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function k(e){if("string"!=typeof e)throw new p(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return y[t]?"#"+y[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(b)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(A))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(w)){var o=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:o}}var i=x.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var a=C.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var s=S.exec(t);if(s){var l="rgb("+g(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",u=x.exec(l);if(!u)throw new p(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=_.exec(t.substring(0,50));if(c){var d="rgb("+g(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",h=x.exec(d);if(!h)throw new p(4,t,d);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new p(5)}function T(e){return function(e){var t,n=e.red/255,o=e.green/255,i=e.blue/255,a=Math.max(n,o,i),s=Math.min(n,o,i),l=(a+s)/2;if(a===s)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var u=a-s,c=l>.5?u/(2-a-s):u/(a+s);switch(a){case n:t=(o-i)/u+(o<i?6:0);break;case o:t=(i-n)/u+2;break;default:t=(n-o)/u+4}return(t*=60,void 0!==e.alpha)?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(k(e))}var R=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function O(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function I(e){return O(Math.round(255*e))}function M(e,t,n){return R("#"+I(e)+I(t)+I(n))}function j(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return R("#"+O(e)+O(t)+O(n));if("object"==typeof e&&void 0===t&&void 0===n)return R("#"+O(e.red)+O(e.green)+O(e.blue));throw new p(6)}function D(e,t,n,o){if("string"==typeof e&&"number"==typeof t){var i=k(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof o)return o>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+o+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===o)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new p(7)}function L(e){if("object"!=typeof e)throw new p(8);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha)return D(e);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha))return j(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha)return function(e,t,n,o){if("object"==typeof e)return e.alpha>=1?g(e.hue,e.saturation,e.lightness,M):"rgba("+g(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new p(2)}(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha))return function(e,t,n){if("object"==typeof e)return g(e.hue,e.saturation,e.lightness,M);throw new p(1)}(e);throw new p(8)}function P(e){return function e(t,n,o){return function(){var i=o.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(e,e.length,[])}function F(e,t,n){return Math.max(e,Math.min(t,n))}var N=P(function(e,t){if("transparent"===t)return t;var n=T(t);return L((0,o.Z)({},n,{lightness:F(0,1,n.lightness-parseFloat(e))}))}),B=P(function(e,t){if("transparent"===t)return t;var n=T(t);return L((0,o.Z)({},n,{lightness:F(0,1,n.lightness+parseFloat(e))}))}),U=P(function(e,t){if("transparent"===t)return t;var n=k(t),i="number"==typeof n.alpha?n.alpha:1;return D((0,o.Z)({},n,{alpha:F(0,1,+(100*i-100*parseFloat(e)).toFixed(2)/100)}))}),W=n(62273),z=function(e,t){return"object"==typeof t&&(t=Array.isArray(t)?t[0]:t.__default),(0,W.U2)(e,"rawColors"in e?"rawColors."+t:"colors."+t,t)},V=function(e,t){return function(n){return N(t,z(n,e))}},K=function(e,t){return function(n){return B(t,z(n,e))}},$=function(e,t){return function(n){return U(t,z(n,e))}},H=function(e,t){return function(n){return D(z(n,e),t)}}},75289:function(e,t,n){"use strict";n.d(t,{$j:function(){return Z},Ct:function(){return Y},Ee:function(){return _},II:function(){return M},X6:function(){return S},XZ:function(){return K},Y8:function(){return B},Zb:function(){return k},__:function(){return T},hU:function(){return J},kC:function(){return y},nv:function(){return x},rU:function(){return w},rs:function(){return H},x8:function(){return et},xu:function(){return g},xv:function(){return C},zx:function(){return A}});var o=n(79396),i=n(28165),a=n(2784),s=n(62273);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var d=["__themeKey","__css","variant","css","sx","as"],p=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","m","mt","mr","mb","ml","mx","my","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","p","pt","pr","pb","pl","px","py","color","backgroundColor","bg","opacity"],h=function(e){return p.includes(e)},m=function(e){for(var t,n={},o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,void 0)}}(e))){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(p);!(t=o()).done;){var i=t.value;n[i]=e[i]}return n},g=(0,a.forwardRef)(function(e,t){var n=(0,o.u)(),a=e.__themeKey,c=e.__css,h=e.variant,g=e.css,y=e.sx,v=e.as,b=u(e,d),A=(0,s.iv)(c)(n),w=(0,s.U2)(n,(void 0===a?"variants":a)+"."+h)||(0,s.U2)(n,h),x=w&&(0,s.iv)(w)(n),C=(0,s.iv)(y)(n),S=(0,s.iv)(m(b))(n);return p.forEach(function(e){delete b[e]}),(0,i.tZ)(void 0===v?"div":v,l({ref:t,css:[{boxSizing:"border-box",margin:0,minWidth:0},A,x,C,S,g]},b))}),y=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t},e,{sx:l({display:"flex"},e.sx)}))}),v=function(e){return function(t){var n={};for(var o in t)e(o||"")&&(n[o]=t[o]);return n}},b=/^m[trblxy]?$/;v(function(e){return b.test(e)}),v(function(e){return!b.test(e)});var A=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"button",variant:"primary"},e,{__themeKey:"buttons",__css:{appearance:"none",display:e.hidden?void 0:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))}),w=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"a",variant:"styles.a"},e,{__themeKey:"links"}))}),x=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"p",variant:"paragraph"},e,{__themeKey:"text",__css:{fontFamily:"body",fontWeight:"body",lineHeight:"body"}}))}),C=a.forwardRef(function(e,t){return a.createElement(g,l({as:"span",ref:t,variant:"default"},e,{__themeKey:"text"}))}),S=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"h2",variant:"heading"},e,{__themeKey:"text",__css:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))}),_=a.forwardRef(function(e,t){var n=e.__css;return a.createElement(g,l({ref:t,as:"img"},e,{__themeKey:"images",__css:l({maxWidth:"100%",height:"auto"},n)}))}),k=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,variant:"primary"},e,{__themeKey:"cards"}))}),T=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"label",variant:"label"},e,{__themeKey:"forms",__css:{width:"100%",display:"flex"}}))}),R=["sx","autofillBackgroundColor"],O={boxShadow:"inset 0 0 0 1000px var(--theme-ui-input-autofill-bg)",fontSize:"inherit",":first-line":{fontSize:"1rem"}},I={display:"block",width:"100%",p:2,appearance:"none",fontSize:"inherit",lineHeight:"inherit",border:"1px solid",borderRadius:4,color:"inherit",bg:"transparent",":autofill, :autofill:hover, :autofill:focus":O,":-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus":O},M=a.forwardRef(function(e,t){var n=e.sx,o=e.autofillBackgroundColor,i=void 0===o?"background":o,c=u(e,R);return a.createElement(g,l({ref:t,as:"input",variant:"input",sx:l({"--theme-ui-input-autofill-bg":function(e){return e.colors&&(0,s.U2)(e.colors,i,null)}},n)},c,{__themeKey:"forms",__css:I}))}),j=["size"],D=a.forwardRef(function(e,t){var n=e.size,o=void 0===n?24:n,i=u(e,j),s=l({xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"currentcolor"},i);return a.createElement(g,l({ref:t,as:"svg"},s))});D.displayName="SVG";var L=["className","sx","variant"],P=function(e){return a.createElement(D,e,a.createElement("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},F=function(e){return a.createElement(D,e,a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},N=function(e){return a.createElement(a.Fragment,null,a.createElement(P,l({},e,{__css:{display:"none","input:checked ~ &":{display:"block"}}})),a.createElement(F,l({},e,{__css:{display:"block","input:checked ~ &":{display:"none"}}})))},B=a.forwardRef(function(e,t){var n=e.className,o=e.sx,i=e.variant,s=u(e,L);return a.createElement(g,{sx:{minWidth:"min-content"}},a.createElement(g,l({ref:t,as:"input",type:"radio"},s,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}})),a.createElement(g,l({as:N,"aria-hidden":"true",variant:void 0===i?"radio":i,className:n,sx:o},{__themeKey:"forms",__css:{mr:2,borderRadius:9999,color:"gray",flexShrink:0,"input:checked ~ &":{color:"primary"},"input:focus ~ &":{bg:"highlight"}}})))}),U=["className","sx","variant","children"],W=function(e){return a.createElement(D,e,a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))},z=function(e){return a.createElement(D,e,a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))},V=function(e){return a.createElement(a.Fragment,null,a.createElement(W,l({},e,{__css:{display:"none","input:checked ~ &":{display:"block"}}})),a.createElement(z,l({},e,{__css:{display:"block","input:checked ~ &":{display:"none"}}})))},K=a.forwardRef(function(e,t){var n=e.className,o=e.sx,i=e.variant,s=e.children,c=u(e,U);return a.createElement(g,{sx:{minWidth:"min-content"}},a.createElement(g,l({ref:t,as:"input",type:"checkbox"},c,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}})),a.createElement(g,l({as:V,"aria-hidden":"true",variant:void 0===i?"checkbox":i,className:n,sx:o},{__themeKey:"forms",__css:{mr:2,borderRadius:4,color:"gray",flexShrink:0,"input:checked ~ &":{color:"primary"},"input:focus ~ &":{color:"primary",bg:"highlight"}}})),s)}),$=["className","label","sx","variant"],H=a.forwardRef(function(e,t){var n=e.className,o=e.label,i=e.sx,s=e.variant,c=u(e,$);return a.createElement(T,{sx:{cursor:"pointer"}},a.createElement(g,l({ref:t,as:"input",type:"checkbox","aria-label":o},c,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}},{__themeKey:"forms"})),a.createElement(g,l({css:{padding:2},variant:void 0===s?"switch":s,className:n,sx:i},{__themeKey:"forms",__css:{position:"relative",flexShrink:0,bg:"gray",borderRadius:18,height:22,width:40,mr:2,"input:disabled ~ &":{opacity:.5,cursor:"not-allowed"},"& > div":{display:"flex",alignItems:"center",borderRadius:"50%",height:18,width:18,bg:"white",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",position:"relative",transform:"translateX(0%)",transition:"transform 240ms cubic-bezier(0.165, 0.840, 0.440, 1.000)"},"input:checked ~ &":{bg:"primary","> div":{transform:"translateX(100%)"}}}}),a.createElement(g,null)),a.createElement("span",null,o))}),q=["size","strokeWidth","max","title","duration"],Z=a.forwardRef(function(e,t){var n=e.size,o=void 0===n?48:n,i=e.strokeWidth,s=void 0===i?4:i;e.max;var c=e.title,d=e.duration,p=u(e,q),h={strokeWidth:s,r:16-s,cx:16,cy:16,fill:"none"};return a.createElement(g,l({ref:t,as:"svg"},{strokeWidth:s,viewBox:"0 0 32 32",width:o,height:o,fill:"none",stroke:"currentColor",role:"img"},p,{__css:{color:"primary",overflow:"visible"}}),a.createElement("title",null,void 0===c?"Loading":c),a.createElement("circle",l({},h,{opacity:1/8})),a.createElement("circle",l({},h,{strokeDasharray:"20 110"}),a.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 16 16",to:"360 16 16",dur:(void 0===d?750:d)+"ms",repeatCount:"indefinite"})))}),Y=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,variant:"primary"},e,{__themeKey:"badges",__css:{display:"inline-block",verticalAlign:"baseline",fontSize:0,fontWeight:"bold",whiteSpace:"nowrap",px:1,borderRadius:2,color:"white",bg:"primary"}}))}),Q=["size"],J=a.forwardRef(function(e,t){var n,o=e.size,i=void 0===o?32:o,s=u(e,Q),c=(null==(n=s.__css)?void 0:n.label)||"IconButton";return a.createElement(g,l({ref:t,as:"button",variant:"icon"},s,{__themeKey:"buttons",__css:{label:c,appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:1,width:i,height:i,color:"inherit",bg:"transparent",border:"none",borderRadius:4}}))}),X=["size"],ee=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),et=a.forwardRef(function(e,t){var n=e.size,o=u(e,X);return a.createElement(J,l({ref:t,size:void 0===n?32:n,title:"Close","aria-label":"Close",variant:"close"},o,{children:ee}))});v(h),v(function(e){return!h(e)})},59326:function(e,t,n){"use strict";n.d(t,{f6:function(){return x},vg:function(){return w},yo:function(){return p},tZ:function(){return d},B7:function(){return m}});var o=n(28165),i=n(79396),a=n(2784),s=n(39714),l=n.n(s),u=n(62273);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var d=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return o.tZ.apply(void 0,[e,function(e){if(!e||!e.sx&&!e.css)return e;var t={};for(var n in e)"sx"!==n&&(t[n]=e[n]);return t.css=function(t){return[(0,u.iv)(e.sx)(t),"function"==typeof e.css?e.css(t):e.css]},t}(t)].concat(i))},p={__EMOTION_VERSION__:"11.11.1",theme:{}},h=a.createContext(p),m=function(){return a.useContext(h)},g="function"==typeof Symbol&&Symbol.for,y=g?Symbol.for("react.element"):60103,v=g?Symbol.for("react.forward_ref"):60103,b={isMergeableObject:function(e){return!!e&&"object"==typeof e&&e.$$typeof!==y&&e.$$typeof!==v},arrayMerge:function(e,t){return t}},A=function(e,t){return l()(e,t,b)};A.all=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l().all(t,b)};var w=function(e){var t=e.context,n=e.children;return d(i.T.Provider,{value:t.theme},d(h.Provider,{value:t,children:n}))};function x(e){var t=e.theme,n=e.children,o=m();return d(w,{context:"function"==typeof t?c({},o,{theme:t(o.theme)}):A.all({},o,{theme:t}),children:n})}},62273:function(e,t,n){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,{U2:function(){return s},iv:function(){return y}});var i="__default",a=function(e){return"object"==typeof e&&null!==e&&i in e};function s(e,t,n,o,s){var l=t&&"string"==typeof t?t.split("."):[t];for(o=0;o<l.length;o++)e=e?e[l[o]]:s;return e===s?n:a(e)?e[i]:e}var l=function e(t,n){if(t&&t.variant){var i={};for(var a in t){var l=t[a];if("variant"===a){var u="function"==typeof l?l(n):l,c=e(s(n,u),n);i=o({},i,c)}else i[a]=l}return i}return t},u=[40,52,64].map(function(e){return e+"em"}),c={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},d={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},p={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],scrollMarginX:["scrollMarginLeft","scrollMarginRight"],scrollMarginY:["scrollMarginTop","scrollMarginBottom"],scrollPaddingX:["scrollPaddingLeft","scrollPaddingRight"],scrollPaddingY:["scrollPaddingTop","scrollPaddingBottom"],size:["width","height"]},h={color:"colors",background:"colors",backgroundColor:"colors",borderColor:"colors",caretColor:"colors",columnRuleColor:"colors",outlineColor:"colors",textDecorationColor:"colors",opacity:"opacities",transition:"transitions",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",scrollMargin:"space",scrollMarginTop:"space",scrollMarginRight:"space",scrollMarginBottom:"space",scrollMarginLeft:"space",scrollMarginX:"space",scrollMarginY:"space",scrollPadding:"space",scrollPaddingTop:"space",scrollPaddingRight:"space",scrollPaddingBottom:"space",scrollPaddingLeft:"space",scrollPaddingX:"space",scrollPaddingY:"space",inset:"space",insetBlock:"space",insetBlockEnd:"space",insetBlockStart:"space",insetInline:"space",insetInlineEnd:"space",insetInlineStart:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",borderBlock:"borders",borderBlockColor:"colors",borderBlockEnd:"borders",borderBlockEndColor:"colors",borderBlockEndStyle:"borderStyles",borderBlockEndWidth:"borderWidths",borderBlockStart:"borders",borderBlockStartColor:"colors",borderBlockStartStyle:"borderStyles",borderBlockStartWidth:"borderWidths",borderBlockStyle:"borderStyles",borderBlockWidth:"borderWidths",borderEndEndRadius:"radii",borderEndStartRadius:"radii",borderInline:"borders",borderInlineColor:"colors",borderInlineEnd:"borders",borderInlineEndColor:"colors",borderInlineEndStyle:"borderStyles",borderInlineEndWidth:"borderWidths",borderInlineStart:"borders",borderInlineStartColor:"colors",borderInlineStartStyle:"borderStyles",borderInlineStartWidth:"borderWidths",borderInlineStyle:"borderStyles",borderInlineWidth:"borderWidths",borderStartEndRadius:"radii",borderStartStartRadius:"radii",columnRuleWidth:"borderWidths",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",blockSize:"sizes",inlineSize:"sizes",maxBlockSize:"sizes",maxInlineSize:"sizes",minBlockSize:"sizes",minInlineSize:"sizes",columnWidth:"sizes",fill:"colors",stroke:"colors"},m=function(e,t){if("number"!=typeof t||t>=0){if("string"==typeof t&&t.startsWith("-")){var n=t.substring(1),o=s(e,n,n);return"number"==typeof o?-1*o:"-"+o}return s(e,t,t)}var i=Math.abs(t),a=s(e,i,i);return"string"==typeof a?"-"+a:-1*Number(a)},g=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","top","bottom","left","right"].reduce(function(e,t){var n;return o({},e,((n={})[t]=m,n))},{}),y=function e(t){return void 0===t&&(t={}),function(n){void 0===n&&(n={});var m,y=o({},c,"theme"in n?n.theme:n),v=(m=l("function"==typeof t?t(y):t,y),function(e){var t={},n=[null].concat((e&&e.breakpoints||u).map(function(e){return e.includes("@media")?e:"@media screen and (min-width: "+e+")"}));for(var o in m){var i=m[o];if("function"==typeof i&&(i=i(e||{})),!1!==i&&null!=i){if(!Array.isArray(i)){t[o]=i;continue}for(var a=0;a<i.slice(0,n.length).length;a++){var s=n[a];if(!s){t[o]=i[a];continue}t[s]=t[s]||{},null!=i[a]&&(t[s][o]=i[a])}}}return t})(y),b={};for(var A in v){var w=v[A],x="function"==typeof w?w(y):w;if(x&&"object"==typeof x){if(a(x)){b[A]=x[i];continue}b[A]=e(x)(y);continue}var C=A in d?d[A]:A,S=C in h?h[C]:void 0,_=S?null==y?void 0:y[S]:s(y,C,{}),k=s(g,C,s)(_,x,x);if(C in p)for(var T=p[C],R=0;R<T.length;R++)b[T[R]]=k;else b[C]=k}return b}}},95766:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],o=t[1];return(n+o)*3/4-o},t.toByteArray=function(e){var t,n,a=u(e),s=a[0],l=a[1],c=new i((s+l)*3/4-l),d=0,p=l>0?s-4:s;for(n=0;n<p;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,a=[],s=0,l=o-i;s<l;s+=16383)a.push(function(e,t,o){for(var i,a=[],s=t;s<o;s+=3)a.push(n[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>l?l:s+16383));return 1===i?a.push(n[(t=e[o-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[o-2]<<8)+e[o-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var o=n===t?0:4-n%4;return[n,o]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";let o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|g(e,t),o=s(n),i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);let i=function(e){var t;if(l.isBuffer(e)){let t=0|m(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|m(e))}function p(e){let t=e.length<0?0:0|m(e.length),n=s(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(e,t,n){let o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),l.prototype),o}function m(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(i)return o?-1:F(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let o=t;o<n;++o)i+=W[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return function(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}(this,t,n);case"latin1":case"binary":return function(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}(this,t,n);case"base64":var a,s;return a=t,s=n,0===a&&s===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let o=e.slice(t,n),i="";for(let e=0;e<o.length-1;e+=2)i+=String.fromCharCode(o[e]+256*o[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){let o=e[t];e[t]=e[n],e[n]=o}function b(e,t,n,o,i){var a;if(0===e.length)return -1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:A(e,t,n,o,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function A(e,t,n,o,i){let a,s=1,l=e.length,u=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;s=2,l/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let o=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===o?0:a-o)){if(-1===o&&(o=a),a-o+1===u)return o*s}else -1!==o&&(a-=a-o),o=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){let n=!0;for(let o=0;o<u;o++)if(c(e,a+o)!==c(t,o)){n=!1;break}if(n)return a}return -1}function w(e,t,n){n=Math.min(e.length,n);let o=[],i=t;for(;i<n;){let t=e[i],a=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,o,l,u;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(n=e[i+1]))==128&&(u=(31&t)<<6|63&n)>127&&(a=u);break;case 3:n=e[i+1],o=e[i+2],(192&n)==128&&(192&o)==128&&(u=(15&t)<<12|(63&n)<<6|63&o)>2047&&(u<55296||u>57343)&&(a=u);break;case 4:n=e[i+1],o=e[i+2],l=e[i+3],(192&n)==128&&(192&o)==128&&(192&l)==128&&(u=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&l)>65535&&u<1114112&&(a=u)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,o.push(a>>>10&1023|55296),a=56320|1023&a),o.push(a),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function C(e,t,n,o,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+o>e.length)throw RangeError("Index out of range")}function S(e,t,n,o,i){j(t,o,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function _(e,t,n,o,i){j(t,o,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function k(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function T(e,t,n,o,a){return t=+t,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function R(e,t,n,o,a){return t=+t,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,o,52,8),n+8}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(U(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let o=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(U(t,Uint8Array))i+t.length>o.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else if(l.isBuffer(t))t.copy(o,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return o},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(U(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let a=i-o,s=n-t,u=Math.min(a,s),c=this.slice(o,i),d=e.slice(t,n);for(let e=0;e<u;++e)if(c[e]!==d[e]){a=c[e],s=d[e];break}return a<s?-1:s<a?1:0},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){var i,a,s,l,u,c,d,p;if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let m=!1;for(;;)switch(o){case"hex":return function(e,t,n,o){let i;n=Number(n)||0;let a=e.length-n;o?(o=Number(o))>a&&(o=a):o=a;let s=t.length;for(o>s/2&&(o=s/2),i=0;i<o;++i){let o=parseInt(t.substr(2*i,2),16);if(o!=o)break;e[n+i]=o}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,B(F(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,l=n,B(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,s,l);case"base64":return u=t,c=n,B(N(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,p=n,B(function(e,t){let n,o;let i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)o=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(o);return i}(e,this.length-d),this,d,p);default:if(m)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),m=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e],i=1,a=0;for(;++a<t&&(i*=256);)o+=this[e+a]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&L(e,this.length-8);let o=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(o)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&L(e,this.length-8);let o=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e],i=1,a=0;for(;++a<t&&(i*=256);)o+=this[e+a]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=t,i=1,a=this[e+--o];for(;o>0&&(i*=256);)a+=this[e+--o]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&L(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),l.prototype.readBigInt64BE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&L(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){let o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){let o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=z(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=z(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){let o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}let i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){let o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}let i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=z(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=z(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);let i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){let i;if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){let t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let a=l.isBuffer(e)?e:l.from(e,o),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};let O={};function I(e,t,n){O[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function M(e){let t="",n=e.length,o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function j(e,t,n,o,i,a){if(e>n||e<t){let o;let i="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new O.ERR_OUT_OF_RANGE("value",o,e)}D(i,"offset"),(void 0===o[i]||void 0===o[i+a])&&L(i,o.length-(a+1))}function D(e,t){if("number"!=typeof e)throw new O.ERR_INVALID_ARG_TYPE(t,"number",e)}function L(e,t,n){if(Math.floor(e)!==e)throw D(e,n),new O.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new O.ERR_BUFFER_OUT_OF_BOUNDS;throw new O.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}I("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),I("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),I("ERR_OUT_OF_RANGE",function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=M(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=M(i)),i+="n"),o+=` It must be ${t}. Received ${i}`},RangeError);let P=/[^+/0-9A-Za-z-_]/g;function F(e,t){let n;t=t||1/0;let o=e.length,i=null,a=[];for(let s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===o){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function N(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let W=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function z(e){return"undefined"==typeof BigInt?V:e}function V(){throw Error("BigInt not supported")}},44005:function(e,t,n){var o,i=n(48834).lW,a=n(34406);o=function(e,t,n,o,s,l,u,c,d,p,h,m,g,y){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,(function(t){return e[t]}).bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",function(){return nI}),n.d(t,"Cloudinary",function(){return nU}),n.d(t,"Condition",function(){return tf}),n.d(t,"Configuration",function(){return tg}),n.d(t,"crc32",function(){return A}),n.d(t,"Expression",function(){return tl}),n.d(t,"FetchLayer",function(){return tR}),n.d(t,"HtmlTag",function(){return t8}),n.d(t,"ImageTag",function(){return nu}),n.d(t,"Layer",function(){return ty}),n.d(t,"PictureTag",function(){return nb}),n.d(t,"SubtitlesLayer",function(){return t_}),n.d(t,"TextLayer",function(){return tw}),n.d(t,"Transformation",function(){return t6}),n.d(t,"utf8_encode",function(){return b}),n.d(t,"Util",function(){return v}),n.d(t,"VideoTag",function(){return nE});var o,s,l,u,c,d,p,h,m,g,y={};n.r(y),n.d(y,"VERSION",function(){return el}),n.d(y,"CF_SHARED_CDN",function(){return eu}),n.d(y,"OLD_AKAMAI_SHARED_CDN",function(){return ec}),n.d(y,"AKAMAI_SHARED_CDN",function(){return ed}),n.d(y,"SHARED_CDN",function(){return ef}),n.d(y,"DEFAULT_TIMEOUT_MS",function(){return ep}),n.d(y,"DEFAULT_POSTER_OPTIONS",function(){return eh}),n.d(y,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return em}),n.d(y,"SEO_TYPES",function(){return eg}),n.d(y,"DEFAULT_IMAGE_PARAMS",function(){return ey}),n.d(y,"DEFAULT_VIDEO_PARAMS",function(){return ev}),n.d(y,"DEFAULT_VIDEO_SOURCES",function(){return eb}),n.d(y,"DEFAULT_EXTERNAL_LIBRARIES",function(){return eA}),n.d(y,"PLACEHOLDER_IMAGE_MODES",function(){return ew}),n.d(y,"ACCESSIBILITY_MODES",function(){return ex}),n.d(y,"URL_KEYS",function(){return eC});var v={};n.r(v),n.d(v,"getSDKAnalyticsSignature",function(){return k}),n.d(v,"getAnalyticsOptions",function(){return T}),n.d(v,"assign",function(){return O.a}),n.d(v,"cloneDeep",function(){return M.a}),n.d(v,"compact",function(){return D.a}),n.d(v,"difference",function(){return P.a}),n.d(v,"functions",function(){return N.a}),n.d(v,"identity",function(){return U.a}),n.d(v,"includes",function(){return z.a}),n.d(v,"isArray",function(){return K.a}),n.d(v,"isPlainObject",function(){return H.a}),n.d(v,"isString",function(){return Z.a}),n.d(v,"merge",function(){return Q.a}),n.d(v,"contains",function(){return z.a}),n.d(v,"isIntersectionObserverSupported",function(){return ei}),n.d(v,"isNativeLazyLoadSupported",function(){return ea}),n.d(v,"detectIntersection",function(){return es}),n.d(v,"omit",function(){return e_}),n.d(v,"allStrings",function(){return ek}),n.d(v,"without",function(){return eE}),n.d(v,"isNumberLike",function(){return eT}),n.d(v,"smartEscape",function(){return eR}),n.d(v,"defaults",function(){return eO}),n.d(v,"objectProto",function(){return eI}),n.d(v,"objToString",function(){return eM}),n.d(v,"isObject",function(){return ej}),n.d(v,"funcTag",function(){return eD}),n.d(v,"reWords",function(){return eP}),n.d(v,"camelCase",function(){return eF}),n.d(v,"snakeCase",function(){return eN}),n.d(v,"convertKeys",function(){return eB}),n.d(v,"withCamelCaseKeys",function(){return eU}),n.d(v,"withSnakeCaseKeys",function(){return eW}),n.d(v,"base64Encode",function(){return ez}),n.d(v,"base64EncodeURL",function(){return eV}),n.d(v,"extractUrlParams",function(){return eK}),n.d(v,"patchFetchFormat",function(){return e$}),n.d(v,"optionConsume",function(){return eH}),n.d(v,"isEmpty",function(){return eq}),n.d(v,"isAndroid",function(){return eZ}),n.d(v,"isEdge",function(){return eY}),n.d(v,"isChrome",function(){return eQ}),n.d(v,"isSafari",function(){return eJ}),n.d(v,"isElement",function(){return X.a}),n.d(v,"isFunction",function(){return et.a}),n.d(v,"trim",function(){return er.a}),n.d(v,"getData",function(){return eX}),n.d(v,"setData",function(){return e0}),n.d(v,"getAttribute",function(){return e1}),n.d(v,"setAttribute",function(){return e2}),n.d(v,"removeAttribute",function(){return e5}),n.d(v,"setAttributes",function(){return e3}),n.d(v,"hasClass",function(){return e6}),n.d(v,"addClass",function(){return e4}),n.d(v,"getStyles",function(){return e8}),n.d(v,"cssExpand",function(){return e7}),n.d(v,"domStyle",function(){return e9}),n.d(v,"curCSS",function(){return te}),n.d(v,"cssValue",function(){return tt}),n.d(v,"augmentWidthOrHeight",function(){return tn}),n.d(v,"getWidthOrHeight",function(){return to}),n.d(v,"width",function(){return ti});var b=function(e){var t,n,o,i,a,s,l,u;if(null==e)return"";for(s=e+"",u="",a=void 0,o=void 0,l=0,a=o=0,l=s.length,i=0;i<l;)t=s.charCodeAt(i),n=null,t<128?o++:n=t>127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(o>a&&(u+=s.slice(a,o)),u+=n,a=o=i+1),i++;return o>a&&(u+=s.slice(a,l)),u},A=function(e){var t,n,o,i,a,s;for(e=b(e),i="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",a=0,s=0,t=-1,n=0,o=e.length;n<o;)s=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*s,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function w(e,t,n){return(t>>=0,n=String(void 0!==n?n:" "),e.length>t)?String(e):((t-=e.length)>n.length&&(n+=function(e,t){for(var n="";t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C=0,S={};function _(e){var t="",n=e.split(".").length,o=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(function(e){return w(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=w(o,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(function(e){t+=S[e]}),t}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t,n=(t=e.techVersion.split("."),"".concat(t[0],".").concat(t[1])),o=_(e.sdkSemver),i=_(n),a=e.feature,s=e.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(e){return"E"}}function T(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}((function(e){if(Array.isArray(e))return x(e)})(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return x(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(e){var t=C.toString(2);S[t=w(t,6,"0")]=e,C++});var R=n("lodash/assign"),O=n.n(R),I=n("lodash/cloneDeep"),M=n.n(I),j=n("lodash/compact"),D=n.n(j),L=n("lodash/difference"),P=n.n(L),F=n("lodash/functions"),N=n.n(F),B=n("lodash/identity"),U=n.n(B),W=n("lodash/includes"),z=n.n(W),V=n("lodash/isArray"),K=n.n(V),$=n("lodash/isPlainObject"),H=n.n($),q=n("lodash/isString"),Z=n.n(q),Y=n("lodash/merge"),Q=n.n(Y),J=n("lodash/isElement"),X=n.n(J),ee=n("lodash/isFunction"),et=n.n(ee),en=n("lodash/trim"),er=n.n(en);function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ei(){return("undefined"==typeof window?"undefined":eo(window))==="object"&&window.IntersectionObserver}function ea(){return("undefined"==typeof HTMLImageElement?"undefined":eo(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function es(e,t){try{if(ea()||!ei()){t();return}var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t(),n.unobserve(e.target))})},{threshold:[0,.01]});n.observe(e)}catch(e){t()}}var el="2.5.0",eu="d3jpl91pxevbkh.cloudfront.net",ec="cloudinary-a.akamaihd.net",ed="res.cloudinary.com",ef=ed,ep=1e4,eh={format:"jpg",resource_type:"video"},em=["webm","mp4","ogv"],eg={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ey={resource_type:"image",transformation:[],type:"upload"},ev={fallback_content:"",resource_type:"video",source_transformation:{},source_types:em,transformation:[],type:"upload"},eb=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],eA={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ew={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},ex={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eC=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function eS(e){return(eS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e_(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!z()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var ek=function(e){return e.length&&e.every(Z.a)},eE=function(e,t){return e.filter(function(e){return e!==t})},eT=function(e){return null!=e&&!isNaN(parseFloat(e))},eR=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,function(e){return e.split("").map(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}).join("")})},eO=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(function(e,t){var n,o;for(n in t)o=t[n],void 0===e[n]&&(e[n]=o);return e},e)},eI=Object.prototype,eM=eI.toString,ej=function(e){var t;return t=eS(e),!!e&&("object"===t||"function"===t)},eD="[object Function]",eL=function(e){return ej(e)&&eM.call(e)===eD},eP=RegExp((l="[A-Z]")+"+(?="+l+(s="[a-z]+")+")|"+l+"?"+s+"|"+l+"+|[0-9]+","g"),eF=function(e){var t=e.match(eP);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eN=function(e){var t=e.match(eP);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eB=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eq(i)||(n[i]=o);return n},eU=function(e){return eB(e,eF)},eW=function(e){return eB(e,eN)},ez="undefined"!=typeof btoa&&eL(btoa)?btoa:void 0!==i&&eL(i)?function(e){return e instanceof i||(e=new i.from(String(e),"binary")),e.toString("base64")}:function(e){throw Error("No base64 encoding function found")},eV=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return ez(e)};function eK(e){return eC.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function e$(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eH(e,"format"))}function eH(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eq(e){if(null==e)return!0;if("number"==typeof e.length)return 0===e.length;if("number"==typeof e.size)return 0===e.size;if("object"==eS(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function eG(){return navigator&&navigator.userAgent||""}function eZ(){var e=eG();return/Android/i.test(e)}function eY(){var e=eG();return/Edg/i.test(e)}function eQ(){var e=eG();return!eY()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eJ(){var e=eG();return/Safari/i.test(e)&&!eQ()&&!eZ()&&!eY()}var eX=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute("data-".concat(t));case!et()(e.getAttr):return e.getAttr("data-".concat(t));case!et()(e.data):return e.data(t);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t)}},e0=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!et()(e.setAttr):return e.setAttr("data-".concat(t),n);case!et()(e.data):return e.data(t,n);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t,n)}},e1=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute(t);case!et()(e.attr):return e.attr(t);case!et()(e.getAttr):return e.getAttr(t)}},e2=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute(t,n);case!et()(e.attr):return e.attr(t,n);case!et()(e.setAttr):return e.setAttr(t,n)}},e5=function(e,t){switch(!1){case null!=e:return;case!et()(e.removeAttribute):return e.removeAttribute(t);default:return e2(e,void 0)}},e3=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(e2(e,n,i)):o.push(e5(e,n));return o},e6=function(e,t){if(X()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e4=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=er()("".concat(e.className," ").concat(t))},e8=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e7=["Top","Right","Bottom","Left"];u=function(e,t){var n,o;return n=9===e.nodeType?e.documentElement:e,e===(o=t&&t.parentNode)||!!(o&&1===o.nodeType&&n.contains(o))};var e9=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},te=function(e,t,n){var o,i,a,s,l,c;return(s=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e8(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||u(e.ownerDocument,e)||(a=e9(e,t)),tr.test(a)&&s.test(t)&&(c=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=c,l.minWidth=i,l.maxWidth=o)),void 0!==a)?a+"":a},tt=function(e,t,n,o){var i;return(i=te(e,t,o),n)?parseFloat(i):i},tn=function(e,t,n,o,i){var a,s,l,u,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,s=(u="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<s;a++)l=u[a],"margin"===n&&(c+=tt(e,n+l,!0,i)),o?("content"===n&&(c-=tt(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=tt(e,"border".concat(l,"Width"),!0,i))):(c+=tt(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=tt(e,"border".concat(l,"Width"),!0,i)));return c},tr=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),to=function(e,t,n){var o,i,a,s;if(s=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e8(e),o="border-box"===tt(e,"boxSizing",!1,i),a<=0||null==a){if(((a=te(e,t,i))<0||null==a)&&(a=e.style[t]),tr.test(a))return a;s=o&&a===e.style[t],a=parseFloat(a)||0}return a+tn(e,t,n||(o?"border":"content"),s,i)},ti=function(e){return to(e,"width","content")};function ta(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var ts=function(){var e,t;function n(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.expressions=[],null!=e&&this.expressions.push(n.normalize(e))}return e=[{key:"serialize",value:function(){return n.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,o){return null!=n.OPERATORS[t]&&(t=n.OPERATORS[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(o)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],t=[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,function(e){return n.OPERATORS[e]});var o="("+Object.keys(n.PREDEFINED_VARS).map(function(e){return":".concat(e,"|").concat(e)}).join("|")+")",i=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(o),"g");return(e=e.replace(i,function(e){return n.PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],e&&ta(n.prototype,e),t&&ta(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();ts.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ts.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},ts.BOUNDRY="[ _]+";var tl=ts;function tu(e){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tc(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=td(i);return e=t?Reflect.construct(n,arguments,td(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tu(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return n=[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(tl);function tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var th=function(){var e;function t(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.configuration=null==e?{}:M()(e),eO(this.configuration,tm)}return e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return O()(this.configuration,M()(e)),this}},{key:"fromDocument",value:function(){var e,t,n,o;if(o="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=o.length;t<n;t++)e=o[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,o=this;return null!=a&&a.env&&a.env.CLOUDINARY_URL&&(e=a.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("="))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tp(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tp(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];null==a&&(a=!0),o.configuration[i]=a}))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case!Z()(e):return this.get(e);case!H()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return M()(this.configuration)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),tm={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"};th.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var tg=th,ty=function(){var e;function t(e){var n=this;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach(function(t){var o;return n.options[t]=null!=(o=e[t])?o:e[eN(t)]})}return e=[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e;if(e=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),D()(e).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tv(e){return(tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tb(e,t){return(tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){return(tA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tb(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tA(i);return e=t?Reflect.construct(n,arguments,tA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tv(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),n=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"],null!=e&&n.forEach(function(n){var o;return t.options[n]=null!=(o=e[n])?o:e[eN(n)]}),t.options.resourceType="text",t}return n=[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"textStyle",value:function(e){return this.options.textStyle=e,this}},{key:"toString",value:function(){var e,t,n,o,i,a,s,l,u,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eq(o),n=!eq(l),t&&n||!t&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,s=0,c=eR(this.options.text,/[,\/]/g),u="";a=i.exec(c);)u+=eR(c.slice(s,a.index))+a[0],s=a.index+a[0].length;u+=eR(c.slice(s))}return e=[this.options.resourceType,l,o,u],D()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eq(this.options.textStyle))return this.options.textStyle;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),eq(this.options.letterSpacing)&&!eT(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eq(this.options.lineSpacing)&&!eT(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eq(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eq(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eq(D()(e))){if(eq(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eq(this.options.fontSize)&&!eT(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=D()(e).join("_")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ty);function tx(e){return(tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tC(e,t){return(tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tC(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tS(o);return e=t?Reflect.construct(n,arguments,tS(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tx(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).options.resourceType="subtitles",t}return Object.defineProperty(o,"prototype",{writable:!1}),o}(tw);function tk(e){return(tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tE(e,t){return(tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tT(e){return(tT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tE(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tT(i);return e=t?Reflect.construct(n,arguments,tT(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tk(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),Z()(e)?t.options.url=e:(null!=e?e.url:void 0)&&(t.options.url=e.url),t}return n=[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat(eV(this.options.url))}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ty);function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tI(){return(tI="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tL(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function tM(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tj(e,t)}function tj(e,t){return(tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=tL(e);return n=t?Reflect.construct(o,arguments,tL(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tO(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function tL(e){return(tL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tP(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tF(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tN(e,t,n){return t&&tF(e.prototype,t),n&&tF(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tB=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.a;tP(this,e),this.name=t,this.shortName=n,this.process=o}return tN(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=K()(e)||H()(e)||Z()(e)?!eq(e):null!=e,null!=this.shortName&&t)?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:K()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}]),e}(),tU=function(e){tM(n,e);var t=tD(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tP(this,n),(i=t.call(this,e,o,s)).sep=a,i}return tN(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eq(e))return"";if(Z()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return et()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return K()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||K()(e)?tI(tL(n.prototype),"set",this).call(this,e):tI(tL(n.prototype),"set",this).call(this,[e])}}]),n}(tB),tW=function(e){tM(n,e);var t=tD(n);function n(e){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tP(this,n),(o=t.call(this,e,i,s)).sep=a,o}return tN(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eq(n))return t;if(ek(n)){var o=n.join(this.sep);eq(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return Z()(t)&&!eq(t)?"".concat(e.shortName,"_").concat(t):et()(t.serialize)?t.serialize():H()(t)&&!eq(t)?new t6(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,K()(this.origValue))?tI(tL(n.prototype),"set",this).call(this,this.origValue):tI(tL(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tB),tz=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tP(this,n),t.call(this,e,o,i)}return tN(n,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return tl.normalize(e)}}]),n}(tB),tV=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.a;return tP(this,n),t.call(this,e,o,i)}return tN(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tB),tK=function(e){tM(n,e);var t=tD(n);function n(){return tP(this,n),t.apply(this,arguments)}return tN(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof ty)e=this.origValue;else if(H()(this.origValue)){var e,t=eU(this.origValue);e="text"===t.resourceType||null!=t.text?new tw(t):"subtitles"===t.resourceType?new t_(t):"fetch"===t.resourceType||null!=t.url?new tR(t):new ty(t)}else e=Z()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tR(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tw(e).textStyleIdentifier()}}]),n}(tB);function t$(e){return(t$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tH(e,t){return(tH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tq(e){return(tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tZ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tQ(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tJ(e,t,n){return t&&tQ(e.prototype,t),n&&tQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}),e}var t0=function(){function e(t){var n,o;tY(this,e),n=void 0,o={},this.toOptions=function(e){var t={};if(null==e&&(e=!0),Object.keys(o).forEach(function(e){return t[e]=o[e].origValue}),tX(t,this.otherOptions),e&&!eq(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tX(t={},this.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&this.fromOptions("function"==typeof e.toOptions?e.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(e,t,n,i,a){return null==a&&(a=et()(i)?i:U.a),o[t]=new tB(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tV(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tz(t,n,a).set(e),this},this.arrayParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=t2(arguments),o[t]=new tU(t,n,i,a).set(e),this},this.transformationParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=t2(arguments),o[t]=new tW(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tK(t,n).set(e),this},this.getValue=function(e){var t=o[e]&&o[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return o[e]},this.remove=function(e){var t;switch(!1){case null==o[e]:return t=o[e],delete o[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return(function(){var t;for(e in t=[],o)null!=e&&t.push(e.match(t1)?e:eN(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),H()(e[t])&&(e[t]=M()(e[t]));return eq(this.chained)||((n=this.chained.map(function(e){return e.toPlainObject()})).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(o).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return o={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return tJ(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(Z()(t)||K()(t))&&(t={transformation:t}),(t=M()(t,function(t){if(t instanceof e||t instanceof Layer)return new t.clone})).if&&(this.set("if",t.if),delete t.if),t){var o=t[n];null!=o&&(n.match(t1)?"$attr"!==n&&this.set("variable",n,o):this.set(n,o))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach(function(e){return n.set(e,t.get(e).origValue)}),this}},{key:"set",value:function(e){var t;t=eF(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return z()(t3.methods,t)?this[t].apply(this,o):this.otherOptions[e]=o[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,o,i,a,s,l,u,c,d,p,h,m,g,y,v;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),m=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,y=function(e){var t,n,o,i,a;if(!K()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var s=tG(e[t],2);o=s[0],a=s[1],i.push("".concat(o,"_").concat(tl.normalize(a)))}return i}(null!=(s=this.get("variables"))?s.value():void 0),o=P()(o,["transformation","if","variables"]),v=[],p=[],n=o.length;t<n;t++)(d=o[t]).match(t1)?v.push(d+"_"+tl.normalize(null!=(l=this.get(d))?l.value():void 0)):p.push(null!=(u=this.get(d))?u.serialize():void 0);switch(!1){case!Z()(m):p.push(m);break;case!K()(m):c=c.concat(m)}return p=function(){var e,t,n;for(e=0,n=[],t=p.length;e<t;e++)g=p[e],(K()(g)&&!eq(g)||!K()(g)&&g)&&n.push(g);return n}(),p=v.sort().concat(y).concat(p.sort()),"if_end"===e?p.push(e):eq(e)||p.unshift(e),eq(h=D()(p).join(this.param_separator))||c.push(h),D()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,s,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],s=eN(e),z()(t3.PARAM_NAMES,s)||z()(eC,s)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eF(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||z()(["fit","limit","lfill"],this.getValue("crop")))&&(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==t.width&&(t.width=a),parseFloat(e)>=1&&null==t.height&&(t.height=e)),t}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return t3.methods}},{key:"isValidParamName",value:function(e){return t3.methods.indexOf(eF(e))>=0}}]),e}(),t1=/^\$[a-zA-Z0-9]+$/;function t2(e){var t;return(t=null!=e?e[e.length-1]:void 0,et()(t))?t:void 0}function t5(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}t0.prototype.trans_separator="/",t0.prototype.param_separator=",";var t3=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tH(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tq(o);return e=t?Reflect.construct(n,arguments,tq(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===t$(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){return tY(this,o),n.call(this,e)}return tJ(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",tl.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",tl.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tB.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",function(e){return H()(e)?(e=O()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tB.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tB.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",function(){return t5(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t5(e))?"fn_pre:".concat(e):e})}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":tl.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",tl.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",function(e){return Z()(e)?e:K()(e)?e.join("-"):e})}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?tl.normalize(e):null})}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,t,n,i,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(l){case"else":return this.chain(),this.param(l,"if","if");case"end":for(this.chain(),e=n=i=this.chained.length-1;n>=0&&"end"!==(t=this.chained[e].getValue("if"))&&(null==t||(a=o.new().if(t),this.chained[e].remove("if"),s=this.chained[e],this.chained[e]=o.new().transformation([a,s]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return tf.new().setParent(this);default:return this.param(l,"if","if",function(e){return tf.new(e).toString()})}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,o=tG(et()(null!=e?e.split:void 0)?e.split(".."):K()(e)?e:[null,null],2);if(n=o[0],t=o[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",tl.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",tl.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",tl.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(et()(null!=e?e.split:void 0)){var o=tG(e.split("x"),2);return n=o[0],t=o[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",tB.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?tl.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",tl.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",tl.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",tl.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(t0);t3.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],t3.PARAM_NAMES=t3.methods.map(eN).concat(tg.CONFIG_PARAMS);var t6=t3;function t4(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t8=function(){var e,t;function n(e,t,o){var i;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.name=e,this.publicId=t,null==o&&(H()(t)?(o=t,this.publicId=void 0):o={}),(i=new t6(o)).setParent(this),this.transformation=function(){return i}}return e=[{key:"htmlAttrs",value:function(e){var t,n;return(function(){var o,i;for(t in o=[],e)i=e[t],(n=Z()(i)?i.replace('"',""").replace("'","'"):i)&&o.push(n?!0===n?t:"".concat(t,'="').concat(n,'"'):void 0);return o})().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(e){return this.transformation().getValue(e)}},{key:"attributes",value:function(){var e=this.transformation().toHtmlAttributes();return Object.keys(e).forEach(function(t){H()(e[t])&&delete e[t]}),e.attributes&&(Q()(e,e.attributes),delete e.attributes),e}},{key:"setAttr",value:function(e,t){return this.transformation().set("html_".concat(e),t),this}},{key:"getAttr",value:function(e){return this.attributes()["html_".concat(e)]||this.attributes()[e]}},{key:"removeAttr",value:function(e){var t;return null!=(t=this.transformation().remove("html_".concat(e)))?t:this.transformation().remove(e)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var e="<"+this.name,t=this.htmlAttrs(this.attributes());return t&&t.length>0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,o;if(!et()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())o=n[t],e.setAttribute(t,o);return e}}],t=[{key:"new",value:function(e,t,n){return new this(e,t,n)}},{key:"isResponsive",value:function(e,t){var n;return n=eX(e,"src-cache")||eX(e,"src"),e6(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t4(n.prototype,e),t&&t4(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t7=["placeholder","accessibility"];function t9(e){return!!e&&!!e.match(/^https?:\//)}function ne(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function nt(e){var t,n,o,i,a,s,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=u)instanceof t6&&(t=t.toOptions()),"fetch"===(t=eO({},t,c,ey)).type&&(t.fetch_format=t.fetch_format||t.format),u=t,n=e,o=u.type,e=t9(n)||"fetch"!==o?n:(i=document.location.protocol+"//"+document.location.host,"?"===n[0]?i+=document.location.pathname:"/"!==n[0]&&(i+=document.location.pathname.replace(/\/[^\/]*$/,"/")),i+n);var d=(s=(a=u).cloud_name,l=a.url_suffix,s?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var p=function(e,t){if(t9(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,s,l,u,c,d,p=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t9(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),h=(s=(a=t||{}).placeholder,l=a.accessibility,u=new t6(function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(a,t7)),l&&ex[l]&&u.chain().effect(ex[l]),s&&("predominant-color"===s&&u.getValue("width")&&u.getValue("height")&&(s+="-pixel"),(ew[s]||ew.blur).forEach(function(e){return u.chain().transformation(e)})),u.serialize()),m=function(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",o="",i="res",a=".cloudinary.com",s="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",s=""),t.cdn_subdomain&&(i="res-"+(A(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==ec&&t.secure_distribution!==ef&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(A(e)%5+1)+".":"",a=t.cname),[n,o,i,a,s].join("")}(e,t),g=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),y=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,s=e.use_root_path,l=e.shorten,u=void 0===n?"image":n;if(H()(u)&&(u=(t=u).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(u=eg["".concat(u,"/").concat(i)],i=null,null==u))throw Error("URL Suffix only supported for ".concat(Object.keys(eg).join(", ")));if(s){if("image"===u&&"upload"===i||"images"===u)u=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===u&&"upload"===i&&(u="iu",i=null),[u,i].join("/")}(t);return e=function(e,t){if(t9(e))e=ne(e);else{try{e=decodeURIComponent(e)}catch(e){}e=ne(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),D()([m,y,g,h,p,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,u);if(u.urlAnalytics){var h=k(T(u)),m="?";p.indexOf("?")>=0&&(m="&"),p="".concat(p).concat(m,"_a=").concat(h)}if(u.auth_token){var g=p.indexOf("?")>=0?"&":"?";p="".concat(p).concat(g,"__cld_token__=").concat(u.auth_token)}return p}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nr=eq;function no(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={};if(nr(n))return i;var a=!t.sizes&&!0===n.sizes,s=!t.srcset;if(s||a){var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return arguments.length>2&&void 0!==arguments[2]&&arguments[2],function(e){var t,n=e.breakpoints||[];if(n.length)return n;var o=function(e){if(Array.isArray(e))return e}(t=[e.min_width,e.max_width,e.max_images].map(Number))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),3!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return nn(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(e,3)}}(t,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],s=o[2];if([i,a,s].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(i>a)throw"min_width must be less than max_width";if(s<=0)throw"max_images must be a positive integer";1===s&&(i=a);for(var l=Math.ceil((a-i)/Math.max(s-1,1)),u=i;u<a;u+=l)n.push(u);return n.push(a),n}(t)}(e,n,o);if(s){var u,c=n.transformation,d=(u=o,e$(u=M.a(u)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eK(o);return n=n||o,i.raw_transformation=new t6([Q.a({},n),{crop:"scale",width:t}]).toString(),nt(e,i)}(e,t,c,u)," ").concat(t,"w")}).join(", "));nr(d)||(i.srcset=d)}if(a){var p=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");nr(p)||(i.sizes=p)}}return i}function ni(e){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(){return(na="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nl(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ns(e,t){return(ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nl(i);return e=t?Reflect.construct(n,arguments,nl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ni(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"img",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){e=na(nl(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,s={};return Z()(a)?s.srcset=a:s=no(this.publicId,o,a,t),eq(s)||(delete e.width,delete e.height),Q()(e,s),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=nt(this.publicId,this.getOptions())),e}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nd(){return(nd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=np(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nf(e,t){return(nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function np(e){return(np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nf(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=np(i);return e=t?Reflect.construct(n,arguments,np(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"source",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,t,n=this.getOption("srcset"),o=nd(np(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Q()(o,no(this.publicId,o,n,a)),o.srcset||(o.srcset=nt(this.publicId,a)),!o.media&&a.media&&(o.media=(e=a.media,t=[],null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and "))),o}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nm(e){return(nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ng(){return(ng="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nv(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ny(e,t){return(ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){return(nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ny(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nv(i);return e=t?Reflect.construct(n,arguments,nv(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,"picture",e,n)).widthList=a,t}return n=[{key:"content",value:function(){var e=this;return this.widthList.map(function(t){var n=t.min_width,o=t.max_width,i=t.transformation,a=e.getOptions(),s=new t6(a);return s.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eK(a)).media={min_width:n,max_width:o},a.transformation=s,new nh(e.publicId,a).toHtml()}).join("")+new nu(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=ng(nv(i.prototype),"attributes",this).call(this);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return"</"+this.name+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nA(e){return(nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nw(){return(nw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nC(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nx(e,t){return(nx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nC(e){return(nC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nS=["source_types","source_transformation","fallback_content","poster","sources"],n_=["webm","mp4","ogv"],nk={format:"jpg",resource_type:"video"},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nx(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nC(i);return e=t?Reflect.construct(n,arguments,nC(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nA(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=eO({},t,ev),o.call(this,"video",e.replace(/\.(mp4|ogv|webm)$/,""),t)}return n=[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),o=this.transformation().getValue("fallback_content"),i=this.getOption("sources"),a=[];return K()(i)&&!eq(i)?a=i.map(function(t){var n=nt(e.publicId,eO({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eq(t)&&(t=n_),K()(t)&&(a=t.map(function(t){var o=nt(e.publicId,eO({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(o,t)}))),a.join("")+o}},{key:"attributes",value:function(){var e=this.getOption("source_types"),t=this.getOption("poster");if(void 0===t&&(t={}),H()(t)){var n=null!=t.public_id?ey:nk;t=nt(t.public_id||this.publicId,eO({},t,n,this.getOptions()))}var o=nw(nC(i.prototype),"attributes",this).call(this)||{};return o=e_(o,nS),!eq(this.getOption("sources"))||eq(e)||K()(e)||(o.src=nt(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=t&&(o.poster=t),o}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null;return eq(t)||(o="video/"+("ogv"===t?"ogg":t),eq(n)||(o+="; codecs="+(K()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:e,type:o})+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nR(e,t){return(nR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nO(e){return(nO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nR(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nO(i);return e=t?Reflect.construct(n,arguments,nO(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nT(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"meta",void 0,O()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},e))}return n=[{key:"closeTag",value:function(){return""}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nj=function(e,t){e.transformation?e.transformation.push({flags:[t]}):(e.flags||(e.flags=[]),"string"==typeof e.flags&&(e.flags=[e.flags]),e.flags.push(t))},nD=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ep,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=eA.seeThru),nj(e,"alpha")},nL=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,s=e.blobURL,l=e.videoURL,u=document.createElement("video");return u.style.visibility="hidden",u.position="absolute",u.x=0,u.y=0,u.src=s,u.setAttribute("data-video-url",l),t&&u.setAttribute("autoplay",t),n&&u.setAttribute("playsinline",n),o&&u.setAttribute("loop",o),i&&u.setAttribute("muted",i),i&&(u.muted=i),a&&u.setAttribute("poster",a),u.onload=function(){URL.revokeObjectURL(s)},u},nP=function(e,t,n,o){var i=window,a=i.seeThru,s=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,u){var c=s(function(){u({status:"error",message:"Timeout instantiating seeThru instance"})},t);if(a)var d=a.create(e).ready(function(){l(c);var e=d.getCanvas();e.style.width="100%",e.className+=" "+n,o&&d.play(),i(d)});else u({status:"error",message:"Error instantiating seeThru instance"})})},nF=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,s=n.loop,l=n.muted;return t+=".mp4",new Promise(function(u,c){var d,p,h;(d=n.externalLibraries.seeThru,p=n.max_timeout_ms,h=window.seeThru,new Promise(function(e,t){if(h)e();else{var n=document.createElement("script");n.src=d;var o=setTimeout(function(){t({status:"error",message:"Timeout loading script ".concat(d)})},p);n.onerror=function(){clearTimeout(o),t({status:"error",message:"Error loading ".concat(d)})},n.onload=function(){clearTimeout(o),e()},document.head.appendChild(n)}})).then(function(){var d,p;(d=t,p=n.max_timeout_ms,new Promise(function(e,t){var n=setTimeout(function(){t({status:"error",message:"Timeout loading Blob URL"})},p);("undefined"!=typeof fetch&&fetch?function(e){return new Promise(function(t,n){fetch(e).then(function(e){e.blob().then(function(e){t(e)})}).catch(function(){n("error")})})}:function(e){return new Promise(function(t,n){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(e){t(o.response)},o.onerror=function(){n("error")},o.open("GET",e,!0),o.send()})})(d).then(function(t){e({status:"success",payload:{blobURL:URL.createObjectURL(t)}})}).catch(function(){t({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(n)})})).then(function(d){var p=nL({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:s,muted:l});e.appendChild(p),nP(p,n.max_timeout_ms,n.class,n.autoplay).then(function(){u(e)}).catch(function(e){c(e)})}).catch(function(e){c({status:e.status,message:e.message})})}).catch(function(e){c({status:e.status,message:e.message})})})};function nN(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},d=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},c=function(e,t,n,o){var i,a,s,l;return(l=null!=(i=null!=(a=null!=(s=o.responsive_use_breakpoints)?s:o.responsive_use_stoppoints)?a:this.config("responsive_use_breakpoints"))?i:this.config("responsive_use_stoppoints"))&&("resize"!==l||o.resizing)?this.calc_breakpoint(e,t,n):t},h=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=ti(e));return t},g=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},m=function(e,t){var n;return e>(n=eX(t,"width")||0)&&(n=e,e0(t,"width",e)),n};var nB=function(){var e,t;function n(e){var t;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,t=new tg(e),this.config=function(e,n){return t.config(e,n)},this.fromDocument=function(){return t.fromDocument(),this},this.fromEnvironment=function(){return t.fromEnvironment(),this},this.init=function(){return t.init(),this}}return e=[{key:"url",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nt(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=O()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=O()({},eh,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t6(e).serialize()}},{key:"image",value:function(e){var t,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,i),t=null!=(o=null!=i.client_hints?i.client_hints:this.config("client_hints"))&&o,null!=i.src||t||n.setAttr("src",""),n=n.toDOM(),t||(e0(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new nu(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new nb(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nh(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Q()({},eh,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,O()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,O()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,O()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,O()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,O()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return new nE(e,t=eO({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=O()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,s=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Q()(this.responsiveConfig||{},e),i=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),l&&this.cloudinary_update("img.".concat(i,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(o=this.responsiveConfig.responsive_resize)?o:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,a=null;var u=function(){var e,t,n,o,l,u,c;return(e=null!=(t=null!=(n=s.responsiveConfig.responsive_debounce)?n:s.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return s.cloudinary_update("img.".concat(i),s.responsiveConfig)},c=function(){return o(),l()},u=function(){o(),a=setTimeout(c,e)},e)?u():l()};return window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eX(e,"breakpoints")||eX(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||p;return et()(o)?o(t,n):(Z()(o)&&(o=o.split(",").map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})),d(o,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||t===0/0)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(eq(e))return this;t=eO({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=O()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),o=n.source||n.src;delete n.source,delete n.src;var i=new t6(n).toHtmlAttributes();return e0(e,"src-cache",nt(o,n)),e.setAttribute("width",i.width),e.setAttribute("height",i.height),e});return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,o,i,a,s,l,u=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=K()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nM(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return nM(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nM(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():Z()(n)?Array.prototype.slice.call(document.querySelectorAll(n),0):[n],l=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var p=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach(function(n){if(/img/i.test(n.tagName)){var y=!0;if(d&&e4(n,l),!eq(i=eX(n,"src-cache")||eX(n,"src"))){i=g.call(u,i,p),t8.isResponsive(n,l)&&(0!==(o=h(n))?(/w_auto:breakpoints/.test(i)?(s=m(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(s)):y=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((s=m(s=c.call(u,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(s)):y=!1),e5(n,"width"),t.responsive_preserve_height||e5(n,"height")):y=!1);var v="lazy"===t.loading&&!u.isNativeLazyLoadSupported()&&u.isLazyLoadSupported()&&!e[0].getAttribute("src");(y||v)&&u.setAttributeIfExists(e[0],"width","data-width"),y&&!v&&e2(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&e2(e,t,o)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return t6.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,a){e||a({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),nD(o);var s=n.video_url(t,o);new Promise(function(e,t){eJ()&&e(!1);var n=document.createElement("video"),o=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');e("maybe"===o||"probably"===o)}).then(function(l){var u;l?(u=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):u=nF(e,s,o),u.then(function(){i(e)}).catch(function(e){a({status:e.status,message:e.message})})}).catch(function(e){a({status:e.status,message:e.message})})})}}],t=[{key:"new",value:function(e){return new this(e)}}],e&&nN(n.prototype,e),t&&nN(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();O()(nB,y);var nU=nB;t.default={ClientHintsMetaTag:nI,Cloudinary:nU,Condition:tf,Configuration:tg,crc32:A,Expression:tl,FetchLayer:tR,HtmlTag:t8,ImageTag:nu,Layer:ty,PictureTag:nb,SubtitlesLayer:t_,TextLayer:tw,Transformation:t6,utf8_encode:b,Util:v,VideoTag:nE}},"lodash/assign":function(t,n){t.exports=e},"lodash/cloneDeep":function(e,n){e.exports=t},"lodash/compact":function(e,t){e.exports=n},"lodash/difference":function(e,t){e.exports=o},"lodash/functions":function(e,t){e.exports=s},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=u},"lodash/isArray":function(e,t){e.exports=c},"lodash/isElement":function(e,t){e.exports=d},"lodash/isFunction":function(e,t){e.exports=p},"lodash/isPlainObject":function(e,t){e.exports=h},"lodash/isString":function(e,t){e.exports=m},"lodash/merge":function(e,t){e.exports=g},"lodash/trim":function(e,t){e.exports=y}})},e.exports=o(n(60019),n(9850),n(60417),n(17335),n(1910),n(23059),n(11886),n(86152),n(92301),n(61049),n(97030),n(85505),n(98537),n(5648))},36887:function(e,t,n){"use strict";n.d(t,{nk:function(){return V}});var o=n(2784),i=n(13980),a=n.n(i),s=n(44005);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var p=["public_id"],h=["publicId"],m=["children"],g=["children","accessibility","placeholder"],y=s.Util.camelCase,v=s.Util.withCamelCaseKeys,b=s.Util.isEmpty,A=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],w={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},x={m4a:"mp4",wav:"vnd.wav",m3u:"x-mpegurl",mp3:"mpeg",ogv:"ogg",aif:"x-aiff",aifc:"x-aiff",aiff:"x-aiff"},C=[].concat(s.Transformation.PARAM_NAMES,A).map(s.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),S=function(e){var t=d(Object.entries(e).reduce(function(e,t){var n,o=t[0],i=t[1];return null==i?e:l({},e,((n={})[o]=i,n))},{}),p),n=s.Util.withSnakeCaseKeys(t);return s.Cloudinary.new(n)},_=function(e,t){var n=e.publicId,o=d(e,h);return S(o)[t+"Tag"](n,s.Util.withSnakeCaseKeys(o))},k=function(e,t){var n=s.Util.withSnakeCaseKeys(t),o=S(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},T=function(e){var t=e.children,n=d(e,m),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=s.Util.camelCase(e),i=n[e];C[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},R=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},O=function(){return[].slice.call(arguments).reduce(function(e,t){return Object.keys(t||{}).forEach(function(n){var o=t[n];null!=o&&(e[n]=o)}),e},{})},I=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return R(e,"CloudinaryPlaceholder")})),t},M=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return R(e,"CloudinaryTransformation")}).map(function(t){var n=O(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},j=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=v(d(e,g)),((void 0===(n=s.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),u=M(o);b(u)||(l.transformation=u);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},D=(0,o.createContext)(),L=s.Util.camelCase,P=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).getContext=function(){return i.context||{}},i.onIntersect=function(){i.setState({isInView:!0})},i.getExtendedProps=function(e,t){return void 0===e&&(e=i.props),void 0===t&&(t=i.getContext()),O(t,e)},i.attachRef=function(e){var t=i.props.innerRef;i.element.current=e,t&&(t instanceof Function?t(e):t.current=e)},i.element=(0,o.createRef)(),i}return u(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);P.defaultProps={innerRef:null,publicId:null},P.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[y(e[n])]=a().any;return t}(s.Transformation.PARAM_NAMES.map(L)),{innerRef:a().any,publicId:a().string}),P.contextType=D;var F=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=T(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(D.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(P);F.propTypes=l({},P.propTypes,{includeOwnBody:a().bool}),F.defaultProps={includeOwnBody:!1};var N=["children","innerRef"],B="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),U=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).isResponsive=function(){var e=i.getExtendedProps(),t=e.responsive,n=e.width;return t&&"auto"!==n&&console.warn(B),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,j(e)),N);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=T(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,u=n.cloudinaryReactProps,c=_(l({},o,u),"image"),d=s.Util.withCamelCaseKeys(c.attributes()),p=l({},d,a);return p.dataSrc&&(p["data-src"]=p.dataSrc),t&&p.id&&(p.id+="-cld-placeholder"),i.shouldLazyLoad()&&(p["data-src"]=p.dataSrc||p.src,delete p.src),A.forEach(function(e){delete p[e]}),p},i.update=function(){if(i.shouldLazyLoad())s.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=k(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=k(i.element.current,e);i.listenerRemovers.push(o)}},i.shouldLazyLoad=function(){var e=i.getExtendedProps().loading;return!i.state.isInView&&("lazy"===e||"auto"===e)},i.handleImageLoaded=function(){var e=i.props.onLoad;i.setState({isLoaded:!0},function(){e&&e()})},i.renderPlaceholder=function(e,t){t.style=l({},t.style||{},{opacity:0,position:"absolute"}),t.onLoad=i.handleImageLoaded;var n=i.getAttributes({placeholder:e});return o.createElement(o.Fragment,null,i.renderImage(t),o.createElement("div",{style:{display:"inline"}},o.createElement("img",l({ref:i.placeholderElement},n))))},i.renderImage=function(e){return o.createElement("img",l({ref:i.attachRef},e))},i.getPlaceholderType=function(){var e=I(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}u(t,e);var n=t.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach(function(e){return e()})},n.render=function(){var e=this.state.isLoaded,t=this.getAttributes(),n=this.getPlaceholderType();return!e&&n?this.renderPlaceholder(n,t):this.renderImage(t)},t}(P);U.defaultProps={},U.propTypes=P.propTypes,U.propTypes.responsive=a().bool,U.propTypes.loading=a().string,U.propTypes.accessibility=a().string;var W=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t}(P);W.propTypes=P.propTypes,W.defaultProps={},W.exposesProps=!0,W.displayName="CloudinaryTransformation";var z=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],V=function(e){function t(){for(var t,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).mimeType="video",t.mimeSubTypes=w,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=s.Util.withSnakeCaseKeys(s.Util.defaults({},o,n,{resource_type:"video",format:i}));return e.url(t,a)},t.generateUsingSourceTypes=function(e,n,o,i,a){return a.map(function(a){return t.toSourceTag(e,n,o,i[a]||{},a,t.buildMimeType(a))})},t.generateUsingSources=function(e,n,o,i){return i.map(function(i){var a=i.transformations,s=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,s,t.buildMimeType(s,l))})},t.toSourceTag=function(e,n,i,a,s,l){var u=t.generateVideoUrl(e,n,i,a,s);return o.createElement("source",{key:u+l,src:u,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return s.Util.isEmpty(n)||(o+="; codecs="+(s.Util.isArray(n)?n.join(", "):n)),o},t.getVideoTagProps=function(){var e=t.getMergedProps(),n=e.publicId,o=e.children,i=e.sourceTypes,a=e.sourceTransformation,u=void 0===a?{}:a,c=e.sources,p=d(e,z),h=T(p=O(p,{})),m=h.cloudinaryProps,g=h.cloudinaryReactProps,y=h.nonCloudinaryProps;p=l({},m,g);var v=s.Util.withSnakeCaseKeys(p),b=s.Cloudinary.new(v),A=b.videoTag(n,p).attributes();A=l({},s.Util.withCamelCaseKeys(A),y);var w=j(l({},p,{children:o})),x=null;return s.Util.isArray(c)&&!s.Util.isEmpty(c)?x=t.generateUsingSources(b,n,w,c):s.Util.isArray(i)?x=t.generateUsingSourceTypes(b,n,w,u,i):A.src=t.generateVideoUrl(b,n,w,u[i]||{},i),{sources:x,tagAttributes:A}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}u(t,e);var n=t.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var e=this.props,t=e.fallback,n=e.children,i=this.getVideoTagProps(),a=i.tagAttributes,s=i.sources;return o.createElement("video",l({ref:this.attachRef},a),s,t,n)},t}(P);V.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},V.defaultProps={sourceTypes:s.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var K=function(e){function t(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).mimeType="audio",t.mimeSubTypes=x,t}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),s=a.tagAttributes,u=a.sources;return delete s.poster,o.createElement("audio",l({ref:t},s),u,n,i)},t}(V);K.propTypes={publicId:a().string},K.defaultProps={sourceTypes:["aac","mp3","ogg"]};var $=function(e){return null};$.propTypes={type:a().string},$.defaultProps={type:"blur"},$.displayName="CloudinaryPlaceholder"},6277:function(e,t,n){"use strict";function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{W:function(){return o}}),t.Z=o},39714:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=o;var c,d,p=Array.isArray(n);return p!==Array.isArray(e)?o(n,u):p?u.arrayMerge(e,n,u):(d={},(c=u).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(e,t)&&c.isMergeableObject(n[t])?d[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,c)(e[t],n[t],c):d[t]=o(n[t],c))}),d)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},85978:function(e,t,n){var o,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(o=(function(){return a}).call(t,n,t,e))&&(e.exports=o)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;0!=i--;){var o,i,a,s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},73463:function(e,t,n){"use strict";var o=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return o.isMemo(e)?s:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var i=m(n);i&&i!==g&&e(t,i,o)}var s=d(n);p&&(s=s.concat(p(n)));for(var l=u(t),y=u(n),v=0;v<s.length;++v){var b=s[v];if(!a[b]&&!(o&&o[b])&&!(y&&y[b])&&!(l&&l[b])){var A=h(n,b);try{c(t,b,A)}catch(e){}}}}return t}},43459:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,A=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case l:case s:case m:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case y:case u:return e;default:return t}}case i:return t}}}function S(e){return C(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||C(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===A||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b)},t.typeOf=C},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){t.read=function(e,t,n,o,i){var a,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,d=-7,p=n?i-1:0,h=n?-1:1,m=e[t+p];for(p+=h,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+p],p+=h,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=256*s+e[t+p],p+=h,d-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,o),a-=c}return(m?-1:1)*s*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var s,l,u,c=8*a-i-1,d=(1<<c)-1,p=d>>1,h=23===i?5960464477539062e-23:0,m=o?0:a-1,g=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?t+=h/u:t+=h*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=d?(l=0,s=d):s+p>=1?(l=(t*u-1)*Math.pow(2,i),s+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=255&l,m+=g,l/=256,i-=8);for(s=s<<i|l,c+=i;c>0;e[n+m]=255&s,m+=g,s/=256,c-=8);e[n+m-g]|=128*y}},39515:function(e,t,n){var o=n(38761)(n(37772),"DataView");e.exports=o},89612:function(e,t,n){var o=n(52118),i=n(96909),a=n(98138),s=n(4174),l=n(7942);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),s=n(72344),l=n(94769);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},10326:function(e,t,n){var o=n(38761)(n(37772),"Map");e.exports=o},96738:function(e,t,n){var o=n(92411),i=n(36417),a=n(86928),s=n(79493),l=n(24150);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},52760:function(e,t,n){var o=n(38761)(n(37772),"Promise");e.exports=o},2143:function(e,t,n){var o=n(38761)(n(37772),"Set");e.exports=o},45386:function(e,t,n){var o=n(96738),i=n(52842),a=n(52482);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=a,e.exports=s},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),s=n(4417),l=n(8605),u=n(71418);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=l,c.prototype.set=u,e.exports=c},50857:function(e,t,n){var o=n(37772).Symbol;e.exports=o},79162:function(e,t,n){var o=n(37772).Uint8Array;e.exports=o},93215:function(e,t,n){var o=n(38761)(n(37772),"WeakMap");e.exports=o},49432:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72517:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},67552:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}},38333:function(e,t,n){var o=n(77832);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},34893:function(e){e.exports=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},1634:function(e,t,n){var o=n(36473),i=n(79631),a=n(86152),s=n(73226),l=n(39045),u=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),p=!n&&!d&&s(e),h=!n&&!d&&!p&&u(e),m=n||d||p||h,g=m?o(e.length,String):[],y=g.length;for(var v in e)(t||c.call(e,v))&&!(m&&("length"==v||p&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,y)))&&g.push(v);return g}},50343:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},65067:function(e){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},87064:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},50217:function(e){e.exports=function(e){return e.split("")}},28582:function(e,t,n){var o=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}},60091:function(e,t,n){var o=n(13940),i=n(41225),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];a.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||o(e,t,n)}},22218:function(e,t,n){var o=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return -1}},67993:function(e,t,n){var o=n(752),i=n(90249);e.exports=function(e,t){return e&&o(t,i(t),e)}},55906:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e,t){return e&&o(t,i(t),e)}},13940:function(e,t,n){var o=n(83043);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},18874:function(e,t,n){var o=n(86571),i=n(72517),a=n(60091),s=n(67993),l=n(55906),u=n(92175),c=n(51522),d=n(7680),p=n(19987),h=n(13483),m=n(76939),g=n(70940),y=n(99917),v=n(8222),b=n(78725),A=n(86152),w=n(73226),x=n(4714),C=n(29259),S=n(43679),_=n(90249),k=n(18582),T="[object Arguments]",R="[object Function]",O="[object Object]",I={};I[T]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[O]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[R]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,M,j,D,L){var P,F=1&n,N=2&n,B=4&n;if(M&&(P=D?M(t,j,D,L):M(t)),void 0!==P)return P;if(!C(t))return t;var U=A(t);if(U){if(P=y(t),!F)return c(t,P)}else{var W=g(t),z=W==R||"[object GeneratorFunction]"==W;if(w(t))return u(t,F);if(W==O||W==T||z&&!D){if(P=N||z?{}:b(t),!F)return N?p(t,l(P,t)):d(t,s(P,t))}else{if(!I[W])return D?t:{};P=v(t,W,F)}}L||(L=new o);var V=L.get(t);if(V)return V;L.set(t,P),S(t)?t.forEach(function(o){P.add(e(o,n,M,o,t,L))}):x(t)&&t.forEach(function(o,i){P.set(i,e(o,n,M,i,t,L))});var K=B?N?m:h:N?k:_,$=U?void 0:K(t);return i($||t,function(o,i){$&&(o=t[i=o]),a(P,i,e(o,n,M,i,t,L))}),P}},39413:function(e,t,n){var o=n(29259),i=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},85246:function(e,t,n){var o=n(45386),i=n(38333),a=n(34893),s=n(50343),l=n(47826),u=n(59950);e.exports=function(e,t,n,c){var d=-1,p=i,h=!0,m=e.length,g=[],y=t.length;if(!m)return g;n&&(t=s(t,l(n))),c?(p=a,h=!1):t.length>=200&&(p=u,h=!1,t=new o(t));t:for(;++d<m;){var v=e[d],b=null==n?v:n(v);if(v=c||0!==v?v:0,h&&b==b){for(var A=y;A--;)if(t[A]===b)continue t;g.push(v)}else p(t,b,c)||g.push(v)}return g}},21359:function(e){e.exports=function(e,t,n,o){for(var i=e.length,a=n+(o?1:-1);o?a--:++a<i;)if(t(e[a],a,e))return a;return -1}},62034:function(e,t,n){var o=n(65067),i=n(95882);e.exports=function e(t,n,a,s,l){var u=-1,c=t.length;for(a||(a=i),l||(l=[]);++u<c;){var d=t[u];n>0&&a(d)?n>1?e(d,n-1,a,s,l):o(l,d):s||(l[l.length]=d)}return l}},15308:function(e,t,n){var o=n(55463)();e.exports=o},26548:function(e,t,n){var o=n(15308),i=n(90249);e.exports=function(e,t){return e&&o(e,t,i)}},23919:function(e,t,n){var o=n(67552),i=n(61049);e.exports=function(e,t){return o(t,function(t){return i(e[t])})}},13324:function(e,t,n){var o=n(17297),i=n(33812);e.exports=function(e,t){t=o(t,e);for(var n=0,a=t.length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},1897:function(e,t,n){var o=n(65067),i=n(86152);e.exports=function(e,t,n){var a=t(e);return i(e)?a:o(a,n(e))}},53366:function(e,t,n){var o=n(50857),i=n(62107),a=n(37157),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var o=n(21359),i=n(22195),a=n(66024);e.exports=function(e,t,n){return t==t?a(e,t,n):o(e,i,n)}},15183:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},88746:function(e,t,n){var o=n(51952),i=n(15125);e.exports=function e(t,n,a,s,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,s,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),s=n(17416),l=n(70940),u=n(86152),c=n(73226),d=n(77598),p="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,b){var A=u(e),w=u(t),x=A?h:l(e),C=w?h:l(t);x=x==p?m:x,C=C==p?m:C;var S=x==m,_=C==m,k=x==C;if(k&&c(e)){if(!c(t))return!1;A=!0,S=!1}if(k&&!S)return b||(b=new o),A||d(e)?i(e,t,n,y,v,b):a(e,t,x,n,y,v,b);if(!(1&n)){var T=S&&g.call(e,"__wrapped__"),R=_&&g.call(t,"__wrapped__");if(T||R){var O=T?e.value():e,I=R?t.value():t;return b||(b=new o),v(O,I,n,y,b)}}return!!k&&(b||(b=new o),s(e,t,n,y,v,b))}},74511:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},37036:function(e,t,n){var o=n(86571),i=n(88746);e.exports=function(e,t,n,a){var s=n.length,l=s,u=!a;if(null==e)return!l;for(e=Object(e);s--;){var c=n[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<l;){var d=(c=n[s])[0],p=e[d],h=c[1];if(u&&c[2]){if(void 0===p&&!(d in e))return!1}else{var m=new o;if(a)var g=a(p,h,d,e,t,m);if(!(void 0===g?i(h,p,3,a,m):g))return!1}}return!0}},22195:function(e){e.exports=function(e){return e!=e}},6840:function(e,t,n){var o=n(61049),i=n(47394),a=n(29259),s=n(87035),l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(o(e)?p:l).test(s(e))}},8109:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},35522:function(e,t,n){var o=n(53366),i=n(61158),a=n(15125),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),s=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?i(e[0],e[1]):o(e):l(e)}},86411:function(e,t,n){var o=n(16001),i=n(54248),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:function(e,t,n){var o=n(29259),i=n(16001),a=n(62966),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=i(e),n=[];for(var l in e)"constructor"==l&&(t||!s.call(e,l))||n.push(l);return n}},26423:function(e,t,n){var o=n(37036),i=n(49882),a=n(73477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},74716:function(e,t,n){var o=n(88746),i=n(72579),a=n(95041),s=n(21401),l=n(28792),u=n(73477),c=n(33812);e.exports=function(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):o(t,s,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),s=n(25561),l=n(29259),u=n(18582),c=n(52434);e.exports=function e(t,n,d,p,h){t!==n&&a(n,function(a,u){if(h||(h=new o),l(a))s(t,n,u,d,e,p,h);else{var m=p?p(c(t,u),a,u+"",t,n,h):void 0;void 0===m&&(m=a),i(t,u,m)}},u)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),s=n(51522),l=n(78725),u=n(79631),c=n(86152),d=n(93746),p=n(73226),h=n(61049),m=n(29259),g=n(97030),y=n(77598),v=n(52434),b=n(63329);e.exports=function(e,t,n,A,w,x,C){var S=v(e,n),_=v(t,n),k=C.get(_);if(k){o(e,n,k);return}var T=x?x(S,_,n+"",e,t,C):void 0,R=void 0===T;if(R){var O=c(_),I=!O&&p(_),M=!O&&!I&&y(_);T=_,O||I||M?c(S)?T=S:d(S)?T=s(S):I?(R=!1,T=i(_,!0)):M?(R=!1,T=a(_,!0)):T=[]:g(_)||u(_)?(T=S,u(S)?T=b(S):(!m(S)||h(S))&&(T=l(_))):R=!1}R&&(C.set(_,T),w(T,_,A,x,C),C.delete(_)),o(e,n,T)}},20256:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:function(e,t,n){var o=n(13324);e.exports=function(e){return function(t){return o(t,e)}}},36060:function(e,t,n){var o=n(23059),i=n(43114),a=n(75251);e.exports=function(e,t){return a(i(e,t,o),e+"")}},86532:function(e,t,n){var o=n(86874),i=n(83043),a=n(23059),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=s},39872:function(e){e.exports=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+t];return a}},36473:function(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},1054:function(e,t,n){var o=n(50857),i=n(50343),a=n(86152),s=n(4795),l=1/0,u=o?o.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},51704:function(e,t,n){var o=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},29078:function(e,t,n){var o=n(17297),i=n(56974),a=n(62721),s=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[s(i(t))]}},50753:function(e,t,n){var o=n(50343);e.exports=function(e,t){return o(t,function(t){return e[t]})}},59950:function(e){e.exports=function(e,t){return e.has(t)}},17297:function(e,t,n){var o=n(86152),i=n(21401),a=n(54452),s=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(s(e))}},23895:function(e,t,n){var o=n(39872);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:o(e,t,n)}},10768:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&o(t,e[n],0)>-1;);return n}},79882:function(e,t,n){var o=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},92175:function(e,t,n){e=n.nmd(e);var o=n(37772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}},34727:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var o=n(50857),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},6190:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},51522:function(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},752:function(e,t,n){var o=n(60091),i=n(13940);e.exports=function(e,t,n,a){var s=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?i(n,c,d):o(n,c,d)}return n}},7680:function(e,t,n){var o=n(752),i=n(80633);e.exports=function(e,t){return o(e,i(e),t)}},19987:function(e,t,n){var o=n(752),i=n(12680);e.exports=function(e,t){return o(e,i(e),t)}},24019:function(e,t,n){var o=n(37772)["__core-js_shared__"];e.exports=o},97263:function(e,t,n){var o=n(36060),i=n(82406);e.exports=function(e){return o(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,l&&i(n[0],n[1],l)&&(s=a<3?void 0:s,a=1),t=Object(t);++o<a;){var u=n[o];u&&e(t,u,o,s)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var u=s[e?l:++i];if(!1===n(a[u],u,a))break}return t}}},48642:function(e,t,n){var o=n(97030);e.exports=function(e){return o(e)?void 0:e}},83043:function(e,t,n){var o=n(38761),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var o=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,s,l,u){var c=1&n,d=e.length,p=t.length;if(d!=p&&!(c&&p>d))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,y=!0,v=2&n?new o:void 0;for(u.set(e,t),u.set(t,e);++g<d;){var b=e[g],A=t[g];if(s)var w=c?s(A,b,g,t,e,u):s(b,A,g,e,t,u);if(void 0!==w){if(w)continue;y=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(b===e||l(b,e,n,s,u)))return v.push(t)})){y=!1;break}}else if(!(b===A||l(b,A,n,s,u))){y=!1;break}}return u.delete(e),u.delete(t),y}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),s=n(74871),l=n(75179),u=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!p(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=l;case"[object Set]":var g=1&o;if(m||(m=u),e.size!=t.size&&!g)break;var y=h.get(e);if(y)return y==t;o|=2,h.set(e,t);var v=s(m(e),m(t),o,c,p,h);return h.delete(e),v;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},17416:function(e,t,n){var o=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var u=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!u)return!1;for(var p=d;p--;){var h=c[p];if(!(u?h in t:i.call(t,h)))return!1}var m=l.get(e),g=l.get(t);if(m&&g)return m==t&&g==e;var y=!0;l.set(e,t),l.set(t,e);for(var v=u;++p<d;){var b=e[h=c[p]],A=t[h];if(a)var w=u?a(A,b,h,t,e,l):a(b,A,h,e,t,l);if(!(void 0===w?b===A||s(b,A,n,a,l):w)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return l.delete(e),l.delete(t),y}},29097:function(e,t,n){var o=n(35676),i=n(43114),a=n(75251);e.exports=function(e){return a(i(e,void 0,o),e+"")}},51242:function(e,t,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},13483:function(e,t,n){var o=n(1897),i=n(80633),a=n(90249);e.exports=function(e){return o(e,a,i)}},76939:function(e,t,n){var o=n(1897),i=n(12680),a=n(18582);e.exports=function(e){return o(e,a,i)}},27937:function(e,t,n){var o=n(98304);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:function(e,t,n){var o=n(28792),i=n(90249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],s=e[a];t[n]=[a,s,o(s)]}return t}},38761:function(e,t,n){var o=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return o(n)?n:void 0}},47353:function(e,t,n){var o=n(60241)(Object.getPrototypeOf,Object);e.exports=o},62107:function(e,t,n){var o=n(50857),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(t?e[l]=n:delete e[l]),i}},80633:function(e,t,n){var o=n(67552),i=n(30981),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:o(s(e=Object(e)),function(t){return a.call(e,t)})}:i;e.exports=l},12680:function(e,t,n){var o=n(65067),i=n(47353),a=n(80633),s=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:s;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),s=n(2143),l=n(93215),u=n(53366),c=n(87035),d="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=c(o),v=c(i),b=c(a),A=c(s),w=c(l),x=u;(o&&x(new o(new ArrayBuffer(1)))!=g||i&&x(new i)!=d||a&&x(a.resolve())!=p||s&&x(new s)!=h||l&&x(new l)!=m)&&(x=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case y:return g;case v:return d;case b:return p;case A:return h;case w:return m}return t}),e.exports=x},98109:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1369:function(e,t,n){var o=n(17297),i=n(79631),a=n(86152),s=n(39045),l=n(61158),u=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,p=!1;++c<d;){var h=u(t[c]);if(!(p=null!=e&&n(e,h)))break;e=e[h]}return p||++c!=d?p:!!(d=null==e?0:e.length)&&l(d)&&s(h,d)&&(a(e)||i(e))}},33880:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52118:function(e,t,n){var o=n(99191);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},96909:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}},7942:function(e,t,n){var o=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},8222:function(e,t,n){var o=n(79882),i=n(34727),a=n(96058),s=n(70169),l=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(e)}}},78725:function(e,t,n){var o=n(39413),i=n(47353),a=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}},95882:function(e,t,n){var o=n(50857),i=n(79631),a=n(86152),s=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(s&&e&&e[s])}},39045:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:function(e,t,n){var o=n(41225),i=n(67878),a=n(39045),s=n(29259);e.exports=function(e,t,n){if(!s(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&a(t,n.length)):"string"==l&&t in n)&&o(n[t],e)}},21401:function(e,t,n){var o=n(86152),i=n(4795),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},98304:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:function(e,t,n){var o,i=n(24019),a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},16001:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:function(e,t,n){var o=n(29259);e.exports=function(e){return e==e&&!o(e)}},3945:function(e){e.exports=function(){this.__data__=[],this.size=0}},21846:function(e,t,n){var o=n(22218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},88028:function(e,t,n){var o=n(22218);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},72344:function(e,t,n){var o=n(22218);e.exports=function(e){return o(this.__data__,e)>-1}},94769:function(e,t,n){var o=n(22218);e.exports=function(e,t){var n=this.__data__,i=o(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var o=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}},36417:function(e,t,n){var o=n(27937);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).get(e)}},79493:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).has(e)}},24150:function(e,t,n){var o=n(27937);e.exports=function(e,t){var n=o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var o=n(30733);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var o=n(38761)(Object,"create");e.exports=o},54248:function(e,t,n){var o=n(60241)(Object.keys,Object);e.exports=o},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var o=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var o=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,s=-1,l=i(a.length-t,0),u=Array(l);++s<l;)u[s]=a[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=a[s];return c[t]=n(u),o(e,this,c)}}},62721:function(e,t,n){var o=n(13324),i=n(39872);e.exports=function(e,t){return t.length<2?e:o(e,i(t,0,-1))}},37772:function(e,t,n){var o=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},52434:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},75251:function(e,t,n){var o=n(86532),i=n(97787)(o);e.exports=i},97787:function(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var i=t(),a=16-(i-o);if(o=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var o=n(80235);e.exports=function(){this.__data__=new o,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var o=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return -1}},8435:function(e,t,n){var o=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):o(e)}},54452:function(e,t,n){var o=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,o,i){t.push(o?i.replace(a,"$1"):n||e)}),t});e.exports=s},33812:function(e,t,n){var o=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,s].join("|")+")"+u+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,s,"["+t+"]"].join("|")+")"+(u+l+c),"g");e.exports=function(e){return e.match(d)||[]}},60019:function(e,t,n){var o=n(60091),i=n(752),a=n(97263),s=n(67878),l=n(16001),u=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||s(t)){i(t,u(t),e);return}for(var n in t)c.call(t,n)&&o(e,n,t[n])});e.exports=d},9850:function(e,t,n){var o=n(18874);e.exports=function(e){return o(e,5)}},60417:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var a=e[t];a&&(i[o++]=a)}return i}},86874:function(e){e.exports=function(e){return function(){return e}}},17335:function(e,t,n){var o=n(85246),i=n(62034),a=n(36060),s=n(93746),l=a(function(e,t){return s(e)?o(e,i(t,1,s,!0)):[]});e.exports=l},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var o=n(62034);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},1910:function(e,t,n){var o=n(23919),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},72579:function(e,t,n){var o=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:o(e,t);return void 0===i?n:i}},95041:function(e,t,n){var o=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,o)}},23059:function(e){e.exports=function(e){return e}},11886:function(e,t,n){var o=n(77832),i=n(67878),a=n(85505),s=n(38101),l=n(98346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?s(n):0;var d=e.length;return n<0&&(n=u(d+n,0)),a(e)?n<=d&&e.indexOf(t,n)>-1:!!d&&o(e,t,n)>-1}},79631:function(e,t,n){var o=n(15183),i=n(15125),a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(e){return i(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var o=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},93746:function(e,t,n){var o=n(67878),i=n(15125);e.exports=function(e){return i(e)&&o(e)}},73226:function(e,t,n){e=n.nmd(e);var o=n(37772),i=n(36330),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||i},92301:function(e,t,n){var o=n(15125),i=n(97030);e.exports=function(e){return o(e)&&1===e.nodeType&&!i(e)}},61049:function(e,t,n){var o=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var o=n(74511),i=n(47826),a=n(4146),s=a&&a.isMap,l=s?i(s):o;e.exports=l},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var o=n(53366),i=n(47353),a=n(15125),s=Object.prototype,l=Function.prototype.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},43679:function(e,t,n){var o=n(8109),i=n(47826),a=n(4146),s=a&&a.isSet,l=s?i(s):o;e.exports=l},85505:function(e,t,n){var o=n(53366),i=n(86152),a=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==o(e)}},4795:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},77598:function(e,t,n){var o=n(35522),i=n(47826),a=n(4146),s=a&&a.isTypedArray,l=s?i(s):o;e.exports=l},90249:function(e,t,n){var o=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?o(e):i(e)}},18582:function(e,t,n){var o=n(1634),i=n(18390),a=n(67878);e.exports=function(e){return a(e)?o(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},34519:function(e,t,n){var o=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){o(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var o=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};return n.cache=new(i.Cache||o),n}i.Cache=o,e.exports=i},98537:function(e,t,n){var o=n(84565),i=n(97263)(function(e,t,n){o(e,t,n)});e.exports=i},17620:function(e,t,n){var o=n(50343),i=n(18874),a=n(29078),s=n(17297),l=n(752),u=n(48642),c=n(29097),d=n(76939),p=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=o(t,function(t){return t=s(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,u));for(var p=t.length;p--;)a(n,t[p]);return n});e.exports=p},65798:function(e,t,n){var o=n(20256),i=n(82952),a=n(21401),s=n(33812);e.exports=function(e){return a(e)?o(s(e)):i(e)}},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},5707:function(e,t,n){var o=n(7642),i=1/0;e.exports=function(e){return e?(e=o(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var o=n(5707);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var o=n(51704),i=n(29259),a=n(4795),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=u.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?s:+e}},63329:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e){return o(e,i(e))}},66188:function(e,t,n){var o=n(1054);e.exports=function(e){return null==e?"":o(e)}},5648:function(e,t,n){var o=n(1054),i=n(51704),a=n(23895),s=n(10768),l=n(51821),u=n(8435),c=n(66188);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return i(e);if(!e||!(t=o(t)))return e;var d=u(e),p=u(t),h=l(d,p),m=s(d,p)+1;return a(d,h,m).join("")}},74930:function(e,t,n){var o=n(66188),i=0;e.exports=function(e){var t=++i;return o(e)+t}},98346:function(e,t,n){var o=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},70314:function(e,t,n){e.exports=n(67203)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(89062)}])},17329:function(e,t,n){"use strict";var o=n(88581),i=n(70314),a=n.n(i),s=window;s.__sentryRewritesTunnelPath__=void 0,s.SENTRY_RELEASE={id:"1845e9aac0e592ed649af91bb488acc81da0aaa7"},s.__rewriteFramesAssetPrefixPath__="";let{publicRuntimeConfig:l}=a()();o.S1({dsn:"https://".concat("52e42fce46f0404c92a1169b0dc636dc","@").concat("o146123.ingest.sentry.io","/").concat("4504179265437696"),tracesSampleRate:.05,tunnel:"/api/t",environment:l.sentryEnvironment})},19745:function(e,t){"use strict";var n,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return p},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return d},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return m}});let s="refresh",l="navigate",u="restore",c="server-patch",d="prefetch",p="fast-refresh",h="server-action";function m(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=o||(o={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12394:function(e,t,n){"use strict";function o(e,t,n,o){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}}),n(14079),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let o=n(17653),i=n(52322),a=o._(n(2784)),s=n(40706),l=n(90345),u=n(8985),c=n(70286),d=n(95549),p=n(24698),h=n(47640),m=n(34407),g=n(12394),y=n(70558),v=n(19745),b=new Set;function A(e,t,n,o,i,a){if(a||(0,l.isLocalURL)(t)){if(!o.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(b.has(i))return;b.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:u,as:b,children:x,prefetch:C=null,passHref:S,replace:_,shallow:k,scroll:T,locale:R,onClick:O,onMouseEnter:I,onTouchStart:M,legacyBehavior:j=!1,...D}=e;n=x,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let L=a.default.useContext(p.RouterContext),P=a.default.useContext(h.AppRouterContext),F=null!=L?L:P,N=!L,B=!1!==C,U=null===C?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:W,as:z}=a.default.useMemo(()=>{if(!L){let e=w(u);return{href:e,as:b?w(b):e}}let[e,t]=(0,s.resolveHref)(L,u,!0);return{href:e,as:b?(0,s.resolveHref)(L,b):t||e}},[L,u,b]),V=a.default.useRef(W),K=a.default.useRef(z);j&&(o=a.default.Children.only(n));let $=j?o&&"object"==typeof o&&o.ref:t,[H,q,Z]=(0,m.useIntersection)({rootMargin:"200px"}),Y=a.default.useCallback(e=>{(K.current!==z||V.current!==W)&&(Z(),K.current=z,V.current=W),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[z,$,W,Z,H]);a.default.useEffect(()=>{F&&q&&B&&A(F,W,z,{locale:R},{kind:U},N)},[z,W,q,R,B,null==L?void 0:L.locale,F,N,U]);let Q={ref:Y,onClick(e){j||"function"!=typeof O||O(e),j&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),F&&!e.defaultPrevented&&function(e,t,n,o,i,s,u,c,d){let{nodeName:p}=e.currentTarget;if("A"===p.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(h):h()}(e,F,W,z,_,k,T,R,N)},onMouseEnter(e){j||"function"!=typeof I||I(e),j&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&(B||!N)&&A(F,W,z,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:U},N)},onTouchStart:function(e){j||"function"!=typeof M||M(e),j&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&(B||!N)&&A(F,W,z,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:U},N)}};if((0,c.isAbsoluteUrl)(z))Q.href=z;else if(!j||S||"a"===o.type&&!("href"in o.props)){let e=void 0!==R?R:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,g.getDomainLocale)(z,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);Q.href=t||(0,y.addBasePath)((0,d.addLocale)(z,e,null==L?void 0:L.defaultLocale))}return j?a.default.cloneElement(o,Q):(0,i.jsx)("a",{...D,...Q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let o=n(2784),i=n(41346),a="function"==typeof IntersectionObserver,s=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[d,p]=(0,o.useState)(!1),h=(0,o.useRef)(null),m=(0,o.useCallback)(e=>{h.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:o,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},o=l.find(e=>e.root===n.root&&e.margin===n.margin);if(o&&(t=s.get(o)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),s.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(o);let e=l.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&p(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!d){let e=(0,i.requestIdleCallback)(()=>p(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,d,h.current]),[m,d,(0,o.useCallback)(()=>{p(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return s}});let o=n(17653);n(52322),n(2784);let i=o._(n(23711));function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let n=i.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e});let l=(o={...o,...t}).loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete o.webpack,delete o.modules,s(n,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let o=n(17653)._(n(2784)).default.createContext(null)},23711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let o=n(17653)._(n(2784)),i=n(79195),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function u(){if(!a){let t=new c(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return u()})}function d(e,t){!function(){u();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return s.loading||s.error?o.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?o.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>u(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(u,e)}function p(e,t){let n=[];for(;e.length;){let o=e.pop();n.push(o(t))}return Promise.all(n).then(()=>{if(e.length)return p(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{p(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());p(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},17378:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var o=n(52322),i=n(56803),a=n(37792),s=n(2784),l=n(19468);let u=e=>{let t=(0,s.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.ay,{...e,onError:e=>{t.current=e},ref:(0,s.useCallback)(e=>{if(null===e)return;let n=t.current;((0,a.ff)(n)||(0,a.TW)(n))&&(t.current=void 0,e.reset())},[n])})}},94160:function(e,t,n){"use strict";n.d(t,{KA:function(){return l},Ve:function(){return h},X$:function(){return u},XQ:function(){return p},Xe:function(){return A},Xi:function(){return d},Yf:function(){return g},eH:function(){return c},pL:function(){return v},t0:function(){return y},tI:function(){return m},y0:function(){return s},y3:function(){return b}});var o=n(94840),i=n(26109),a=n(80148);let s=async()=>{let e=await a.managerClient.getState();return{...e,libraries:e.libraries.map(e=>({...e,components:e.components.map(e=>({...e,model:i.id.toSM(e.model),screenshots:Object.fromEntries(Object.entries(e.screenshots).map(e=>{let[t,n]=e;return[t,{...n,url:URL.createObjectURL(n.data)}]}))}))})),customTypes:e.customTypes.map(e=>o.Dc.toSM(e)),remoteCustomTypes:e.remoteCustomTypes.map(e=>o.Dc.toSM(e)),remoteSlices:e.remoteSlices.map(e=>i.id.toSM(e))}},l=async e=>{let{customType:t,updateMeta:n}=e;return await a.managerClient.customTypes.updateCustomType({model:t,updateMeta:n})},u=async(e,t)=>{let{model:n,errors:o}=await a.managerClient.slices.readSlice({libraryID:e,sliceID:t});return{slice:n?i.id.toSM(n):void 0,errors:o}},c=async(e,t)=>await a.managerClient.slices.renameSliceVariation({libraryID:e.from,sliceID:e.model.id,variationID:t.id,model:i.bB.fromSM(t)}),d=a.managerClient.slices.deleteSliceVariation,p=async e=>{let{errors:t}=await a.managerClient.slices.updateSliceScreenshot({libraryID:e.libraryName,sliceID:e.sliceId,variationID:e.variationId,data:e.file});return{url:URL.createObjectURL(e.file),errors:t}},h=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),m=async e=>await a.managerClient.prismicRepository.pushChanges(e),g=async()=>await a.managerClient.user.logout(),y=async()=>{if(!await a.managerClient.user.checkIsLoggedIn())return{status:"pending"};{let e=await a.managerClient.user.getProfile();return{status:"ok",shortId:e.shortId,intercomHash:e.intercomHash}}},v=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),b=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),A={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},43388:function(e,t,n){"use strict";n.d(t,{a:function(){return u},g:function(){return c}});var o=n(52322),i=n(56803),a=n(2784),s=n(62628),l=n.n(s);let u=e=>{let{children:t,...n}=e,i=a.Children.count(t);return(0,o.jsx)("nav",{"aria-label":"Breadcrumb",...n,children:(0,o.jsx)("ol",{className:l().items,children:a.Children.map(t,(e,t)=>(0,o.jsxs)(o.Fragment,{children:[e,t<i-1?(0,o.jsx)(d,{}):null]}))})})},c=e=>{let{active:t=!1,children:n,...a}=e;return(0,o.jsx)("li",{...a,children:(0,o.jsx)(i.bL,{component:"span",color:t?"grey12":"grey11",variant:t?"bold":"normal",children:n})})},d=()=>(0,o.jsx)("li",{"aria-hidden":!0,children:(0,o.jsx)(i.bL,{component:"span",color:"grey11",children:"/"})})},67557:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return ty},Rp:function(){return tS},OJ:function(){return tC},LB:function(){return tx},Ev:function(){return tw}});var a=n(52322),s=n(56803),l=n(36887),u=n(6277),c=n(2784),d=n(81229),p=n(7896);function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function m(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,c.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,c.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=(0,c.createContext)(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,l=(null==n?void 0:n[e][a])||i,u=(0,c.useMemo)(()=>s,Object.values(s));return(0,c.createElement)(l.Provider,{value:u},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||i,u=(0,c.useContext)(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:o})=>{let i=n(e)[`__scope${o}`];return{...t,...i}},{});return(0,c.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function g(e){let t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),(0,c.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function y(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return(0,c.useCallback)(y(...e),e)}function b(e){return e.split("-")[1]}function A(e){return"y"===e?"height":"width"}function w(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(w(e))?"x":"y"}function C(e,t,n){let o,{reference:i,floating:a}=e,s=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,u=x(t),c=A(u),d=i[c]/2-a[c]/2,p="x"===u;switch(w(t)){case"top":o={x:s,y:i.y-a.height};break;case"bottom":o={x:s,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:l};break;case"left":o={x:i.x-a.width,y:l};break;default:o={x:i.x,y:i.y}}switch(b(t)){case"start":o[u]-=d*(n&&p?-1:1);break;case"end":o[u]+=d*(n&&p?-1:1)}return o}let S=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=C(c,o,u),h=o,m={},g=0;for(let n=0;n<l.length;n++){let{name:a,fn:y}=l[n],{x:v,y:b,data:A,reset:w}=await y({x:d,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,p=null!=b?b:p,m={...m,[a]:{...m[a],...A}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:p}=C(c,h,u)),n=-1)}return{x:d,y:p,placement:h,strategy:i,middlewareData:m}};function _(e,t){return"function"==typeof e?e(t):e}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=_(t,e),g=k(m),y=l[h?"floating"===p?"reference":"floating":p],v=T(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===p?{...s.floating,x:o,y:i}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},x=T(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:A,strategy:u}):b);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}let O=Math.min,I=Math.max,M=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:s,elements:l}=t,{element:u,padding:c=0}=_(e,t)||{};if(null==u)return{};let d=k(c),p={x:n,y:o},h=x(i),m=A(h),g=await s.getDimensions(u),y="y"===h,v=y?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-p[h]-a.floating[m],C=p[h]-a.reference[h],S=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),T=S?S[v]:0;T&&await (null==s.isElement?void 0:s.isElement(S))||(T=l.floating[v]||a.floating[m]);let R=T/2-g[m]/2-1,M=O(d[y?"top":"left"],R),j=O(d[y?"bottom":"right"],R),D=T-g[m]-j,L=T/2-g[m]/2+(w/2-C/2),P=I(M,O(L,D)),F=null!=b(i)&&L!=P&&a.reference[m]/2-(L<M?M:j)-g[m]/2<0?L<M?M-L:D-L:0;return{[h]:p[h]-F,data:{[h]:P,centerOffset:L-P+F}}}}),j=["top","right","bottom","left"],D=(j.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function L(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}let P={start:"end",end:"start"};function F(e){return e.replace(/start|end/g,e=>P[e])}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B(e){return j.some(t=>e[t]>=0)}function U(e){return"x"===e?"y":"x"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){return W(e).getComputedStyle(e)}function V(e){return e instanceof W(e).Node}function K(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){return e instanceof W(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Z(e){let t=Y(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Q(e){return["html","body","#document"].includes(K(e))}let J=Math.min,X=Math.max,ee=Math.round,et=Math.floor,en=e=>({x:e,y:e});function er(e){let t=z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=$(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=ee(n)!==a||ee(o)!==s;return l&&(n=a,o=s),{width:n,height:o,$:l}}function eo(e){return e instanceof W(e).Element}function ei(e){return eo(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!$(t))return en(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=er(t),s=(a?ee(n.width):n.width)/o,l=(a?ee(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let es=en(0);function el(e){let t=W(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=ei(e),l=en(1);t&&(o?eo(o)&&(l=ea(o)):l=ea(e));let u=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==W(s))&&i)?el(s):en(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,p=a.width/l.x,h=a.height/l.y;if(s){let e=W(s),t=o&&eo(o)?W(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=ea(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,h*=e.y,c+=i,d+=a,n=W(n).frameElement}}return T({width:p,height:h,x:c,y:d})}function ec(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ed(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function ef(e){return eu(ed(e)).left+ec(e).scrollLeft}function ep(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||ed(e);return H(t)?t.host:t}function eh(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ep(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&q(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=W(o);return i?t.concat(a,a.visualViewport||[],q(o)?o:[]):t.concat(o,eh(o))}function em(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=W(e),o=ed(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){a=i.width,s=i.height;let e=Y();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:l,y:u}}(e,n);else if("document"===t)o=function(e){let t=ed(e),n=ec(e),o=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=X(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=X(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}(ed(e));else if(eo(t))o=function(e,t){let n=eu(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=$(e)?ea(e):en(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,n);else{let n=el(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function eg(e,t){return $(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ey(e,t){let n=W(e);if(!$(e))return n;let o=eg(e,t);for(;o&&["table","td","th"].includes(K(o))&&"static"===z(o).position;)o=eg(o,t);return o&&("html"===K(o)||"body"===K(o)&&"static"===z(o).position&&!Z(o))?n:o||function(e){let t=ep(e);for(;$(t)&&!Q(t);){if(Z(t))return t;t=ep(t)}return null}(e)||n}let ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=$(n),a=ed(n);if(n===a)return t;let s={scrollLeft:0,scrollTop:0},l=en(1),u=en(0);if((i||!i&&"fixed"!==o)&&(("body"!==K(n)||q(a))&&(s=ec(n)),$(n))){let e=eu(n);l=ea(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:ed,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let o=eh(e).filter(e=>eo(e)&&"body"!==K(e)),i=null,a="fixed"===z(e).position,s=a?ep(e):e;for(;eo(s)&&!Q(s);){let t=z(s),n=Z(s);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||q(s)&&!n&&function e(t,n){let o=ep(t);return!(o===n||!eo(o)||Q(o))&&("fixed"===z(o).position||e(o,n))}(e,s))?o=o.filter(e=>e!==s):i=t,s=ep(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((e,n)=>{let o=em(t,n,i);return e.top=X(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=X(o.left,e.left),e},em(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ey,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||ey,a=this.getDimensions;return{reference:function(e,t,n){let o=$(t),i=ed(t),a="fixed"===n,s=eu(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=en(0);if(o||!o&&!a){if(("body"!==K(t)||q(i))&&(l=ec(t)),$(t)){let e=eu(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ef(i))}return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}(t,await i(n),o),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return er(e)},getScale:ea,isElement:eo,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eb(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=ei(e),d=i||a?[...c?eh(c):[],...eh(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let p=c&&l?function(e,t){let n,o=null,i=ed(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;let m={rootMargin:-et(d)+"px "+-et(i.clientWidth-(c+p))+"px "+-et(i.clientHeight-(d+h))+"px "+-et(c)+"px",threshold:X(0,J(1,u))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!g)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,m)}o.observe(e)}(!0),a}(c,n):null,h,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y=u?eu(e):null;return u&&function t(){let o=eu(e);y&&(o.x!==y.x||o.y!==y.y||o.width!==y.width||o.height!==y.height)&&n(),y=o,h=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),p&&p(),g&&g.disconnect(),g=null,u&&cancelAnimationFrame(h)}}let eA=(e,t,n)=>{let o=new Map,i={platform:ev,...n},a={...i.platform,_c:o};return S(e,t,{...i,platform:a})};var ew=n(28316);let ex=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return M({element:n.current,padding:o}).fn(t)}else if(n)return M({element:n,padding:o}).fn(t);return{}}});var eC="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function eS(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!eS(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!e.$$typeof)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=e_(e);return Math.round(t*n)/n}function eE(e){let t=c.useRef(e);return eC(()=>{t.current=e}),t}let eT=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eI);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null);return(0,c.createElement)(eR,(0,p.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(eR,(0,p.Z)({},o,{ref:t}),n)});eT.displayName="Slot";let eR=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?y(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});eR.displayName="SlotClone";let eO=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eI(e){return(0,c.isValidElement)(e)&&e.type===eO}let eM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,c.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eT:t;return(0,c.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,c.createElement)(a,(0,p.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ej=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eM.svg,(0,p.Z)({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),eD=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eL="Popper",[eP,eF]=m(eL),[eN,eB]=eP(eL),eU=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eB("PopperAnchor",n),s=(0,c.useRef)(null),l=v(t,s);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,c.createElement)(eM.div,(0,p.Z)({},i,{ref:l}))}),eW="PopperContent",[ez,eV]=eP(eW),eK=(0,c.forwardRef)((e,t)=>{var n,o,i,a,s,l,u,d,h,m,y,C,S,k;let{__scopePopper:T,side:M="bottom",sideOffset:j=0,align:D="center",alignOffset:P=0,arrowPadding:W=0,collisionBoundary:z=[],collisionPadding:V=0,sticky:K="partial",hideWhenDetached:$=!1,avoidCollisions:H=!0,onPlaced:q,...Z}=e,Y=eB(eW,T),[Q,J]=(0,c.useState)(null),X=v(t,e=>J(e)),[ee,et]=(0,c.useState)(null),en=function(e){let[t,n]=(0,c.useState)(void 0);return eD(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ee),er=null!==(n=null==en?void 0:en.width)&&void 0!==n?n:0,eo=null!==(o=null==en?void 0:en.height)&&void 0!==o?o:0,ei="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ea=Array.isArray(z)?z:[z],es=ea.length>0,el={padding:ei,boundary:ea.filter(eq),altBoundary:es},{refs:eu,floatingStyles:ec,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[p,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(o);eS(m,o)||g(o);let[y,v]=c.useState(null),[b,A]=c.useState(null),w=c.useCallback(e=>{e!=_.current&&(_.current=e,v(e))},[v]),x=c.useCallback(e=>{e!==k.current&&(k.current=e,A(e))},[A]),C=a||y,S=s||b,_=c.useRef(null),k=c.useRef(null),T=c.useRef(p),R=eE(u),O=eE(i),I=c.useCallback(()=>{if(!_.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};O.current&&(e.platform=O.current),eA(_.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!eS(T.current,t)&&(T.current=t,ew.flushSync(()=>{h(t)}))})},[m,t,n,O]);eC(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let M=c.useRef(!1);eC(()=>(M.current=!0,()=>{M.current=!1}),[]),eC(()=>{if(C&&(_.current=C),S&&(k.current=S),C&&S){if(R.current)return R.current(C,S,I);I()}},[C,S,I,R]);let j=c.useMemo(()=>({reference:_,floating:k,setReference:w,setFloating:x}),[w,x]),D=c.useMemo(()=>({reference:C,floating:S}),[C,S]),L=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ek(D.floating,p.x),o=ek(D.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,D.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:I,refs:j,elements:D,floatingStyles:L}),[p,I,j,D,L])}({strategy:"fixed",placement:M+("center"!==D?"-"+D:""),whileElementsMounted:eb,elements:{reference:Y.anchor},middleware:[{name:"offset",options:h={mainAxis:j+eo,alignmentAxis:P},async fn(e){let{x:t,y:n}=e,o=await async function(e,t){let{placement:n,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=w(n),l=b(n),u="x"===x(n),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,p=_(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}(e,h);return{x:t+o.x,y:n+o.y,data:o}}},H&&{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?(void 0===m&&(m={}),{options:m,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=_(m,e),c={x:t,y:n},d=x(o),p=U(d),h=c[d],g=c[p],y=_(s,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var b,A;let e="y"===d?"width":"height",t=["top","left"].includes(w(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[p])||0)+(t?0:v.crossAxis),s=i.reference[p]+i.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[p])||0)-(t?v.crossAxis:0);g<n?g=n:g>s&&(g=s)}return{[d]:h,[p]:g}}}):void 0,...el},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_(y,e),u={x:t,y:n},c=await R(e,l),d=x(w(o)),p=U(d),h=u[d],m=u[p];if(i){let e="y"===d?"bottom":"right";h=I(h+c["y"===d?"top":"left"],O(h,h-c[e]))}if(a){let e="y"===p?"bottom":"right";m=I(m+c["y"===p?"top":"left"],O(m,m-c[e]))}let g=s.fn({...e,[d]:h,[p]:m});return{...g,data:{x:g.x-t,y:g.y-n}}}},H&&{name:"flip",options:C={...el},async fn(e){var t,n,o,i;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...S}=_(C,e),k=w(a),T=w(u)===u,O=await (null==c.isRTL?void 0:c.isRTL(d.floating)),I=m||(T||!v?[L(u)]:function(e){let t=L(e);return[F(e),t,F(t)]}(u));m||"none"===y||I.push(...function(e,t,n,o){let i=b(e),a=function(e,t,n){let o=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(w(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(F)))),a}(u,v,y,O));let M=[u,...I],j=await R(e,S),D=[],P=(null==(t=s.flip)?void 0:t.overflows)||[];if(p&&D.push(j[k]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=b(e),i=x(e),a=A(i),s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=L(s)),{main:s,cross:L(s)}}(a,l,O);D.push(j[e],j[t])}if(P=[...P,{placement:a,overflows:D}],!D.every(e=>e<=0)){let e=((null==(n=s.flip)?void 0:n.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let l=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(g){case"bestFit":{let e=null==(i=P.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(l=e);break}case"initialPlacement":l=u}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:S={...el,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${o}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=_(S,e),c=await R(e,u),d=w(o),p=b(o),h="x"===x(o),{width:m,height:g}=i.floating;"top"===d||"bottom"===d?(t=d,n=p===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===p?"top":"bottom");let y=g-c[t],v=m-c[n],A=!e.middlewareData.shift,C=y,k=v;if(h){let e=m-c.left-c.right;k=p||A?O(v,e):e}else{let e=g-c.top-c.bottom;C=p||A?O(y,e):e}if(A&&!p){let e=I(c.left,0),t=I(c.right,0),n=I(c.top,0),o=I(c.bottom,0);h?k=m-2*(0!==e||0!==t?e+t:I(c.left,c.right)):C=g-2*(0!==n||0!==o?n+o:I(c.top,c.bottom))}await l({...e,availableWidth:k,availableHeight:C});let T=await a.getDimensions(s.floating);return m!==T.width||g!==T.height?{reset:{rects:!0}}:{}}},ee&&ex({element:ee,padding:W}),eG({arrowWidth:er,arrowHeight:eo}),$&&{name:"hide",options:k={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=_(k,e);switch(n){case"referenceHidden":{let n=N(await R(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:B(n)}}}case"escaped":{let n=N(await R(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:B(n)}}}default:return{}}}}]}),[eh,em]=eZ(ed),eg=g(q);eD(()=>{ef&&(null==eg||eg())},[ef,eg]);let ey=null===(i=ep.arrow)||void 0===i?void 0:i.x,ev=null===(a=ep.arrow)||void 0===a?void 0:a.y,eT=(null===(s=ep.arrow)||void 0===s?void 0:s.centerOffset)!==0,[eR,eO]=(0,c.useState)();return eD(()=>{Q&&eO(window.getComputedStyle(Q).zIndex)},[Q]),(0,c.createElement)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ef?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eR,"--radix-popper-transform-origin":[null===(l=ep.transformOrigin)||void 0===l?void 0:l.x,null===(u=ep.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(ez,{scope:T,placedSide:eh,onArrowChange:et,arrowX:ey,arrowY:ev,shouldHideArrow:eT},(0,c.createElement)(eM.div,(0,p.Z)({"data-side":eh,"data-align":em},Z,{ref:X,style:{...Z.style,animation:ef?void 0:"none",opacity:null!==(d=ep.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),e$={top:"bottom",right:"left",bottom:"top",left:"right"},eH=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eV("PopperArrow",n),a=e$[i.placedSide];return(0,c.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(ej,(0,p.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eq(e){return null!==e}let eG=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,s;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=eZ(l),y={start:"0%",center:"50%",end:"100%"}[g],v=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+p/2,b=(null!==(a=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==a?a:0)+h/2,A="",w="";return"bottom"===m?(A=d?y:`${v}px`,w=`${-h}px`):"top"===m?(A=d?y:`${v}px`,w=`${u.floating.height+h}px`):"right"===m?(A=`${-h}px`,w=d?y:`${b}px`):"left"===m&&(A=`${u.floating.width+h}px`,w=d?y:`${b}px`),{data:{x:A,y:w}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}let eY=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eN,{scope:t,anchor:o,onAnchorChange:i},n)},eQ=(0,c.forwardRef)((e,t)=>{var n;let{container:o=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return o?ew.createPortal((0,c.createElement)(eM.div,(0,p.Z)({},i,{ref:t})),o):null}),eJ=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),s=(0,c.useRef)(e),l=(0,c.useRef)("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,c.useReducer)((e,t)=>{let o=n[e][t];return null!=o?o:e},t));return(0,c.useEffect)(()=>{let e=eX(a.current);l.current="mounted"===u?e:"none"},[u]),eD(()=>{let t=a.current,n=s.current;if(n!==e){let o=l.current,i=eX(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),eD(()=>{if(o){let e=e=>{let t=eX(a.current).includes(e.animationName);e.target===o&&t&&(0,ew.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eX(a.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,c.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):c.Children.only(n),a=v(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eX(e){return(null==e?void 0:e.animationName)||"none"}eJ.displayName="Presence";let e0="dismissableLayer.update",e1=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...m}=e,y=(0,c.useContext)(e1),[b,A]=(0,c.useState)(null),w=null!==(n=null==b?void 0:b.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),C=v(t,e=>A(e)),S=Array.from(y.layers),[_]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(_),T=b?S.indexOf(b):-1,R=y.layersWithOutsidePointerEventsDisabled.size>0,O=T>=k,I=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1),i=(0,c.useRef)(()=>{});return(0,c.useEffect)(()=>{let e=e=>{if(e.target&&!o.current){let o={originalEvent:e};function a(){e3("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));!O||n||(null==s||s(e),null==u||u(e),e.defaultPrevented||null==d||d())},w),M=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e3("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...y.branches].some(e=>e.contains(t))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==d||d())},w);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{T!==y.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},w),(0,c.useEffect)(()=>{if(b)return i&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),e5(),()=>{i&&1===y.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o)}},[b,w,i,y]),(0,c.useEffect)(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),e5())},[b,y]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(e0,e),()=>document.removeEventListener(e0,e)},[]),(0,c.createElement)(eM.div,(0,p.Z)({},m,{ref:C,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,M.onFocusCapture),onBlurCapture:h(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,I.onPointerDownCapture)}))});function e5(){let e=new CustomEvent(e0);document.dispatchEvent(e)}function e3(e,t,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&(0,ew.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e6="HoverCard",[e4,e8]=m(e6,[eF]),e7=eF(),[e9,te]=e4(e6),tt=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=te("HoverCardTrigger",n),a=e7(n);return(0,c.createElement)(eU,(0,p.Z)({asChild:!0},a),(0,c.createElement)(eM.a,(0,p.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:h(e.onPointerEnter,tu(i.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(i.onClose)),onFocus:h(e.onFocus,i.onOpen),onBlur:h(e.onBlur,i.onClose),onTouchStart:h(e.onTouchStart,e=>e.preventDefault())})))}),tn="HoverCardPortal",[tr,to]=e4(tn,{forceMount:void 0}),ti="HoverCardContent",ta=(0,c.forwardRef)((e,t)=>{let n=to(ti,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=te(ti,e.__scopeHoverCard);return(0,c.createElement)(eJ,{present:o||a.open},(0,c.createElement)(ts,(0,p.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:h(e.onPointerEnter,tu(a.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(a.onClose)),ref:t})))}),ts=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,...u}=e,d=te(ti,n),m=e7(n),g=(0,c.useRef)(null),y=v(t,g),[b,A]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(b){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[b]),(0,c.useEffect)(()=>{if(g.current){let e=()=>{A(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),(0,c.useEffect)(()=>{g.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(e2,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:h(s,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eK,(0,p.Z)({},m,u,{onPointerDown:h(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&A(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:y,style:{...u.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}),tl=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e7(n);return(0,c.createElement)(eH,(0,p.Z)({},i,o,{ref:t}))});function tu(e){return t=>"touch"===t.pointerType?void 0:e()}let tc=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,u=e7(t),d=(0,c.useRef)(0),p=(0,c.useRef)(0),h=(0,c.useRef)(!1),m=(0,c.useRef)(!1),[y=!1,v]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=(0,c.useState)(e),[o]=n,i=(0,c.useRef)(o),a=g(t);return(0,c.useEffect)(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=g(n);return[s,(0,c.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}({prop:o,defaultProp:i,onChange:a}),b=(0,c.useCallback)(()=>{clearTimeout(p.current),d.current=window.setTimeout(()=>v(!0),s)},[s,v]),A=(0,c.useCallback)(()=>{clearTimeout(d.current),h.current||m.current||(p.current=window.setTimeout(()=>v(!1),l))},[l,v]),w=(0,c.useCallback)(()=>v(!1),[v]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(p.current)},[]),(0,c.createElement)(e9,{scope:t,open:y,onOpenChange:v,onOpen:b,onClose:A,onDismiss:w,hasSelectionRef:h,isPointerDownOnContentRef:m},(0,c.createElement)(eY,u,n))},td=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=te(tn,t);return(0,c.createElement)(tr,{scope:t,forceMount:n},(0,c.createElement)(eJ,{present:n||a.open},(0,c.createElement)(eQ,{asChild:!0,container:i},o)))};var tf=n(10704),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(s.t.space[16]),side:u,sideOffset:d=4,trigger:p,...h}=e,{arrowWidth:m,arrowHeight:g}=(0,c.useMemo)(()=>{if(void 0===o)return{arrowWidth:10,arrowHeight:5};let e=Math.SQRT2*o;return{arrowWidth:e,arrowHeight:e/2}},[o]);return(0,a.jsxs)(tc,{...h,children:[(0,a.jsx)(tt,{asChild:!0,children:p}),(0,a.jsx)(td,{children:(0,a.jsxs)(ta,{align:t,alignOffset:n,className:tp().container,collisionPadding:l,side:u,sideOffset:d,children:[i,(0,a.jsx)(tl,{className:tp().arrow,height:g,width:m})]})})]})};var tm=n(56099),tg=n.n(tm);let ty=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:s,onClose:l,open:u,openDelay:d=5e3,side:p,sideOffset:h,trigger:m}=e,[g,y]=(0,c.useState)(!1),v=(0,c.useCallback)(()=>{l&&l(),y(!1)},[l,y]);return!function(e){let{condition:t,action:n,delay:o}=e,[i,a]=(0,c.useState)(null);(0,c.useEffect)(()=>(t&&null===i&&a(setTimeout(n,o)),()=>{null!==i&&(clearTimeout(i),a(null))}),[t,n,o,i,a])}({condition:!0===u,action:(0,c.useCallback)(()=>y(e=>!1===e),[y]),delay:d}),(0,a.jsx)(th,{align:t,alignOffset:n,arrowSize:o,collisionPadding:s,onOpenChange:e=>{!0===e&&!0===u&&y(e)},open:g,openDelay:d,side:p,sideOffset:h,trigger:m,children:(0,a.jsx)(tv,{handleClose:v,children:i})})},tv=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tb.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tg().root,children:n})})},tb=(0,c.createContext)({handleClose:()=>void 0});function tA(){return(0,c.useContext)(tb)}let tw=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsxs)("div",{className:tg().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tg().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tx=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tg().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,u.W)(tg().media,n.className)})})},tC=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tg().description,children:t})},tS=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsx)("div",{className:tg().closeButtonContainer,children:(0,a.jsx)(s.E,{sx:{width:"100%"},onClick:n,children:t})})}},63908:function(e,t,n){"use strict";n.d(t,{AK:function(){return m},Dj:function(){return c},Kp:function(){return h},L4:function(){return g},Oh:function(){return w},PQ:function(){return A},cx:function(){return u},d7:function(){return d},fo:function(){return b},gR:function(){return v},ux:function(){return p},xS:function(){return y}});var o=n(88866),i=n(49219),a=n(26109),s=n(358);let l="default";function u(e){return e.model.variations.length-Object.keys(e.screenshots).length}function c(e){var t,n,o;return null!==(o=null!==(n=null===(t=e.config)||void 0===t?void 0:t.label)&&void 0!==n?n:"Group"===e.type||"Slice"===e.type||"Boolean"!==e.type&&"Separator"!==e.type&&"Table"!==e.type?e.fieldset:void 0)&&void 0!==o?o:e.type}function d(e,t){var n;return null===(n=e.screenshots[t.id])||void 0===n?void 0:n.url}function p(e,t){var n,o,i,a,s;let l={},u={};if("type"in e){if("Slice"===e.type){for(let t in e["non-repeat"])l[t]=e["non-repeat"][t].type;for(let t in e.repeat)u[t]=e.repeat[t].type}else if("Group"===e.type)for(let t in null===(n=e.config)||void 0===n?void 0:n.fields)u[t]=null!==(i=null===(o=e.config)||void 0===o?void 0:o.fields[t].type)&&void 0!==i?i:"";else l[t]=e.type}else if("id"in e){for(let{key:t,value:n}of null!==(a=e.primary)&&void 0!==a?a:[])l[t]=n.type;for(let{key:t,value:n}of null!==(s=e.items)&&void 0!==s?s:[])u[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(u).sort().map(e=>[e,u[e]]))}}function h(e){let{slice:t,id:n,name:o,copiedVariation:i}=e,a={...i,id:n,name:o};return{slice:{...t,model:{...t.model,variations:t.model.variations.concat([a])}},variation:a}}function m(e){let{slice:t,variationId:n,widgetArea:o,fieldId:i}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.filter(e=>e.key!==i)}}return e})}}}function g(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:s}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.map(e=>e.key===i?{key:a,value:s}:e)}}return e})}}}function y(e){let{slice:t,variationId:n,widgetArea:s,newFieldId:l,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:u.type!==o.GroupFieldType?{...e,[s]:null===(c=e[s])||void 0===c?void 0:c.concat([{key:l,value:u}])}:s===a.Rt.Items?e:{...e,[s]:null===(t=e[s])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(u)}])}})}}}function v(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:s,destinationIndex:l}=e,u=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=u.splice(s,1);return u.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:u}:e)}}}function b(e){return{id:(0,s.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,s.MP)(l),docURL:"...",version:"initial",description:(0,s.MP)(l),imageUrl:""}]}}function A(e,t){return{...e,model:{...e.model,name:t}}}function w(e){let{slice:t,variationId:n}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){let t={...e};return delete t.items,t}return e})}}}},63470:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var o=n(96317);function i(){let e=(0,o.L)("section_greater_than_slice"),t=(null==e?void 0:e.value)==="treatment";return{eligible:t,value:t?"section":"slice"}}},59294:function(e,t,n){"use strict";n.d(t,{cd:function(){return i},ne:function(){return a},Ag:function(){return s}});var o=n(52322);let i={page:{blankSlateImage:"/blank-slate-page-types.png",builderPageDynamicSegment:"pageTypeId",getBuilderPagePathname:e=>"/page-types/".concat(e),matchesTablePagePathname:e=>e===i.page.tablePagePathname||e.startsWith("/page-types"),tablePagePathname:"/",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6048 8.0111C15.4571 7.97946 15.3031 8.01624 15.1857 8.11117C15.0682 8.2061 15 8.34901 15 8.5V23.5C15 23.651 15.0682 23.7939 15.1857 23.8888C15.3031 23.9838 15.4571 24.0205 15.6048 23.9889L21.8143 22.6583C22.5059 22.5101 23 21.8989 23 21.1916V14V10.8084C23 10.1011 22.5059 9.48991 21.8143 9.34171L15.6048 8.0111ZM16 22.8815V9.1185L21.6048 10.3195C21.8353 10.3689 22 10.5726 22 10.8084V14V21.1916C22 21.4274 21.8353 21.6311 21.6048 21.6805L16 22.8815ZM9.5 8C9.77614 8 10 8.22386 10 8.5V23.5C10 23.7761 9.77614 24 9.5 24C9.22386 24 9 23.7761 9 23.5V8.5C9 8.22386 9.22386 8 9.5 8ZM12.5 8C12.7761 8 13 8.22386 13 8.5V23.5C13 23.7761 12.7761 24 12.5 24C12.2239 24 12 23.7761 12 23.5V8.5C12 8.22386 12.2239 8 12.5 8Z",fill:"currentColor"})})},custom:{blankSlateImage:"/blank-slate-custom-types.png",builderPageDynamicSegment:"customTypeId",getBuilderPagePathname:e=>"/custom-types/".concat(e),matchesTablePagePathname:e=>e.startsWith(i.custom.tablePagePathname),tablePagePathname:"/custom-types",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0651 10.0686C23.0656 10.0687 23.0628 10.0727 23.0551 10.0805C23.0607 10.0724 23.0646 10.0685 23.0651 10.0686ZM22.7102 10.3001C22.4175 10.1539 21.9868 9.9991 21.4143 9.85598C20.0667 9.51907 18.152 9.30005 16 9.30005C13.848 9.30005 11.9333 9.51907 10.5857 9.85598C10.0132 9.9991 9.58249 10.1539 9.28975 10.3C9.58249 10.4462 10.0132 10.601 10.5857 10.7441C11.9333 11.081 13.848 11.3 16 11.3C18.152 11.3 20.0667 11.081 21.4143 10.7441C21.9868 10.601 22.4175 10.4462 22.7102 10.3001ZM8.93492 10.0686C8.93545 10.0685 8.93931 10.0724 8.94491 10.0805C8.93719 10.0727 8.93439 10.0687 8.93492 10.0686ZM24 10.3C24 9.19548 20.4183 8.30005 16 8.30005C11.5817 8.30005 8 9.19548 8 10.3V16.3V22.3C8 22.8286 8.36652 23.2227 8.77269 23.4942C9.19392 23.7758 9.77503 24.0088 10.4612 24.1965C11.8404 24.5739 13.7629 24.8 16 24.8C18.2371 24.8 20.1596 24.5739 21.5388 24.1965C22.225 24.0088 22.8061 23.7758 23.2273 23.4942C23.6335 23.2227 24 22.8286 24 22.3V16.3V10.3ZM23 16.3V11.2691C21.6353 11.8839 19.012 12.3 16 12.3C12.988 12.3 10.3647 11.8839 9 11.2691V16.3C9 16.3238 9.0187 16.4558 9.32842 16.6629C9.62308 16.8598 10.0885 17.0578 10.7251 17.232C11.9913 17.5784 13.8188 17.8 16 17.8C18.1812 17.8 20.0087 17.5784 21.2749 17.232C21.9115 17.0578 22.3769 16.8598 22.6716 16.6629C22.9813 16.4558 23 16.3238 23 16.3ZM23 17.633V22.3C23 22.3238 22.9813 22.4558 22.6716 22.6629C22.3769 22.8598 21.9115 23.0578 21.2749 23.232C20.0087 23.5784 18.1812 23.8 16 23.8C13.8188 23.8 11.9913 23.5784 10.7251 23.232C10.0885 23.0578 9.62308 22.8598 9.32842 22.6629C9.0187 22.4558 9 22.3238 9 22.3V17.633C9.3936 17.8534 9.89115 18.0406 10.4612 18.1965C11.8404 18.5739 13.7629 18.8 16 18.8C18.2371 18.8 20.1596 18.5739 21.5388 18.1965C22.1089 18.0406 22.6064 17.8534 23 17.633Z",fill:"currentColor"})})}};function a(e,t){return Object.values(i).some(n=>{let{getBuilderPagePathname:o}=n;return e.startsWith(o(t))})}function s(e){for(let{builderPageDynamicSegment:t}of Object.values(i)){let n=e[t];if("string"==typeof n)return n}}},98564:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});let o={page:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Page":"page"," ").concat(n?"types":"type")},hintSingle:"e.g. home, privacy policy, sign up",hintRepeatable:"e.g. product, landing page, blog post",inputPlaceholder:"ID to query the page type in the API (e.g. 'blogPost')",blankSlateDescription:"Page types are models that your editors will use to create website pages in the Page Builder.",autoSaveFailed:"Failed to save page type. Check your browser's console for more information."},custom:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Custom":"custom"," ").concat(n?"types":"type")},hintSingle:"e.g. global nav, settings, footer",hintRepeatable:"e.g. side menu, testimonial, author",inputPlaceholder:"ID to query the custom type in the API (e.g. 'author')",blankSlateDescription:"Custom types are models that your editors can use to create menus or objects in the Page Builder.",autoSaveFailed:"Failed to save custom type. Check your browser's console for more information."}}},13718:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var o=n(37792),i=n(80148);async function a(){try{let{activeEnvironment:e}=await i.managerClient.project.fetchActiveEnvironment();return{activeEnvironment:e}}catch(e){if((0,o.sp)(e))return await i.managerClient.project.updateEnvironment({environment:void 0}),await a();return{error:e}}}},79795:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var o=n(18566),i=n(13718);function a(){return(0,o.QT)(i.j,[])}},98250:function(e,t,n){"use strict";n.d(t,{k:function(){return h}});var o=n(74217),i=n(18566),a=n(88932),s=n(76315);let{fetchOnboarding:l,toggleOnboarding:u,toggleOnboardingStep:c}=n(80148).managerClient.prismicRepository;async function d(){try{return await l()}catch(e){console.error("Failed to fetch onboarding",e);return}}let p=()=>Promise.resolve(void 0);function h(){let e=(0,s.d)().eligible,t=(0,i.QT)(e?d:p,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function h(t){if(!e)return[];let o=n();if(!o)return[];try{let{completedSteps:e}=await c(String(t));return l({...o,completedSteps:e}),e}catch(e){return a.Am.error("Failed to complete/undo step"),console.error("Failed to toggle onboarding step",e),o.completedSteps}}async function m(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await h(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:h,completeStep:m,toggleGuide:async function(){if(!e)return;let t=n();if(!t)return;let o=t.isDismissed;try{l({...t,isDismissed:!o});let{isDismissed:e}=await u();l({...t,isDismissed:e})}catch(e){l({...t,isDismissed:o}),a.Am.error("Failed to hide/show onboarding"),console.error("Failed to toggle onboarding",e)}}}}},76315:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var o=n(96317);let i=()=>{let e=(0,o.L)("shared-onboarding-new");return{eligible:(null==e?void 0:e.value)==="with-shared-onboarding"}}},83758:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var o=n(96317);function i(){let e=(0,o.L)("slicemachine-git-integration");return{eligible:(null==e?void 0:e.value)==="on"}}},68968:function(e,t,n){"use strict";n.d(t,{E:function(){return C},g:function(){return S}});var o=n(52322),i=n(74217),a=n(37792),s=n(2784),l=n(94160),u=n(19468),c=n(978),d=n(93671),p=n(54597),h=n(23710),m=n(79795),g=n(98033),y=n(13105),v=n(73757),b=n(75882);async function A(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,v.R)(o.libraries,o.remoteSlices),a=Object.values((0,y.d)(o.customTypes,o.remoteCustomTypes));return(0,b.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var w=n(13434);let x=(0,s.createContext)(void 0),C=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:y}=(0,w.X)(),v=(0,c.L)(),b=(0,u.n)(),{refreshState:C,pushChangesSuccess:S}=(0,p.Z)(),_=(0,i.R9)(C),k=(0,i.R9)(S),{activeEnvironment:T}=(0,m.J)(),{setNextAction:R,actionQueueStatus:O}=(0,h.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),I=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=T,loggedIn:n=v&&b===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&R(async()=>{let{changedCustomTypes:e,changedSlices:t}=await A({isOnline:v,authStatus:b});if(0!==e.length||0!==t.length)try{let n=await (0,g.t)({changedCustomTypes:e,changedSlices:t,confirmDeleteDocuments:!0});if(n&&"HARD"===n.type)throw console.error("Manual action required. ".concat(n.details.customTypes.length>1?"These types have":"This type has"," too many associated Documents. Archive and delete these documents\n manually and then try deleting the types again.")),Error();let o=await (0,l.y0)();_(o),k()}catch(e){if((0,a.ff)(e))return;throw e}})},[_,k,R,v,b,T]);(0,s.useEffect)(()=>{(n.length>0||y.length>0)&&I()},[]),(0,i.pQ)(v,()=>{v&&(n.length>0||y.length>0)&&I()});let M=(0,s.useMemo)(()=>(function(e){let{activeEnvironment:t,isOnline:n,authStatus:o,actionQueueStatus:i}=e;return void 0===t||"dev"!==t.kind?"not-active":n?o!==d.t.AUTHORIZED?"not-logged-in":"failed"===i?"failed":"pending"===i?"syncing":"synced":"offline"})({activeEnvironment:T,isOnline:v,authStatus:b,actionQueueStatus:O}),[O,b,v,T]),j=(0,s.useMemo)(()=>({syncChanges:I,autoSyncStatus:M}),[I,M]);return(0,o.jsx)(x.Provider,{value:j,children:t})};function S(){let e=(0,s.useContext)(x);if(void 0===e)throw Error("useAutoSync must be used within a AutoSyncProvider");return e}},98033:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var o=n(94160),i=n(63908),a=n(56448);function s(e,t,n){if(!t)return e;let o=e.slice();return t.forEach(e=>{var t;if("Group"===e.value.type&&(null===(t=e.value.config)||void 0===t?void 0:t.fields)){let t={};e.value.config.fields.forEach(e=>{var n;let{value:o}=e,i=null!==(n=t[o.type])&&void 0!==n?n:0;t[o.type]=i+1}),o.push({isInStaticZone:"custom-type"===n,isInSlice:"slice"===n,...t})}}),o}async function l(e){let{changedSlices:t,changedCustomTypes:n,confirmDeleteDocuments:l=!1}=e,u=Date.now(),c={confirmDeleteDocuments:l,changes:[...t.map(e=>({id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status})),...n.map(e=>({id:e.customType.id,type:"CustomType",status:e.status}))]},d=await (0,o.tI)(c);if(d)return o.Xe.track({event:"changes:limit-reach",limitType:d.type}),d;!function(e){let{startTime:t,hasDeletedDocuments:n,changedCustomTypes:l,changedSlices:u}=e,c=l.reduce((e,t)=>t.status===a.GJ.New?{...e,customTypesCreated:e.customTypesCreated+1}:t.status===a.GJ.Modified?{...e,customTypesModified:e.customTypesModified+1}:t.status===a.GJ.Deleted?{...e,customTypesDeleted:e.customTypesDeleted+1}:e,{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),d=u.reduce((e,t)=>t.status===a.GJ.New?{...e,slicesCreated:e.slicesCreated+1}:t.status===a.GJ.Modified?{...e,slicesModified:e.slicesModified+1}:t.status===a.GJ.Deleted?{...e,slicesDeleted:e.slicesDeleted+1}:e,{slicesCreated:0,slicesModified:0,slicesDeleted:0}),p=u.length+l.length,h=u.reduce((e,t)=>e+(0,i.cx)(t.slice),0),m=Date.now()-t;o.Xe.track({event:"changes:pushed",...c,...d,total:p,missingScreenshots:h,duration:m,hasDeletedDocuments:n,_includeEnvironmentKind:!0}),function(e){let{changedCustomTypes:t,changedSlices:n}=e,i=t.reduce((e,t)=>(t.status!==a.GJ.New||t.customType.tabs.forEach(t=>{let n=s(e,t.value,"custom-type");e.push(...n)}),e),[]);[...n.reduce((e,t)=>(t.status!==a.GJ.New||t.slice.model.variations.forEach(t=>{let n=s(e,t.primary,"slice");e.push(...n)}),e),[]),...i].forEach(e=>{o.Xe.track({event:"changes:group-pushed",...e})})}({changedCustomTypes:l,changedSlices:u})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:l,startTime:u})}},75882:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(16442),i=n(56448),a=n(93671);let s=[i.GJ.New,i.GJ.Modified,i.GJ.Deleted];function l(e){let{customTypes:t,libraries:n,slices:i,isOnline:a,authStatus:l}=e,d=c({slices:i,customTypes:t,isOnline:a,authStatus:l}),p=n.flatMap(e=>e.components),h=i.filter(o.yp).map(u),m=p.concat(h).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&s.includes(d.slices[e.model.id])),g=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&s.includes(d.customTypes[(0,o.n5)(e)])),y=m.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>s.includes(e.status));return{changedCustomTypes:g.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>s.includes(e.status)),changedSlices:y,unSyncedCustomTypes:g,unSyncedSlices:m,modelsStatuses:d}}function u(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:s}=e,l=o&&s!=a.t.FORBIDDEN&&s!=a.t.UNAUTHORIZED;return{slices:(0,i.zb)(t,l),customTypes:(0,i.zb)(n,l)}}},13434:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(2784),i=n(56580),a=n(19468),s=n(78254),l=n(7723),u=n(978),c=n(75882);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,s.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,u.L)(),p=(0,a.n)(),h=(0,c.m)({authStatus:p,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>h,[h])}},23710:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(56803),a=n(74930),s=n.n(a),l=n(2784),u=n(88932);let c=e=>{let{actionQueueStatusDelay:t=300,errorMessage:n,retryDelay:a=1e3,retryMessage:c="Retry"}=e,[d,p]=(0,l.useState)({pendingAction:void 0,nextAction:void 0}),[h,m]=(0,l.useState)("done"),[g,y]=(0,l.useState)(h),v=(0,l.useCallback)(e=>{p(t=>({...t,nextAction:e}))},[]),b=(0,l.useCallback)(async e=>{if(e){m("pending");try{await e(),m("done")}catch(e){m("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=s()();u.Am.error(()=>(0,o.jsxs)(i.D,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.bL,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.E,{size:"small",color:"grey",onClick:()=>{u.Am.dismiss(d),l("pending"),setTimeout(()=>{l("done"),c(e=>{var t;return{nextAction:null!==(t=e.nextAction)&&void 0!==t?t:e.pendingAction,pendingAction:void 0}})},n)},children:a})]}),{autoClose:!1,closeOnClick:!1,draggable:!1,toastId:d})}({errorMessage:n,retryDelay:a,retryMessage:c,setActionQueueStatusActual:m,setActionQueueStack:p})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===h&&d.nextAction&&(b(d.nextAction),p({pendingAction:d.nextAction,nextAction:void 0}))},[h,d,b]),(0,l.useEffect)(()=>{if("pending"===h)y("pending");else{let e=setTimeout(()=>{y(h)},t);return()=>{clearTimeout(e)}}},[h,t]),(0,l.useMemo)(()=>({actionQueueStatus:g,setNextAction:v}),[g,v])}},32554:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var o=n(18566),i=n(80148);async function a(){try{return await i.managerClient.project.getAdapterName()}catch(e){throw Error("Error while trying to get adapter name")}}function s(){return(0,o.QT)(a,[])}},19468:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var o=n(56580),i=n(9149);function a(){let{authStatus:e}=(0,o.v9)(e=>({authStatus:(0,i.TA)(e)}));return e}},96317:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var o=n(18566),i=n(80148);async function a(e){try{return await i.managerClient.telemetry.getExperimentVariant(e)}catch(e){console.error("Error while trying to get experiment value",e);return}}function s(e){return(0,o.QT)(a,[e])}},978:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var o=n(2784);let i=()=>{let[e,t]=(0,o.useState)(window.navigator.onLine),n=(0,o.useCallback)(()=>{t(window.navigator.onLine)},[]);return(0,o.useEffect)(()=>(window.addEventListener("offline",n),window.addEventListener("online",n),()=>{window.removeEventListener("offline",n),window.removeEventListener("online",n)}),[n]),e}},30613:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var o=n(56580),i=n(9149);function a(){let{repositoryName:e,apiEndpoint:t}=(0,o.v9)(e=>({repositoryName:(0,i.MY)(e),apiEndpoint:(0,i.Lq)(e)}));return{repositoryName:e,repositoryDomain:new URL(t).hostname.replace(".cdn",""),repositoryUrl:t.replace(".cdn.",".").replace("/api/v2","")}}},14101:function(e,t,n){"use strict";n.d(t,{e:function(){return l},l:function(){return u}});var o=n(52322),i=n(5632),a=n(2784);let s=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(s.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,s]=(0,a.useState)(n),[l,u]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(s(n),u({source:o,destination:n})),l}()});function u(){let e=(0,a.useContext)(s);if(void 0===e)throw Error("useRouteChange must be used within a RouteChangeProvider.");return e}},85606:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var o=n(18566),i=n(80148);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function s(){return(0,o.QT)(a,[])}},59082:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var o=n(18566),i=n(80148);async function a(){let[e,t]=await Promise.all([i.managerClient.versions.checkIsSliceMachineUpdateAvailable(),i.managerClient.versions.checkIsAdapterUpdateAvailable()]);return{sliceMachineUpdateAvailable:e,adapterUpdateAvailable:t}}function s(){return(0,o.QT)(a,[])}},81229:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8536 6.85355C18.0488 6.65829 18.0488 6.34171 17.8536 6.14645C17.6583 5.95118 17.3417 5.95118 17.1464 6.14645L12 11.2929L6.85355 6.14645C6.65829 5.95118 6.34171 5.95118 6.14645 6.14645C5.95118 6.34171 5.95118 6.65829 6.14645 6.85355L11.2929 12L6.14645 17.1464C5.95118 17.3417 5.95118 17.6583 6.14645 17.8536C6.34171 18.0488 6.65829 18.0488 6.85355 17.8536L12 12.7071L17.1464 17.8536C17.3417 18.0488 17.6583 18.0488 17.8536 17.8536C18.0488 17.6583 18.0488 17.3417 17.8536 17.1464L12.7071 12L17.8536 6.85355Z",fill:"currentColor"})})},39180:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 16C23 19.866 19.866 23 16 23C12.134 23 9 19.866 9 16C9 12.134 12.134 9 16 9C19.866 9 23 12.134 23 16ZM24 16C24 20.4183 20.4183 24 16 24C11.5817 24 8 20.4183 8 16C8 11.5817 11.5817 8 16 8C20.4183 8 24 11.5817 24 16ZM14.75 18.5981L18.5 16L14.75 13.4019V18.5981Z",fill:"currentColor"})})},51384:function(e,t,n){"use strict";n.d(t,{LN:function(){return eN},K2:function(){return eK},Xq:function(){return ez},Cx:function(){return eV},RN:function(){return e$},wd:function(){return eW}});var o=n(52322),i=n(56803),a=n(5632),s=n(2784),l=n(43388),u=n(6277),c=n(86099),d=n.n(c);let p=e=>{let{borderTopColor:t="purple",children:n,...i}=e;return(0,o.jsxs)("div",{...i,className:d().root,children:[n,(0,o.jsx)("div",{className:(0,u.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},h=e=>(0,o.jsx)("div",{...e,className:d().pane}),m=e=>(0,o.jsx)("header",{...e,className:d().header}),g=e=>{let{children:t,...n}=e;return(0,o.jsx)("main",{...n,className:d().content,children:(0,o.jsx)("div",{className:d().contentChildren,children:t})})};var y=n(17378),v=n(79795),b=n(94160),A=n(59294),w=n(98564),x=n(30613);function C(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,x.U)(),a=(0,i.cj)({max:"medium"});return(0,o.jsxs)(i.D,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.D,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.bL,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.bL,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.c3,{content:"Open Prismic repository",side:"right",children:(0,o.jsx)(i.aZ,{"data-testid":"prismic-repository-link",icon:"openInNew",onClick:()=>{window.open(n,"_blank")}})})]})}var S=n(59082),_=n(25966),k=n(39180),T=n(39097),R=n.n(T);function O(e){let{title:t,href:n,target:a,active:l,Icon:u,RightElement:c,onClick:d}=e,p=(0,i.cj)({max:"medium"}),h=(0,s.useCallback)(()=>(0,o.jsx)(u,{width:p?28:32}),[u,p]),m=(0,o.jsx)(i.b,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:h,endAdornment:c,selected:l,children:p?null:t});return(0,o.jsx)(i.c3,{content:t,side:"right",visible:p,children:void 0!==n?(0,o.jsx)(R(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,onClick:d,children:m}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:m})})}var I=n(98250);function M(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,I.k)();return e?e.isDismissed?(0,o.jsx)(O,{title:"Get Started",Icon:k.z,onClick:()=>void n()}):(0,o.jsx)(_.TI,{tracking:{track:e=>b.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var j=n(76315);function D(){let e=function(){let e=(0,i.cj)({min:"medium"}),t=(0,S.P)();return e&&!t.sliceMachineUpdateAvailable&&!t.adapterUpdateAvailable}(),t=(0,j.d)().eligible;return e&&t?(0,o.jsx)(M,{}):null}var L=n(83758),P=n(32554);let F={"@slicemachine/adapter-next":{documentationLink:"https://prismic.io/docs/nextjs"},"@slicemachine/adapter-nuxt":{documentationLink:"https://prismic.io/docs/nuxt"},"@slicemachine/adapter-sveltekit":{documentationLink:"https://prismic.io/docs/sveltekit"}},N=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9.5C8 8.67157 8.67157 8 9.5 8H13.382C13.9501 8 14.4695 8.321 14.7236 8.82918L15.809 11H18H22.5C23.3284 11 24 11.6716 24 12.5V22.5001C24 23.3285 23.3284 24.0001 22.5 24.0001H12.25H9.5C8.67157 24.0001 8 23.3285 8 22.5001V11.5V9.5ZM14.691 11L13.8292 9.27639C13.7445 9.107 13.5714 9 13.382 9H9.5C9.22386 9 9 9.22386 9 9.5V11H14.691ZM9 12V22.5001C9 22.7762 9.22386 23.0001 9.5 23.0001H12.25H22.5C22.7761 23.0001 23 22.7762 23 22.5001V12.5C23 12.2239 22.7761 12 22.5 12H18H15.5H9Z",fill:"currentColor"})}),B=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3775 24.9684C14.4175 24.9884 14.5075 24.9884 14.5075 24.9884C14.6775 24.9884 14.8475 24.8984 14.9375 24.7484L20.9375 14.7484C21.0275 14.5984 21.0275 14.3984 20.9375 14.2484C20.8475 14.0984 20.6775 13.9984 20.4975 13.9984H16.9975V7.49842C16.9975 7.27842 16.8475 7.07842 16.6275 7.01842C16.4175 6.95842 16.1875 7.04842 16.0675 7.23842L10.0675 17.2384C9.9775 17.3884 9.9775 17.5884 10.0675 17.7384C10.1575 17.8884 10.3275 17.9884 10.5075 17.9884H14.0075V24.4884C14.0075 24.7084 14.1575 24.9084 14.3775 24.9684ZM11.3875 16.9884H14.5075C14.7875 16.9884 15.0075 17.2084 15.0075 17.4884V22.6784L19.6275 14.9884H16.5075C16.2275 14.9884 16.0075 14.7684 16.0075 14.4884V9.29842L11.3875 16.9884Z",fill:"currentColor"})}),U=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,o.jsx)("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"#6F6E77"})}),W=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12C16 13.1046 15.1046 14 14 14C12.8954 14 12 13.1046 12 12C12 10.8954 12.8954 10 14 10C15.1046 10 16 10.8954 16 12ZM14 9C15.4865 9 16.7205 10.0811 16.9585 11.5H23.5C23.7761 11.5 24 11.7239 24 12C24 12.2761 23.7761 12.5 23.5 12.5H16.9585C16.7205 13.9189 15.4865 15 14 15C12.5135 15 11.2795 13.9189 11.0415 12.5H8.5C8.22386 12.5 8 12.2761 8 12C8 11.7239 8.22386 11.5 8.5 11.5H11.0415C11.2795 10.0811 12.5135 9 14 9ZM21 20C21 21.1046 20.1046 22 19 22C17.8954 22 17 21.1046 17 20C17 18.8954 17.8954 18 19 18C20.1046 18 21 18.8954 21 20ZM16.0415 20.5C16.2795 21.9189 17.5135 23 19 23C20.4865 23 21.7205 21.9189 21.9585 20.5H23.5C23.7761 20.5 24 20.2761 24 20C24 19.7239 23.7761 19.5 23.5 19.5H21.9585C21.7205 18.0811 20.4865 17 19 17C17.5135 17 16.2795 18.0811 16.0415 19.5H8.5C8.22386 19.5 8 19.7239 8 20C8 20.2761 8.22386 20.5 8.5 20.5H16.0415Z",fill:"currentColor"})});var z=n(31860),V=n(67557),K=n(68968);let $=e=>(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M15.5 6L8 15.5L4.5 11",stroke:"#6F6E77",strokeLinecap:"round",strokeLinejoin:"round"})}),H=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_11119_1080440)",children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.32913 10.1715C7.13387 10.3667 7.13387 10.6833 7.32913 10.8786L9.45048 12.9999L7.32906 15.1213C7.1338 15.3166 7.1338 15.6332 7.32906 15.8285C7.52432 16.0237 7.8409 16.0237 8.03616 15.8285L10.1576 13.707L12.2789 15.8283C12.4741 16.0236 12.7907 16.0236 12.986 15.8283C13.1812 15.6331 13.1812 15.3165 12.986 15.1212L10.8647 12.9999L12.9859 10.8787C13.1812 10.6834 13.1812 10.3669 12.9859 10.1716C12.7906 9.97634 12.4741 9.97634 12.2788 10.1716L10.1576 12.2928L8.03624 10.1715C7.84098 9.97621 7.5244 9.97621 7.32913 10.1715Z",fill:"#6F6E77"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11119_1080440",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),q=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 9.79289L13.3536 13.1464L12.6464 13.8536L10.5 11.7071V17.5H9.5V11.7071L7.35355 13.8536L6.64645 13.1464L10 9.79289Z",fill:"#6F6E77"})]});var Z=n(31511),Y=n.n(Z);let Q=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(q,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)($,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(H,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.c3,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:Y().root,children:[t.icon,(0,o.jsx)(i.bL,{className:Y().text,color:"grey11",children:t.text})]})}):t.icon};var J=n(13434),X=n(19468),ee=n(978);let et=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53868 5.08412L11.9985 7.96822V2.20001L8.53868 5.08412ZM16.5459 16.5508L17.3035 17.3084C18.3522 16.2597 19.0664 14.9235 19.3557 13.4689C19.6451 12.0143 19.4966 10.5066 18.929 9.13639C18.3614 7.76618 17.4003 6.59505 16.1672 5.77109C14.934 4.94712 13.4842 4.50733 12.0011 4.50733V5.57857C15.5508 5.57866 18.4284 8.45629 18.4284 12.006C18.4284 13.7809 17.709 15.3877 16.5459 16.5508ZM15.4609 18.9278L11.9989 16.0437L11.9989 21.8119L15.4609 18.9278ZM7.45385 7.46112L6.69631 6.70357C5.6476 7.75228 4.93342 9.08842 4.64408 10.543C4.35474 11.9976 4.50324 13.5054 5.0708 14.8756C5.63835 16.2458 6.59948 17.4169 7.83263 18.2409C9.06578 19.0648 10.5156 19.5046 11.9987 19.5046V18.4333C8.44897 18.4332 5.57139 15.5556 5.57139 12.0059C5.57139 10.2311 6.29077 8.62425 7.45385 7.46112Z",fill:"currentColor"})});var en=n(93671),er=n(54597);let eo=()=>{let{setSeenChangesToolTip:e}=(0,er.Z)(),t=ea(),n=(0,a.useRouter)(),{autoSyncStatus:s}=(0,K.g)(),l=(0,i.cj)({max:"medium"});return(0,o.jsxs)(V.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.D,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===s||"synced"===s||"syncing"===s?(0,o.jsx)(Q,{autoSyncStatus:s}):l?(0,o.jsx)(i.c3,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.D,{position:"relative",children:[(0,o.jsx)(i.aZ,{icon:(0,o.jsx)(et,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.D,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(ei,{color:"purple"})})]})}):(0,o.jsx)(i.E,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.D,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.bL,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(ei,{color:"grey"})]})})}),children:[(0,o.jsx)(V.Ev,{children:"Push your changes"}),(0,o.jsx)(V.LB,{component:"image",src:"/push.png"}),(0,o.jsx)(V.OJ,{children:"When you click Save, your changes are saved locally. Then, you can push your models to Prismic from the Changes page."}),(0,o.jsx)(V.Rp,{children:"Got it"})]})},ei=e=>{let{color:t}=e,n=(0,ee.L)(),a=(0,X.n)(),{unSyncedSlices:s,unSyncedCustomTypes:l}=(0,J.X)(),u=s.length+l.length;return n&&a!==en.t.UNAUTHORIZED&&a!==en.t.FORBIDDEN&&0!==u?(0,o.jsx)(i.D,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.bL,{color:"grey"===t?"grey11":"grey1",variant:"small",children:u>9?"+9":u})}):null},ea=()=>!1;var es=n(37792),el=n(18566),eu=n(80148),ec=n(13718);async function ed(e){await eu.managerClient.project.updateEnvironment({environment:e.domain}),(0,el.gw)(ec.j,[]),(0,el.gw)(b.y0,[])}async function ef(){try{let{environments:e}=await eu.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var ep=n(75882),eh=n(13105),em=n(73757);function eg(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(28316);var ey=s.forwardRef((e,t)=>{let{children:n,...i}=e,a=s.Children.toArray(n),l=a.find(eA);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,o.jsx)(ev,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,o.jsx)(ev,{...i,ref:t,children:n})});ey.displayName="Slot";var ev=s.forwardRef((e,t)=>{let{children:n,...o}=e;if(s.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return s.cloneElement(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?function(...e){return t=>{let n=!1,o=e.map(e=>{let o=eg(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():eg(e[t],null)}}}}(t,a):a})}return s.Children.count(n)>1?s.Children.only(null):null});ev.displayName="SlotClone";var eb=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function eA(e){return s.isValidElement(e)&&e.type===eb}var ew=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=s.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?ey:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ex=s.forwardRef((e,t)=>(0,o.jsx)(ew.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ex.displayName="VisuallyHidden";let eC=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("path",{d:"M0 0h24v24H0z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M7.5 4A1.5 1.5 0 0 0 6 5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-3a.5.5 0 1 0-1 0v3A1.5 1.5 0 0 0 7.5 20h10a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 17.5 4H13zm6.25 8L10 15v-2.5H3.5a.5.5 0 1 1 0-1H10V9z"})]})}),eS=(0,s.forwardRef)((e,t)=>(0,o.jsxs)("svg",{...e,fill:"none",height:"32",ref:t,viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#1A1523",height:"32",rx:"6",width:"32"}),(0,o.jsx)("path",{clipRule:"evenodd",d:"M16.2519 22.6786C19.7531 22.6786 22.5913 19.8404 22.5913 16.3393C22.5913 14.8061 22.0469 13.3999 21.141 12.3037L23.8238 10.7547C23.9923 10.6574 24.05 10.4421 23.9528 10.2736C23.8555 10.1052 23.6401 10.0474 23.4717 10.1447L20.65 11.7738C19.5101 10.6754 17.9599 10 16.2519 10C12.7508 10 9.91263 12.8382 9.91263 16.3393C9.91263 17.7073 10.3459 18.9741 11.0828 20.0099L8.17615 21.688C8.0077 21.7853 7.94999 22.0006 8.04724 22.1691C8.1445 22.3375 8.35989 22.3953 8.52834 22.298L11.5276 20.5664C12.6883 21.8628 14.3749 22.6786 16.2519 22.6786ZM11.5276 20.5664C11.3692 20.3895 11.2207 20.2038 11.0828 20.0099L17.3262 16.4052C17.4946 16.308 17.71 16.3657 17.8073 16.5341C17.9045 16.7026 17.8468 16.918 17.6784 17.0152L11.5276 20.5664ZM20.65 11.7738L14.3216 15.4275C14.1532 15.5247 14.0955 15.7401 14.1927 15.9086C14.29 16.077 14.5054 16.1347 14.6738 16.0375L21.141 12.3037C20.9874 12.1178 20.8235 11.9409 20.65 11.7738Z",fill:"white",fillRule:"evenodd"})]}));var e_=n(6250),ek=n.n(e_);let eE=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:s=[],loading:l=!1,variant:u="default",onLogInClick:c,onSelect:d}=e,p=(0,i.cj)({max:"medium"}),h=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.D,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.D,{position:"relative",children:[p&&s.length>1?(0,o.jsx)(eT,{activeEnvironment:n,disabled:a||l,environments:s,onSelect:d,trigger:(0,o.jsx)(eS,{className:ek().logo})}):(0,o.jsx)(eS,{className:ek().logo}),s.length>1&&(0,o.jsx)(eI,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:ek().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!p&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.D,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===u?(0,o.jsx)(i.bL,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===u?(0,o.jsx)(i.E,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===u?(0,o.jsx)(i.bL,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===u?(0,o.jsx)(i.bL,{component:"span",className:ek().activeEnvironmentName,"data-testid":"active-environment-name",children:h||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.D,{flexShrink:0,children:["unauthenticated"===u?(0,o.jsx)(i.c3,{content:"Log in",side:"right",children:(0,o.jsx)(i.aZ,{icon:(0,o.jsx)(eC,{className:ek().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,s.length>1?(0,o.jsx)(eT,{activeEnvironment:n,disabled:a,environments:s,onSelect:d,trigger:(0,o.jsx)(i.aZ,{icon:l?(0,o.jsx)(i.bg,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eT=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:s,trigger:l}=e,u=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.ar,{modal:!0,children:[(0,o.jsx)(i.c3,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.av,{disabled:n,children:l})}),(0,o.jsxs)(i.as,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.au,{children:"Regular Environments"}):void 0,u.map(e=>(0,o.jsx)(eR,{environment:e,onSelect:s,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.au,{children:"Personal Environment"}),(0,o.jsx)(eR,{environment:c,onSelect:s,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eR=e=>{let{environment:t,onSelect:n,isActive:a}=e,s="prod"===t.kind;return(0,o.jsx)(i.at,{startIcon:(0,o.jsx)(eI,{kind:t.kind,className:ek().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.aX,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:s?"Production":t.name})},eO={prod:"Production",stage:"Staging",dev:"Development"},eI=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,s=eO[t];return(0,o.jsx)("div",{className:(0,u.W)(ek()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(ex,{children:[s," environment"]}):null})};function eM(){let{environments:e,error:t}=(0,el.QT)(ef,[]),{activeEnvironment:n}=(0,v.J)(),{refreshState:i,openLoginModal:a}=(0,er.Z)(),{syncChanges:l}=(0,K.g)(),u=(0,ee.L)(),c=(0,X.n)(),[d,p]=(0,s.useState)(!1),{autoSyncStatus:h}=(0,K.g)();async function m(e){if((null==n?void 0:n.name)===e.name)return;p(!0),b.Xe.track({event:"environment:switch",domain:e.domain}),await ed(e);let t=await (0,b.y0)();i(t);let o=(0,em.R)(t.libraries,t.remoteSlices),a=Object.values((0,eh.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:s,changedSlices:d}=(0,ep.m)({authStatus:c,customTypes:a,isOnline:u,libraries:t.libraries,slices:o});"dev"===e.kind&&(s.length>0||d.length>0)&&l({environment:e,changedCustomTypes:s,changedSlices:d}),p(!1)}if(!u)return(0,o.jsx)(eE,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eE,{environments:e,activeEnvironment:n,onSelect:m,disabled:d||"syncing"===h,loading:d});if((0,es.ff)(t)||(0,es.TW)(t))return(0,o.jsx)(eE,{variant:(0,es.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var ej=n(63470),eD=n(85606);function eL(){let e=(0,eD.d)();return(0,i.cj)({max:"medium"})?null:(0,o.jsxs)(i.bL,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function eP(){let e=(0,i.cj)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,S.P)();return(t||n)&&!e?(0,o.jsx)(i.G,{color:"grey3",padding:16,children:(0,o.jsxs)(i.H,{children:[(0,o.jsx)(i.bL,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.bL,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.E,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(R(),{href:"/changelog",children:"Learn more"})})]})}):null}function eF(){var e;let t=(0,a.useRouter)(),n=(0,L.M)(),{documentationLink:l}=null!==(e=F[(0,P.p)()])&&void 0!==e?e:{},u=(0,ej.k)(),c=(0,P.p)();function d(e){let{type:n}=e;return(0,o.jsx)(O,{title:w.$[n].name({start:!0,plural:!0}),href:A.cd[n].tablePagePathname,active:A.cd[n].matchesTablePagePathname(t.asPath),Icon:A.cd[n].Icon})}return(0,o.jsxs)(i.D,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.D,{flexDirection:"column",gap:16,children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.bx,{height:40}),children:(0,o.jsx)(eM,{})})}),(0,o.jsx)(i.bw,{style:"dashed"}),(0,o.jsx)(C,{}),(0,o.jsx)(eo,{})]}),(0,o.jsxs)(i.D,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.A,{variant:"compact",children:[(0,o.jsx)(d,{type:"page"}),(0,o.jsx)(d,{type:"custom"}),(0,o.jsx)(O,{title:(0,z._)((0,z.f)(u.value)),href:"/slices",Icon:N,active:t.asPath.startsWith("/slices")})]}),(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(eP,{})})})]}),(0,o.jsx)(i.D,{flexDirection:"column",children:(0,o.jsxs)(i.A,{variant:"compact",children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(D,{})})}),(0,o.jsx)(O,{title:"Documentation",href:l,target:"_blank",Icon:U,onClick:()=>{b.Xe.track({event:"navigation:documentation-link-clicked",framework:c})}}),n.eligible&&(0,o.jsx)(O,{title:"Settings",href:"/settings",Icon:W,active:t.asPath.startsWith("/settings")}),(0,o.jsx)(O,{title:"Changelog",href:"/changelog",Icon:B,active:t.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.bx,{height:16}),children:(0,o.jsx)(eL,{})})})})]})})]})}let eN=e=>{let{children:t,...n}=e;return(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsxs)(eU,{...n,children:[(0,o.jsx)(h,{children:(0,o.jsx)(eF,{})}),t]})})})},eB={prod:"purple",stage:"indigo",dev:"amber"},eU=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,v.J)(),a=i?eB[i.kind]:"purple";return(0,o.jsx)(p,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},eW=e=>{let{children:t,...n}=e;return(0,o.jsx)(m,{...n,children:(0,o.jsx)(i.D,{alignItems:"center",gap:8,children:t})})},ez=e=>{let{url:t,...n}=e,s=(0,a.useRouter)();return(0,o.jsx)(i.E,{...n,onClick:()=>{s.push(t)},startIcon:"arrowBack",color:"grey"})},eV=e=>(0,o.jsx)(i.D,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),eK=e=>(0,o.jsx)(i.F,{...e}),e$=e=>(0,o.jsx)(g,{...e})},55862:function(e,t,n){"use strict";var o=n(52322);n(2784);var i=n(37149),a=n.n(i);t.Z=e=>{var t,n;let i={content:{padding:"0px",top:"10%",maxWidth:"950px",margin:"auto",border:"0",background:"0",borderRadius:"6px",...null===(t=e.style)||void 0===t?void 0:t.content},overlay:{backgroundColor:"rgba(11, 11, 12, 0.9)",backdropFilter:"blur(3px)",overflow:"auto",...null===(n=e.style)||void 0===n?void 0:n.overlay}};return(0,o.jsx)(a(),{...e,style:i})}},39204:function(e,t,n){"use strict";n.d(t,{GX:function(){return u},kQ:function(){return c}});var o=n(52322);n(2784);var i=n(65186),a=n(88932),s=n(31860);let l=e=>{let{type:t}=e;switch(t){case a.Am.TYPE.INFO:return(0,o.jsx)(i.vVM,{});case a.Am.TYPE.ERROR:return(0,o.jsx)(i.JSF,{});case a.Am.TYPE.SUCCESS:return(0,o.jsx)(i.vB0,{});case a.Am.TYPE.WARNING:return(0,o.jsx)(i.YTL,{});default:return null}};t.ZP=()=>(0,o.jsx)(a.Ix,{autoClose:2500,hideProgressBar:!0,transition:a.Mi,closeButton:!1,position:a.Am.POSITION.TOP_CENTER,icon:l,style:{left:"50%"}});let u=e=>{let{message:t,path:n}=e,i=n.length<=28?n:n.slice(0,28)+"...";return(0,o.jsxs)("span",{children:[t,(0,o.jsx)("code",{children:i})]})},c=e=>(0,o.jsx)(u,{message:"".concat((0,s.f)(e.sectionsNamingExperiment.value)," saved successfully at "),...e})},94840:function(e,t,n){"use strict";n.d(t,{Dc:function(){return A},L$:function(){return v}});var o=n(88866),i=n(10082),a=n(45974),s=n(32521),l=n(40878),u=n(49219),c=n(44772),d=n(13365);let p=s.type({key:s.string,value:s.array(s.type({key:s.string,value:s.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),h={fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM slicezone")})(d.DynamicSlices.decode({type:"Slices",fieldset:"Slice Zone",config:{choices:e.value.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}})),toSM(e,t){var n;return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic slicezone")})(p.decode({key:e,value:Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||[]).map(e=>{let[t,n]=e;return{key:t,value:n}})}))}},m=s.array(s.type({key:s.string,value:s.union([o.NestableWidget,o.UID,u.GT])})),g=s.intersection([s.type({key:s.string,value:m}),s.partial({sliceZone:p})]),y={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&h.toSM(n[0],n[1]);return{key:e,value:Object.entries(t).reduce((e,t)=>{let[n,o]=t;switch(o.type){case"Choice":case"Slices":return e;case"Group":return[...e,{key:n,value:u.Fl.toSM(o)}];default:return[...e,{key:n,value:o}]}},[]),...o?{sliceZone:o}:{}}},fromSM:e=>e.value.reduce((e,t)=>{let{key:n,value:o}=t;return"Group"===o.type?[...e,[n,u.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,h.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},v={fromSM:e=>"Group"===e.type?u.Fl.fromSM(e):e},b=s.exact(s.intersection([s.type({id:s.string,label:i.StringOrNull,format:(0,l.X)(s.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(s.boolean,!0),tabs:s.array(g),status:(0,l.X)(s.boolean,!0)}),s.partial({hash:s.string})])),A={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return y.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(b.decode({...e,tabs:t}))},fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM custom type.")})(o.CustomType.decode({...e,json:e.tabs.reduce((e,t)=>({...e,[t.key]:y.fromSM(t)}),{})}))}},7459:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var o=n(88866),i=n(32521);let a=i.array(i.type({key:i.string,value:o.NestableWidget}))},49219:function(e,t,n){"use strict";n.d(t,{Fl:function(){return m},GT:function(){return h}});var o=n(88866),i=n(59050),a=n(10082),s=n(45974),l=n(32521),u=n(7459);let c=e=>l.exact(l.partial({label:a.StringOrNull,repeat:l.boolean,fields:e})),d=e=>l.exact(l.intersection([l.type({type:l.literal("Group")}),l.partial({fieldset:a.StringOrNull,icon:l.string,description:l.string,config:c(e)})])),p=d(u.F),h=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,p])}))),m={fromSM(e){let t=(()=>{var t;if(null===(t=e.config)||void 0===t?void 0:t.fields)return e.config.fields.reduce((e,t)=>{let{key:n,value:o}=t;return o.type===i.GroupFieldType?{...e,[n]:m.fromSM(o)}:{...e,[n]:o}},{})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(i.Group.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))},toSM(e){let t=(()=>{var t,n;if(null===(t=e.config)||void 0===t?void 0:t.fields)return Object.entries((null===(n=e.config)||void 0===n?void 0:n.fields)||{}).map(e=>{let[t,n]=e;return n.type===i.GroupFieldType?{key:t,value:m.toSM(n)}:{key:t,value:n}})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(h.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))}}},16442:function(e,t,n){"use strict";function o(e){return"local"in e&&"remote"in e}function i(e){return"local"in e}function a(e){return"remote"in e}function s(e){return a(e)&&!i(e)}function l(e){return i(e)?e.local.id:e.remote.id}n.d(t,{TG:function(){return i},n5:function(){return l},qt:function(){return o},wU:function(){return a},yp:function(){return s}})},56448:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(16442),s=n(69378),l=n.n(s);let u=e=>({...e,variations:e.variations.map(e=>({...e,imageUrl:void 0}))});(o=i||(i={})).New="NEW",o.Modified="MODIFIED",o.Synced="SYNCED",o.Deleted="DELETED",o.Unknown="UNKNOWN";let c=e=>"variations"in e.local&&"variations"in e.remote;function d(e,t){return e.reduce((e,n)=>{var o,s,d;let{status:p}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(s=o.remote,d=o.localScreenshots,s.variations.every(e=>{var t;let n=null===(t=d[e.id])||void 0===t?void 0:t.hash,o=e.imageUrl;return void 0===n?void 0===o:null==o?void 0:o.includes(n)})&&l()(u(o.local),u(o.remote)))?i.Synced:i.Modified:l()(o.local,o.remote)?i.Synced:i.Modified,model:o}:{status:"NEW",model:o}:{status:"DELETED",model:o}:{status:"UNKNOWN",model:o});return{...e,[(0,a.TG)(n)?n.local.id:n.remote.id]:p}},{})}},26109:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},bB:function(){return g},id:function(){return y}});var o,i,a=n(88866),s=n(45974),l=n(32521),u=n(7459),c=n(49219);(o=i||(i={})).Primary="primary",o.Items="items";let d=l.union([c.GT,a.NestableWidget]),p=l.array(l.type({key:l.string,value:d})),h=l.intersection([l.type({id:l.string,name:l.string,description:l.string,docURL:l.string,version:l.string}),l.partial({imageUrl:l.string,primary:p,items:u.F,display:l.string})]),m=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(h)}),l.partial({description:l.string})]),g={fromSM(e){var t,n;return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM slice variation.")})(a.Variation.decode({...e,primary:null===(t=e.primary)||void 0===t?void 0:t.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o.type===a.GroupFieldType?c.Fl.fromSM(o):o}},{}),items:null===(n=e.items)||void 0===n?void 0:n.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}))},toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(h.decode({...e,imageUrl:"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"===e.imageUrl?void 0:e.imageUrl,primary:Object.entries(e.primary||{}).map(e=>{let[t,n]=e;return{key:t,value:n.type===a.GroupFieldType?c.Fl.toSM(n):n}}),items:Object.entries(e.items||{}).map(e=>{let[t,n]=e;return{key:t,value:n}})}))},y={fromSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(g.fromSM)})),toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(m.decode({...e,variations:e.variations.map(g.toSM)}))}},13105:function(e,t,n){"use strict";n.d(t,{$:function(){return o},d:function(){return i}});let o=(e,t)=>t?{[e.id]:{local:e,remote:t}}:{[e.id]:{local:e}},i=(e,t)=>{let n={};return e.forEach(e=>n[e.id]={local:e}),t.forEach(e=>n[e.id]={...n[e.id],remote:e}),n}},73757:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});let o=(e,t)=>{let n={};return e.flatMap(e=>e.components).forEach(e=>{n[e.model.id]={local:e.model,localScreenshots:e.screenshots}}),t.forEach(e=>{n[e.id]={...n[e.id],remote:e}}),Object.values(n)}},358:function(e,t,n){"use strict";n.d(t,{MP:function(){return a},T3:function(){return l},Ti:function(){return i},lV:function(){return u}});let o=/-(\w)/g;function i(e){return e.includes("-")?"['".concat(e,"']"):".".concat(e)}function a(e){return e?(e=e.replace(/_/g,"-").replace(o,(e,t)=>t?t.toUpperCase():""))[0].toUpperCase()+e.slice(1):""}let s=/\B([A-Z])/g;function l(e){return e.replace(s,"-$1").toLowerCase().replace(/-/g,"_")}let u=e=>e.trim().replace(/ /g,"_").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},80148:function(e,t,n){"use strict";let o;function i(e,t,n){e.setUint32(t,Math.floor(n/4294967296)),e.setUint32(t+4,n)}function a(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}n.d(t,{managerClient:function(){return ee}});var s,l,u,c,d=n(34406),p=(void 0===d||(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function h(e){for(var t=e.length,n=0,o=0;o<t;){var i=e.charCodeAt(o++);if((4294967168&i)==0){n++;continue}if((4294965248&i)==0)n+=2;else{if(i>=55296&&i<=56319&&o<t){var a=e.charCodeAt(o);(64512&a)==56320&&(++o,i=((1023&i)<<10)+(1023&a)+65536)}(4294901760&i)==0?n+=3:n+=4}}return n}var m=p?new TextEncoder:void 0,g=p?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,y=(null==m?void 0:m.encodeInto)?function(e,t,n){m.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(m.encode(e),n)};function v(e,t,n){for(var o=t,i=o+n,a=[],s="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var u=63&e[o++];a.push((31&l)<<6|u)}else if((240&l)==224){var u=63&e[o++],c=63&e[o++];a.push((31&l)<<12|u<<6|c)}else if((248&l)==240){var u=63&e[o++],c=63&e[o++],d=(7&l)<<18|u<<12|c<<6|63&e[o++];d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d)}else a.push(l);a.length>=4096&&(s+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(s+=String.fromCharCode.apply(String,a)),s}var b=p?new TextDecoder:null,A=p?void 0!==d&&(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_DECODER)!=="force"?200:0:4294967295,w=function(e,t){this.type=e,this.data=t},x=globalThis&&globalThis.__extends||(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e){function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,Object.create(t.prototype)),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:t.name}),o}return x(t,e),t}(Error),S={type:-1,encode:function(e){var t,n,o,a;return e instanceof Date?function(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=17179869183){if(0===n&&t<=4294967295){var o=new Uint8Array(4),a=new DataView(o.buffer);return a.setUint32(0,t),o}var s=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&s),a.setUint32(4,4294967295&t),o}var o=new Uint8Array(12),a=new DataView(o.buffer);return a.setUint32(0,n),i(a,4,t),o}((n=Math.floor((t=e.getTime())/1e3),a=Math.floor((o=(t-1e3*n)*1e6)/1e9),{sec:n+a,nsec:o-1e9*a})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:var n=t.getUint32(0),o=0;return{sec:n,nsec:0};case 8:var i=t.getUint32(0),n=(3&i)*4294967296+t.getUint32(4),o=i>>>2;return{sec:n,nsec:o};case 12:var n=a(t,4),o=t.getUint32(0);return{sec:n,nsec:o};default:throw new C("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},_=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(S)}return e.prototype.register=function(e){var t=e.type,n=e.encode,o=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=o;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=o}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++){var o=this.builtInEncoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=-1-n;return new w(a,i)}}}for(var n=0;n<this.encoders.length;n++){var o=this.encoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=n;return new w(a,i)}}}return e instanceof w?e:null},e.prototype.decode=function(e,t,n){var o=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return o?o(e,t,n):new w(t,e)},e.defaultCodec=new e,e}();function k(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var T=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===o&&(o=2048),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===s&&(s=!1),void 0===l&&(l=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=o,this.sortKeys=i,this.forceFloat32=a,this.ignoreUndefined=s,this.forceIntegerToFloat=l,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),o=new DataView(t);n.set(this.bytes),this.view=o,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw Error("Too long string: ".concat(e," bytes in UTF-8"))},e.prototype.encodeString=function(e){if(e.length>g){var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),y(e,this.bytes,this.pos),this.pos+=t}else{var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var s=e.charCodeAt(a++);if((4294967168&s)==0){t[i++]=s;continue}if((4294965248&s)==0)t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,s=((1023&s)<<10)+(1023&l)+65536)}(4294901760&s)==0?t[i++]=s>>12&15|224:(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128),t[i++]=s>>6&63|128}t[i++]=63&s|128}}(e,this.bytes,this.pos),this.pos+=t}},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if("object"==typeof e)this.encodeMap(e,t);else throw Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else if(t<4294967296)this.writeU8(198),this.writeU32(t);else throw Error("Too large binary: ".concat(t));var n=k(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw Error("Too large array: ".concat(n));for(var o=0;o<e.length;o++){var i=e[o];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,o=0;o<t.length;o++)void 0!==e[t[o]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw Error("Too large map object: ".concat(o));for(var i=0;i<n.length;i++){var a=n[i],s=e[a];this.ignoreUndefined&&void 0===s||(this.encodeString(a),this.doEncode(s,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else if(t<4294967296)this.writeU8(201),this.writeU32(t);else throw Error("Too large extension object: ".concat(t));this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){var t,n;this.ensureBufferSizeToWrite(8),t=this.view,n=this.pos,t.setUint32(n,e/4294967296),t.setUint32(n+4,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),i(this.view,this.pos,e),this.pos+=8},e}();function R(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var O=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){var o=this.caches[n-1];n:for(var i=0;i<o.length;i++){for(var a=o[i],s=a.bytes,l=0;l<n;l++)if(s[l]!==e[t+l])continue n;return a.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],o={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=o:n.push(o)},e.prototype.decode=function(e,t,n){var o=this.find(e,t,n);if(null!=o)return this.hit++,o;this.miss++;var i=v(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),I=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function s(e){try{u(o.next(e))}catch(e){a(e)}}function l(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}u((o=o.apply(e,t||[])).next())})},M=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},j=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,i){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,i,(t=e[n](t)).done,t.value)})}}},D=globalThis&&globalThis.__await||function(e){return this instanceof D?(this.v=e,this):new D(e)},L=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),a=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){a.push([e,t,n,o])>1||l(e,t)})})}function l(e,t){try{var n;(n=i[e](t)).value instanceof D?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},P=function(e){var t=typeof e;return"string"===t||"number"===t},F=new DataView(new ArrayBuffer(0)),N=new Uint8Array(F.buffer),B=function(){try{F.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),U=new B("Insufficient data"),W=new O,z=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===o&&(o=4294967295),void 0===i&&(i=4294967295),void 0===a&&(a=4294967295),void 0===s&&(s=4294967295),void 0===l&&(l=W),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=F,this.bytes=N,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=k(e),o=new Uint8Array(t.length+n.length);o.set(t),o.set(n,t.length),this.setBuffer(o)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return M(this,function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:if(!this.hasRemaining(1))return[3,3];return[4,this.doDecodeSync()];case 2:return t.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(e){var t,n,o,i;return I(this,void 0,void 0,function(){var a,s,l,u,c,d,p;return M(this,function(h){switch(h.label){case 0:a=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=j(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof B))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:h.sent()},[3,12];case 7:if(h.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(o)throw o.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,c=u.headByte,d=u.pos,p=u.totalPos,RangeError("Insufficient data in parsing ".concat(R(c)," at ").concat(p," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return L(this,arguments,function(){var n,o,i,a,s,l,u,c;return M(this,function(d){switch(d.label){case 0:n=t,o=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),i=j(e),d.label=2;case 2:return[4,D(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(s=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),n&&(o=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,D(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:if(d.sent(),0==--o)return[3,8];return[3,5];case 8:return[3,10];case 9:if(!((l=d.sent())instanceof B))throw l;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u={error:d.sent()},[3,19];case 14:if(d.trys.push([14,,17,18]),!(a&&!a.done&&(c=i.return)))return[3,16];return[4,D(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(u)throw u.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){r:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192){if(e<128)t=e;else if(e<144){var n=e-128;if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(e<160){var n=e-144;if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else{var o=e-160;t=this.decodeUtf8String(o,0)}}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e){var o=this.lookU8();t=this.decodeUtf8String(o,1)}else if(218===e){var o=this.lookU16();t=this.decodeUtf8String(o,2)}else if(219===e){var o=this.lookU32();t=this.decodeUtf8String(o,4)}else if(220===e){var n=this.readU16();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(221===e){var n=this.readU32();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(222===e){var n=this.readU16();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(223===e){var n=this.readU32();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(196===e){var n=this.lookU8();t=this.decodeBinary(n,1)}else if(197===e){var n=this.lookU16();t=this.decodeBinary(n,2)}else if(198===e){var n=this.lookU32();t=this.decodeBinary(n,4)}else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e){var n=this.lookU8();t=this.decodeExtension(n,1)}else if(200===e){var n=this.lookU16();t=this.decodeExtension(n,2)}else if(201===e){var n=this.lookU32();t=this.decodeExtension(n,4)}else throw new C("Unrecognized type byte: ".concat(R(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(0===a.type){if(a.array[a.position]=t,a.position++,a.position===a.size)i.pop(),t=a.array;else continue r}else if(1===a.type){if(!P(t))throw new C("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new C("The key __proto__ is not allowed");a.key=t,a.type=2;continue r}else if(a.map[a.key]=t,a.readCount++,a.readCount===a.size)i.pop(),t=a.map;else{a.key=null,a.type=1;continue r}}return t}},e.prototype.readHeadByte=function(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new C("Unrecognized array type byte: ".concat(R(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new C("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new C("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){if(e>this.maxStrLength)throw new C("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw U;var n,o,i,a=this.pos+t;return this.stateIsMapKey()&&(null===(o=this.keyDecoder)||void 0===o?void 0:o.canBeCached(e))?i=this.keyDecoder.decode(this.bytes,a,e):e>A?(n=this.bytes.subarray(a,a+e),i=b.decode(n)):i=v(this.bytes,a,e),this.pos+=t+e,i},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new C("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw U;var n=this.pos+t,o=this.bytes.subarray(n,n+e);return this.pos+=t+e,o},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new C("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),o=this.decodeBinary(e,t+1);return this.extensionCodec.decode(o,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=a(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),V={};let K=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,$=e=>K(e)&&"R19Error"===e.name&&"procedurePath"in e,H=e=>{if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await q(e[o],t);return n}if(H(e)){let n={};for(let o in e)n[o]=await q(e[o],t);return n}return await t(e)};var Z=Object.defineProperty,Y=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(Y(e,"symbol"!=typeof t?t+"":t,n),n);class J extends Error{constructor(e,t={}){super(),Q(this,"procedurePath"),Q(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,J),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let X=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>X(e,[...t,o.toString()])}),ee=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return X(async(n,o)=>{var i,a,s,l;let u=await q(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new J("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:u},new T((a={ignoreUndefined:!0}).extensionCodec,a.context,a.maxDepth,a.initialBufferSize,a.sortKeys,a.forceFloat32,a.ignoreUndefined,a.forceIntegerToFloat).encodeSharedRef(i)),d=await t(e.serverURL,{method:"POST",body:c,headers:{"Content-Type":"application/msgpack"}}),p=(s=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=V),new z(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(s));if(!("error"in p))return q(p.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=p.error;if($(e)){let t=new J(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(K(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new J("An unexpected response was received from the RPC server.",{procedurePath:n,procedureArgs:o,cause:p})}})})({serverURL:(o={serverURL:"/_manager"}).serverURL,fetch:o.fetch})},78254:function(e,t,n){"use strict";n.d(t,{Vo:function(){return w},t7:function(){return h},Hm:function(){return g},jP:function(){return m},hr:function(){return p},W6:function(){return v},YS:function(){return b},Ch:function(){return y},Jk:function(){return A}});var o=n(17620),i=n.n(o),a=n(32145),s=n(16442),l=n(13105);let u=(e,t)=>void 0===e?e:{...e,tabs:e.tabs.map(e=>{var n;return e.sliceZone?{...e,sliceZone:{...e.sliceZone,value:null===(n=e.sliceZone)||void 0===n?void 0:n.value.filter(e=>e.key!==t)}}:e})};var c=n(9149),d=n(7723);let p=(0,a.createAction)("CUSTOM_TYPE/SAVE_SUCCESS")(),h=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),g=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),y=e=>Object.values(e.availableCustomTypes),v=e=>Object.keys(e.availableCustomTypes),b=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),A=(e,t)=>e.availableCustomTypes[t],w=(e,t)=>{if(!e)return null;switch(t.type){case(0,a.getType)(c.U1):return{...(0,l.d)(t.payload.localCustomTypes,t.payload.remoteCustomTypes)};case(0,a.getType)(h):{let n=(0,l.$)(t.payload.newCustomType);return{...e,...n}}case(0,a.getType)(p):{let n=t.payload.newCustomType;return{...e,[n.id]:{...e[n.id],local:n}}}case(0,a.getType)(m):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(g):{let n=e[t.payload.customTypeId];if((0,s.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,s.TG)(n))return i()(e,t.payload.customTypeId);return e}case(0,a.getType)(d.xg):{let n=t.payload.sliceId;return Object.entries(e).map(e=>{let[t,o]=e;return(0,s.TG)(o)?[t,{...o,local:u(o.local,n)}]:[t,o]}).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})}default:return e}}},9149:function(e,t,n){"use strict";n.d(t,{Ak:function(){return p},Lq:function(){return c},MY:function(){return u},TA:function(){return h},U1:function(){return i},gZ:function(){return d},wW:function(){return m},x0:function(){return l},zj:function(){return s}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),s=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,u=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,p=e=>e.environment.packageManager,h=e=>e.userContext.authStatus,m=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(i):return{...e,...t.payload.env};case(0,o.getType)(a):return{...e,manifest:{...e.manifest,localSliceSimulatorURL:t.payload.value}};default:return e}}},13347:function(e,t,n){"use strict";n.d(t,{CK:function(){return c},HP:function(){return u},U:function(){return p},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),s=n(17392);let l={...i()(s.z,()=>!1)},u=(0,a.createAction)("LOADING/START")(),c=(0,a.createAction)("LOADING/STOP")(),d=(e,t)=>e.loading[t],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(u):return{...e,[t.payload.loadingKey]:!0};case(0,a.getType)(c):return{...e,[t.payload.loadingKey]:!1};default:return e}}},17392:function(e,t,n){"use strict";var o;n.d(t,{z:function(){return o}}),(o||(o={})).LOGIN="LOGIN"},75966:function(e,t,n){"use strict";n.d(t,{XV:function(){return p},ZR:function(){return c},gP:function(){return d},re:function(){return u}});var o=n(34519),i=n.n(o),a=n(32145),s=n(34830);let l={...i()(s.q,()=>!1)},u=(0,a.createAction)("MODAL/CLOSE")(),c=(0,a.createAction)("MODAL/OPEN")(),d=(e,t)=>e.modal[t],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(u):return l;case(0,a.getType)(c):return{...l,[t.payload.modalKey]:!0};default:return e}}},34830:function(e,t,n){"use strict";var o,i;n.d(t,{q:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.SCREENSHOT_PREVIEW="SCREENSHOT_PREVIEW",i.SCREENSHOTS="SCREENSHOTS"},7723:function(e,t,n){"use strict";n.d(t,{Kg:function(){return l},Sd:function(){return h},dS:function(){return s},ek:function(){return d},og:function(){return p},sT:function(){return m},xB:function(){return y},xC:function(){return g},xg:function(){return u},zy:function(){return c}});var o=n(32145),i=n(73757),a=n(9149);let s=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),u=(0,o.createAction)("SLICES/DELETE_SUCCESS")(),c=(0,o.createAction)("SLICE/UPDATE_SUCCESS")(),d=(0,o.createAction)("SLICE/GENERATE_CUSTOM_SCREENSHOT_SUCCESS")(),p=(0,o.createAction)("SLICE/UPDATE_MOCK_SUCCESS")(),h=e=>e.slices.libraries,m=e=>e.slices.remoteSlices,g=e=>(0,i.R)(e.slices.libraries,m(e)),y=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(a.U1):return{...e,libraries:t.payload.libraries,remoteSlices:t.payload.remoteSlices};case(0,o.getType)(s):return{...e,libraries:t.payload.libraries};case(0,o.getType)(l):{let{libName:n,renamedSlice:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.map(e=>e.model.id!==o.id?e:{...e,model:o})});return{...e,libraries:i}}case(0,o.getType)(c):{let n=t.payload.component,o=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id!==n.model.id?e:n)});return{...e,libraries:o}}case(0,o.getType)(d):{let{component:n,screenshot:o,variationId:i}=t.payload,a=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id===n.model.id?{...n,screenshots:{...n.screenshots,[i]:o}}:e)});return{...e,libraries:a}}case(0,o.getType)(u):{let{libName:n,sliceId:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.filter(e=>e.model.id!==o)});return{...e,libraries:i}}case(0,o.getType)(p):{let{libraryID:n,sliceID:o,mocks:i}=t.payload,a=e.libraries.map(e=>{if(e.name!==n)return e;let t=e.components.map(e=>e.model.id!==o?e:{...e,mocks:i});return{...e,components:t}});return{...e,libraries:a}}default:return e}}},54597:function(e,t,n){"use strict";var o=n(56580),i=n(94840),a=n(78254),s=n(9149),l=n(13347),u=n(17392),c=n(75966),d=n(34830),p=n(7723),h=n(79384);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,s.U1)({env:t.env,remoteCustomTypes:t.remoteCustomTypes,localCustomTypes:t.customTypes,libraries:t.libraries,remoteSlices:t.remoteSlices,clientError:t.clientError}))},openScreenshotsModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOTS})),openLoginModal:()=>e((0,c.ZR)({modalKey:d.q.LOGIN})),startLoadingLogin:()=>e((0,l.HP)({loadingKey:u.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:u.z.LOGIN})),deleteCustomTypeSuccess:t=>e((0,a.Hm)({customTypeId:t})),renameCustomTypeSuccess:t=>e((0,a.jP)({renamedCustomType:i.Dc.toSM(t)})),saveCustomTypeSuccess:t=>e((0,a.hr)({newCustomType:i.Dc.toSM(t)})),saveSliceSuccess:t=>{e((0,p.zy)({component:t}))},saveSliceCustomScreenshotSuccess:(t,n,o)=>{e((0,p.ek)({variationId:t,screenshot:n,component:o}))},createSliceSuccess:t=>e((0,p.dS)({libraries:t})),renameSliceSuccess:(t,n)=>e((0,p.Kg)({renamedSlice:n,libName:t})),deleteSliceSuccess:(t,n)=>e((0,p.xg)({sliceId:t,libName:n})),setSeenSimulatorToolTip:()=>e((0,h.kd)()),setSeenChangesToolTip:()=>e((0,h.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,h.po)()),createCustomTypeSuccess:t=>e((0,a.t7)({newCustomType:i.Dc.toSM(t)})),updateSliceMockSuccess:t=>e((0,p.og)(t))}}},79384:function(e,t,n){"use strict";n.d(t,{bv:function(){return d},e4:function(){return p},kd:function(){return l},mw:function(){return u},po:function(){return c}});var o=n(32145),i=n(93671),a=n(9149);let s={hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/VIEW_SIMULATOR_TOOL_TIP")(),u=(0,o.createAction)("USER_CONTEXT/VIEW_CHANGES_TOOL_TIP")(),c=(0,o.createAction)("USER_CONTEXT/CHANGES_PUSH_SUCCESS")(),d=e=>e.userContext.hasSeenSimulatorToolTip||!1,p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):return{...e,hasSeenSimulatorToolTip:!0};case(0,o.getType)(u):return{...e,hasSeenChangesToolTip:!0};case(0,o.getType)(a.U1):return{...e,authStatus:h(t.payload.clientError)};case(0,o.getType)(c):return{...e,lastSyncChange:Date.now()};default:return e}},h=e=>{switch(null==e?void 0:e.status){case void 0:return i.t.AUTHORIZED;case 403:return i.t.UNAUTHORIZED;case 401:return i.t.FORBIDDEN;default:return i.t.UNKNOWN}}},93671:function(e,t,n){"use strict";var o,i;n.d(t,{t:function(){return o}}),(i=o||(o={})).AUTHORIZED="authorized",i.UNAUTHORIZED="unauthorized",i.FORBIDDEN="forbidden",i.UNKNOWN="unknown"},89062:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tw}});var o,i,a,s,l,u,c,d,p,h,m,g,y=n(52322);n(5758),n(34112),n(10802),n(52422),n(32172),n(83171),n(62400),n(42447),n(43002),n(79048),n(46248),n(57),n(28460),n(68870);var v=n(56803),b=function(){return(b=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},A={fromJS:function(e){return e},getIn:function(e,t){for(var n=e,o=0;o<t.length&&n;++o)n=n[t[o]];return n},merge:function(e,t){return b(b({},e),t)}},w=n(2784),x=n(56580),C=n(5632),S=n.n(C),_="@@router/LOCATION_CHANGE",k=function(e){return{type:_,payload:{location:e}}},T=n(38398),R=function(e){var t=(0,T.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},O=n(28316),I=function(e,t){var n={set:e.router.set};return e.router.set=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.set?new Promise(function(i,a){O.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(k(R(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},M=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:R(e)})}};M(A);var j=(h=A.merge,m=M(A)(),function(e,t){return(void 0===e&&(e=m),t.type===_)?h(e,t.payload):e}),D=(g=A.getIn,function(e){var t=e.Router||S(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,w.useRef)(0),s=(0,w.useRef)(!0),l=(0,w.useRef)(!1);function u(){s.current=--a.current<=0}function c(){s.current=++a.current<=0}return(0,w.useEffect)(function(){return i.subscribe(function(){if(s.current){var e=g(i.getState(),[o,"location"]),n=e.pathname,a=e.search,u=e.hash,c=e.href,d=R(t.asPath),p=d.pathname,h=d.search,m=d.hash;if(p!==n||h!==a||u!==m){var y="".concat(n).concat(a).concat(u);l.current=!0,t.replace(c,y)}}})},[t,i,o]),(0,w.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==g(i.getState(),[o,"location"]).href&&i.dispatch(k(R(e))),u()}return t.ready(function(){e=I(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",u),t.events.on("routeChangeComplete",n),t.events.on("hashChangeStart",c),t.events.on("hashChangeComplete",n)}),function(){e(),t.events.off("routeChangeStart",c),t.events.off("routeChangeError",u),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),w.createElement(w.Fragment,{},e.children)}),L=n(25237),P=n.n(L),F=n(97729),N=n.n(F);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){var t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var e,t,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=(e=(t=U(n)).call.apply(t,[this].concat(a)))&&("object"===B(e)||"function"==typeof e)?e:W(this),V(W(o),"state",{bootstrapped:!1}),V(W(o),"_unsubscribe",void 0),V(W(o),"handlePersistorState",function(){o.props.persistor.getState().bootstrapped&&(o.props.onBeforeLift?Promise.resolve(o.props.onBeforeLift()).finally(function(){return o.setState({bootstrapped:!0})}):o.setState({bootstrapped:!0}),o._unsubscribe&&o._unsubscribe())}),o}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(w.PureComponent);V(K,"defaultProps",{children:null,loading:null});var $=n(59326),H=n(62273),q=n(28165);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Y=function(e){return"--theme-ui-"+e.replace("-__default","")},Q=function(e){return"var("+Y(e)+")"},J=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},X=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),ee=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],s=J(n,i);if(a&&"object"==typeof a){o[i]=e(a,s);continue}if(X.has(i)){o[i]=a;continue}o[i]=Q(s)}return o},et=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=J(t,i),s=n[i];s&&"object"==typeof s?o=Z({},o,e(a,s)):o[Y(a)]=s}return o},en=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,s=e.rawColors||e.colors;if(!s||!1===a)return{};if(!1===n)return(0,H.iv)({color:"text",bg:"background"})(e);var l=s.modes||{},u=er(s,l);if(i){var c=l[i];c||i!==o||(c=s),c?u["@media print"]=et("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:s,printColorModeName:i})}var d=function(e){return Q("colors-"+e)};return(0,H.iv)(Z({},u,{color:d("text"),bg:d("background")}))(e)};function er(e,t){var n=et("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=et("colors",t[e])}),n}var eo="theme-ui-color-mode",ei="(prefers-color-scheme: dark)",ea={get:function(){try{return window.localStorage.getItem(eo)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}},set:function(e){try{window.localStorage.setItem(eo,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},es=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(ei).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},el="undefined"==typeof window?function(){}:w.useLayoutEffect,eu=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,s=i.useColorSchemeMediaQuery,l=i.useLocalStorage,u=(0,w.useState)(function(){return!1!==s&&es()||a}),c=u[0],d=u[1];el(function(){var e=!1!==l&&ea.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==s&&e&&e!==c&&(c=e,d(e))},[]),(0,w.useEffect)(function(){c&&!1!==l&&ea.set(c)},[c,l]);var p=(0,w.useCallback)(function(){d(es()||a)},[a]);(0,w.useEffect)(function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.addEventListener?e.addEventListener("change",p):"function"==typeof e.addListener&&e.addListener(p)}return function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.removeEventListener?e.removeEventListener("change",p):"function"==typeof e.removeListener&&e.removeListener(p)}}},[s,p]);var h=ed({colorMode:c,outerTheme:o}),m=Z({},t,{theme:h,colorMode:c,setColorMode:d});return w.createElement($.vg,{context:m},w.createElement(ef,{theme:h}),n)},ec=function(e){var t=Z({},e);return delete t.modes,t};function ed(e){var t=e.outerTheme,n=e.colorMode;return(0,w.useMemo)(function(){var e=Z({},t),o=(0,H.U2)(e,"colors.modes",{}),i=(0,H.U2)(o,n,{});n&&(e.colors=Z({},e.colors,i));var a=t.config||t,s=a.useCustomProperties,l=a.initialColorModeName,u=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==s){var d=null!=e.rawColors,p=e.colors||{};if(d)!function e(t,n){for(var o=0,i=Object.entries(t);o<i.length;o++){var a=i[o],s=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var u=Z({},n[s]);e(l,u),n[s]=u}}else n[s]=l}}(p,c=Z({},c)),c.modes&&(c.modes[u]=ec(c)),e.rawColors=c;else if("modes"in c){var h,m=Z(((h={})[u]=ec(c),h),c.modes);e.rawColors=Z({},p,{modes:m})}else e.rawColors=p;e.colors=ee(ec(c),"colors")}return e},[n,t])}function ef(e){var t=e.theme;return(0,$.tZ)(q.xB,{styles:function(){return{html:en(t)}}})}function ep(e){var t,n=e.outerCtx,o=e.children,i=ed({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,w.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),s=a[0],l=a[1];el(function(){l(!1)},[]);var u=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,w.useMemo)(function(){if(!1===c)return{};var e=u||{};return(0,H.iv)(er(e,e.modes||{}))(i)},[i,u,c]);return w.createElement($.vg,{context:Z({},n,{theme:i})},(0,$.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(s),suppressHydrationWarning:!0,css:d,children:o}))}var eh=function(e){var t=e.children,n=(0,$.B7)();return"function"!=typeof n.setColorMode?w.createElement(eu,{outerCtx:n},t):w.createElement(ep,{outerCtx:n},t)},em=function(){return(0,$.tZ)(q.xB,{styles:function(e){if(!1===(e.config||e).useRootStyles||e.styles&&!e.styles.root)return null;var t,n=(null==(t=e.config)?void 0:t.useBorderBox)===!1?void 0:"border-box";return(0,H.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},eg=function(e){var t=e.theme,n=e.children,o=(0,$.B7)()===$.yo;return w.createElement($.f6,{theme:t},w.createElement(eh,null,o&&w.createElement(em,null),n))},ey=n(94160),ev=n(17378),eb=n(68968),eA=n(14101),ew=n(65077),ex=n(88581),eC=n(49857),eS=n(54597),e_=()=>{let{refreshState:e}=(0,eS.Z)(),t=(0,w.useCallback)(e,[]),{data:n}=(0,eC.ZP)("getState",async()=>await (0,ey.y0)());(0,w.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),ex.av({id:n.env.shortId}),ex.YA("repository",n.env.repo),ex.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},ek=n(7723),eE=n(80148),eT=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)})),t=(0,C.useRouter)();(0,w.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);ey.Xe.group({manualLibsCount:e.filter(e=>e.meta.isManual).length,downloadedLibsCount:t.length,npmLibsCount:e.filter(e=>e.meta.isNodeModule).length,downloadedLibs:t.map(e=>{var t;return null!==(t=e.meta.name)&&void 0!==t?t:"Unknown"})})})(e),eR()},[]),(0,w.useEffect)(()=>{let e=()=>{eR()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eR(){let e=await eE.managerClient.project.getAdapterName();return ey.Xe.track({event:"page-view",url:window.location.href,path:window.location.pathname,search:window.location.search,title:document.title,referrer:document.referrer,adapter:e,outerWidth:window.outerWidth,outerHeight:window.outerHeight,screenWidth:window.screen.width,screenHeight:window.screen.height})}var eO=n(51384),eI=n(37149),eM=n.n(eI),ej=n(88932),eD=n(75289),eL=n(13718),eP=n(75882),eF=n(55862),eN=n(13105),eB=n(73757);async function eU(e,t,n,o){let i=0,a=(s,l)=>{Promise.resolve(e()).then(e=>{t(e)?s(e):i<o?(i+=1,setTimeout(a,n,s,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eW=n(9149),ez=n(13347),eV=n(17392),eK=n(75966),e$=n(34830),eH=n(93671),eq=()=>{eM().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,eK.gP)(e,e$.q.LOGIN),isLoginLoading:(0,ez.hg)(e,eV.z.LOGIN),env:(0,eW.zj)(e)})),{syncChanges:o}=(0,eb.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:s}=(0,eS.Z)(),l=function(e){try{let t=new URL(e),n=[".wroom.io",".wroom.test",".dev-tools-wroom.com",".marketing-tools-wroom.com",".platform-wroom.com"].find(e=>t.hostname.endsWith(e));if(void 0!==n)return t.hostname=n.slice(1),t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),u="".concat(function(e){let t=t=>"".concat(e).concat(t);return{Dashboard:{index:t("dashboard"),cliLogin:t("dashboard/cli/login?source=slice-machine"),cliSignup:t("dashboard/cli/signup?source=slice-machine")}}}(l+"/").Dashboard.cliLogin,"&port=").concat(window.location.port||"9999","&path=/api/auth"),c=async()=>{if(u)try{a(),await (0,ey.Yf)(),window.open(u,"_blank"),await eU(ey.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),ej.Am.success("Logged in"),s(),i();let e=await (0,ey.y0)(),t=(0,eB.R)(e.libraries,e.remoteSlices),n=Object.values((0,eN.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eP.m)({authStatus:eH.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eL.j)();(null==d?void 0:d.kind)==="dev"&&(l.length>0||c.length>0)&&o({environment:d,loggedIn:!0,changedCustomTypes:l,changedSlices:c})}catch(e){s(),ej.Am.error("Login failed")}};return(0,y.jsx)(eF.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:i,contentLabel:"login_modal",style:{content:{position:"static",display:"flex",margin:"auto",minHeight:"initial"},overlay:{display:"flex"}},children:(0,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.kC,{sx:{p:"16px",bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,y.jsx)(eD.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,y.jsx)(eD.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,y.jsx)(eD.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,y.jsxs)(y.Fragment,{children:["Not seeing the browser tab? ",(0,y.jsx)("br",{}),(0,y.jsx)(eD.rU,{target:"_blank",href:u,children:"Click here"})]}):(0,y.jsxs)(y.Fragment,{children:["Your session has expired.",(0,y.jsx)("br",{}),"Please log in again."]})}),(0,y.jsx)(eD.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,y.jsx)(eD.$j,{color:"#FFF",size:16}):(0,y.jsx)(y.Fragment,{children:"Log in to Prismic"})})]})]})})};let eG=()=>(0,y.jsxs)(eD.xu,{children:[(0,y.jsxs)("p",{children:["We could not find any local library in your project.",(0,y.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,y.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var eZ=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)}));return eT(),e_(),(0,y.jsxs)(y.Fragment,{children:[n.length>0?t:(0,y.jsx)(eO.LN,{children:(0,y.jsx)(eO.RN,{children:(0,y.jsx)(ew.xR,{children:(0,y.jsx)(eG,{})})})}),(0,y.jsx)(eq,{})]})},eY=e=>{let{children:t}=e;return(0,y.jsx)(eD.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},eQ=()=>(0,y.jsx)(eY,{children:(0,y.jsx)(eD.$j,{variant:"styles.spinner",id:"spinner"})}),eJ=n(39204),eX=n(18717),e0="persist:",e1="persist/FLUSH",e2="persist/REHYDRATE",e5="persist/PAUSE",e3="persist/PERSIST",e6="persist/PURGE",e4="persist/REGISTER";function e8(e){return(e8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function e9(e,t,n,o){o.debug;var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e7(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e7(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===e8(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function te(e){return JSON.stringify(e)}function tt(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:e0).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:tn,i.getItem(o).then(function(e){if(e)try{var o={},i=t(e);return Object.keys(i).forEach(function(e){o[e]=n.reduceRight(function(t,n){return n.out(t,e,i)},t(i[e]))}),o}catch(e){throw e}})}function tn(e){return JSON.parse(e)}function tr(e){}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ta(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tu={registry:[],bootstrapped:!1},tc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e4:return tl({},e,{registry:[].concat(ta(e.registry),[t.key])});case e2:var n=e.registry.indexOf(t.key),o=ta(e.registry);return o.splice(n,1),tl({},e,{registry:o,bootstrapped:0===o.length});default:return e}},td=n(14549),tf=n(78254),tp=n(79384),th=()=>(0,eX.UY)({modal:eK.XV,loading:ez.U,userContext:tp.e4,environment:eW.wW,availableCustomTypes:tf.Vo,slices:ek.xB,router:j});let tm={key:"root",storage:td.Z,whitelist:["userContext"]},tg=(void 0===o&&(o={}),s=void 0===(a=o.Router)?S():a,u=void 0===(l=o.methods)?{}:l,d=void 0===(c=o.reducerKey)?"router":c,p=["push","prefetch","replace"].reduce(function(e,t){return e[t]=u[t]?u[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(s&&!i&&o!==_){var a=A.getIn(e.getState(),[d,"location"]);s.asPath!==a.href&&t(k(R(s.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,u=l.args,c=p[l.method];"go"!==c||i||"number"!=typeof u[0]?c&&Object.prototype.hasOwnProperty.call(s,c)&&s[c].apply(s,u):window.history.go(u[0])}}});var ty=n(12170),tv=()=>({initialColorModeName:"light",colors:{text:"#25252D",textClear:"#6F6E77",grayLight:"#E8E8ED",hoverBackground:"#f2f2f2",background:"#FFF",backgroundClear:"#FFF",primary:"#5D40F7",purpleLight:"#F6F1FC",purpleLight01:"#6548FF1A",purple12:"#F1EEFE",purpleStrong:"#5842C3",whiteButtonText:"#1A1523",codeBlockBackground:"#32275F",failedConnectText:"#86848D",changesWarning:{background:"#FFECC7",color:"#5C0C17"},greyIcon:"#6F6E77",greyIconDisabled:"#C9D0D8",missingScreenshotBanner:{color:"#5C0C17",bg:"#FFECC7"},badge:{new:{bg:"#DBEDDB",color:"#05644D"},modified:{bg:"#FFECC7",color:"#5C0C17"},synced:{bg:"purple12",color:"#5842C3"},deleted:{bg:"rgba(203, 36, 49, 0.1)"},unknown:{bg:"#F3F5F7",color:"#9AA4AF"}},codeBlockBorder:"#545454",secondary:"#F9FAFB",danger:"#CB2431",highlight:"hsl(10, 40%, 90%)",purple:"#5B3DF5",purple08:"#5842C3",muted:"#F9F9FB",icons:"#8091A5",gray:"#F8F9FA",grey01:"#F3F5F7",grey02:"#E6E6EA",grey03:"#F4F2F4",grey04:"#9AA4AF",grey05:"#667587",grey07:"#F9F8F9",grey10:"#86848D",grey12:"#1A1523",greyTransparent:"rgba(37, 37, 45, 0.4)",borders:"#E4E2E4",bordersFocused:"#6E56CF",deep:"#0E2150",deep1:"#A0ADE7",lightGreen:"#EBF8F1",lightOrange:"#FDF4EC",darkOrange:"#C17C10",error:"#E55737",success:"#3AB97A",headSection:"#fff",warning:"#E67E22",warning02:"#ED811C",sidebar:"#F1F1F4",link:"#6E56CF",choggleBox:"#5163BA",darkBorder:"#DCDBDD",code:{border:"#DFE1E5",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},modes:{dark:{text:"#fff",textClear:"#6E707B",hoverBackground:"#202020",grey02:"#E6E6EA",background:"#202022",backgroundClear:"#28282C",primary:"#4E54D7",secondary:"#28282C",icons:"#5D5D71",gray:"#1D1D1F",borders:"#3A3A46",deep:"#28282C",headSection:"#28282C",warning:"#E67E22",sidebar:"#28282C",code:{border:"#5D5D6F",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},link:"#A9A9C6",choggleBox:"#fff"}}},fonts:{body:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",monospace:"Menlo, monospace"},fontSizes:[12,14,16,20,24,32,48,64,72],breakpoints:["40em","56em","64em"],fontWeights:{thin:300,body:400,heading:500,label:500,bold:600,display:900},lineHeights:{body:1.5,heading:1.25},textStyles:{heading:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"},display:{variant:"textStyles.heading",fontSize:[5,6],fontWeight:"display",letterSpacing:"-0.03em",mt:3}},sizes:{leftSidebar:220,sidebar:340},text:{xs:{fontWeight:"400",color:"textClear",fontSize:1,fontFamily:"body"},small:{fontWeight:"500",fontSize:2,fontFamily:"body"},labelError:{color:"error",fontWeight:"body",fontSize:1,marginLeft:2,marginBottom:"0!important"},secondary:{color:"greyIcon",fontSize:1},pre:{fontSize:1,fontWeight:"400",color:"textClear",bg:"grey01",p:"2px"},heading:{fontWeight:"500"},grey:{color:"#4E4E55"}},badges:{SYNCED:{fontWeight:"body",color:"badge.synced.color",bg:"badge.synced.bg",px:1,py:"1px"},NEW:{fontWeight:"body",color:"badge.new.color",bg:"badge.new.bg",px:1,py:"1px"},MODIFIED:{fontWeight:"body",color:"badge.modified.color",bg:"badge.modified.bg",px:1,py:"1px"},DELETED:{fontWeight:"body",color:"danger",bg:"badge.deleted.bg",px:1,py:"1px"},UNKNOWN:{fontWeight:"body",color:"badge.unknown.color",bg:"badge.unknown.bg",px:1,py:"1px"},circle:{borderRadius:"50%",fontSize:"10px"},primary:{color:"text",bg:"primary"},"circle-right":{top:"-8px",right:"-8px",height:"24px",width:"24px",display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",borderRadius:"50%"},outline:{color:"primary",fontSize:"14px",fontWeight:"500",bg:"transparent",border:"none",borderColor:"borders"}},boxes:{centered:{height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"}},buttons:{primary:{color:"white",fontSize:1,fontFamily:"body",fontWeight:"body",lineHeight:"24px",padding:"7px 15px",borderRadius:"4px",userSelect:"none",bg:(0,ty.Fq)("primary",.9),borderColor:"primary",borderStyle:"solid",borderWidth:"1px",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{cursor:"pointer",bg:"primary"},"&:focus":{boxShadow:"0px 0px 0px 1px var(--theme-ui-colors-primary)",borderColor:"white",bg:"primary",outline:"none"},"&:disabled":{cursor:"not-allowed",bg:(0,ty.Fq)("primary",.5),borderColor:"transparent"}},screenSize:{p:0,fontFamily:"body",display:"flex",justifyContent:"center",alignItems:"center",height:"32px",width:"32px",bg:"text",color:"white",cursor:"pointer",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)"},secondary:{bg:"secondary",fontFamily:"body",fontWeight:"body",fontSize:"1",color:"textClear",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))},"&:hover:enabled":{bg:(0,ty._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,ty._j)("secondary",.05),borderColor:(0,ty._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,ty._j)("secondary",.06),outline:"none"}},danger:{bg:"danger",fontFamily:"body",fontWeight:"bold",fontSize:"1",color:"purple12",px:"16px",py:"8px",borderRadius:"6px",border:"1px solid #C61926","&:hover":{bg:(0,ty._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,ty._j)("danger",.05),borderColor:(0,ty._j)("danger",.15),outline:"none"},"&:active":{bg:(0,ty._j)("danger",.06),outline:"none"}},dropDownButton:{fontSize:"1",p:"3px",pl:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"6px",border:"1px solid #DCDBDD",fontWeight:"bold",bg:"secondary",fontFamily:"body",color:"textClear","&:hover":{"&:not([disabled])":{bg:(0,ty._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,ty._j)("secondary",.05),borderColor:(0,ty._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,ty._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,ty.Fq)("textClear",.6)},"&>svg":{pointerEvents:"none"}},small:{bg:"primary",borderRadius:"4px",pl:2,pr:2,pb:1,pt:1,fontFamily:"body",fontSize:"12px",fontWeight:"body"},secondarySmall:{background:"#FFFFFF",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",color:"#1A1523",fontFamily:"body",fontSize:"12px",lineHeight:"16px",pl:2,pr:2,py:"5px",cursor:"pointer","&:hover:enabled":{background:"#F4F2F4"},"&:active:enabled":{background:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"},"&:disabled":{cursor:"not-allowed",opacity:.5}},secondaryMedium:{padding:"4px 8px",borderRadius:"6px",fontSize:"14px",fontWeight:"bold",fontFamily:"body",lineHeight:"24px",letterSpacing:"-0.15px",color:"whiteButtonText",border:"1px solid #DCDBDD",backgroundColor:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer","&:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)",border:"1px solid #6E56CF"},"&:hover":{"&:not([disabled])":{backgroundColor:"#F4F2F4",cursor:"pointer"}},"&:active":{"&:not([disabled])":{backgroundColor:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"}},"&:disabled":{color:"#908E96",cursor:"not-allowed"}},darkSmall:{borderRadius:"4px",color:"white",fontFamily:"body",fontSize:"12px",fontWeight:"body",bg:"text",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty.$n)("text",.05),cursor:"pointer"}},lightSmall:{borderRadius:"4px",color:"text",fontSize:"12px",fontWeight:"body",fontFamily:"body",bg:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty._j)("white",.05),cursor:"pointer"}},actionDelete:{width:"100%",borderRadius:"4px",color:"error",fontSize:"16px",fontFamily:"body",fontWeight:"body",bg:"grey02",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty._j)("white",.05),cursor:"pointer"}},disabled:{bg:"#D6CEFC",fontSize:"1",color:"white",fontFamily:"body",cursor:"not-allowed",borderColor:"transparent"},disabledSecondary:{bg:"#F9F9FA",fontSize:"1",color:"#C9D0D8",fontFamily:"body",cursor:"not-allowed",border:"1px solid",borderColor:"1px solid rgba(62, 62, 72, 0.15)"},transparent:{background:"transparent",border:"none",fontFamily:"body",p:1,color:"primary",cursor:"pointer"},selectIcon:{fontFamily:"body","&:hover":{cursor:"pointer"},"&:focus, &:active":{outline:"none"}},textButton:{fontFamily:"body",border:"none",color:"primary",background:"transparent",p:1,position:"relative",top:"1px",ml:1,cursor:"pointer","&:hover":{background:"rgba(0,0,0,0.06) !important",borderRadius:"3px"}},close:{fontFamily:"body",color:"icons","&:hover":{bg:"rgba(0,0,0,0.08)",cursor:"pointer"},"&:focus":{outline:"none"}},icon:{fontFamily:"body","&:hover":{bg:"rgba(0,0,0,0.08)"},"&:focus":{outline:"none"}},round:{fontFamily:"body",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%"},white:{bg:"#FFF",color:"#1A1523",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",fontFamily:"body",fontWeight:"600",fontSize:1,px:3,cursor:"pointer"}},success:{done:{position:"absolute",top:"57px",width:"100%",p:2,bg:"success"},error:{position:"absolute",top:"57px",width:"100%",p:2,bg:"error"},warning:{position:"absolute",top:"57px",width:"100%",p:2,bg:"warning"}},cards:{primary:{bg:"gray",border:"1px solid",borderRadius:4,borderColor:"borders"},large:{py:2,bg:"gray",borderRadius:4,boxShadow:"0 0 8px rgba(0, 0, 0, 0.125)"},drawerCard:{backgroundColor:"white",boxShadow:"0px 2px 1px rgba(0, 0, 0, 0.05)",borderRadius:6,border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},px:16,py:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},forms:{disabled:{bg:"muted",cursor:"not-allowed",pointerEvents:"none"},checkbox:{color:"icons",dark:{color:"#161618",cursor:"pointer"}},radio:{color:"borders","&:checked":{color:"purple"}},input:{fontSize:1,bg:"headSection",borderColor:"borders",fontFamily:"body","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,ty._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},textarea:{fontSize:1,resize:"none",bg:"headSection",fontFamily:"body",borderColor:"borders","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,ty._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.choggleBox}},label:{fontSize:1,primary:{mb:2,fontSize:1,fontWeight:"label",position:"relative","& > span":{mb:1,display:"inline-block",fontWeight:"label"}},border:{fontSize:1,mb:1,fontWeight:"body",pt:"7px",pb:"6px",px:1,borderRadius:"3px",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))}},large:{fontSize:1,color:"grey12"}},switch:{height:"24px",width:"45px",bg:"#EDECEE","input:checked ~ &":{bg:"#6E56CF"},"input ~ & > div":{height:"20px",width:"20px",border:"1px solid #DCDBDD",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ & > div":{height:"20px",width:"20px",border:"1px solid #5842C3",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ &:hover":{bg:"#5842C3"},"input:checked ~ & > div:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)"}}},links:{hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.link},margin:"0 4px",textDecoration:"none",cursor:"pointer",display:"inline-block"},default:{color:"link"},invisible:{color:"text",textDecoration:"none",cursor:"pointer"},sidebar:{fontSize:1,color:"textClear",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{color:"text",bg:"grey02"}},sidebarEmphasis:{fontSize:1,color:"purple",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey02"}},cardSmall:{color:"purple08",fontSize:"12px",textDecoration:"none","&:hover":{textDecoration:"underline"}}},styles:{navLink:{color:"#FFF","&:hover":{color:"#FFF"}},deepNavLink:{color:"deep1"},listItem:{borderRadius:"3px",my:3,listStyleType:"none",justifyContent:"space-between"},Container:{p:3,maxWidth:1024},fixedHeader:{position:"fixed",alignItems:"center",justifyContent:"space-between",height:"48px",width:"100%",bg:"background",p:2,top:"0",left:"0"},success:{position:"absolute",width:"100%",p:2},disabledBox:{position:"absolute",zIndex:"1",height:"100%",width:"100%",background:"rgba(0, 0, 0, .1)"},root:{fontFamily:"body",lineHeight:"body",fontWeight:"body"},h1:{variant:"textStyles.display",fontSize:1},h2:{variant:"textStyles.heading",fontSize:5},h4:{variant:"textStyles.heading",fontSize:3},h5:{variant:"textStyles.heading",fontSize:2},h6:{variant:"textStyles.heading",fontSize:1},ul:{p:0,m:0},li:{listStyleType:"none"},hint:{display:"block",fontStyle:"normal",fontWeight:"normal"},inlineCode:{fontFamily:"monospace",color:"#6E56CF",bg:"#F1EEFE"},"table[data-legacy-component]":{width:"100%",borderCollapse:"collapse",borderSpacing:0,"td, th":{textAlign:"left",borderColor:"muted",borderBottomStyle:"solid"},td:{p:"24px"},"thead tr":{bg:"grey02",borderRadius:"4px",th:{p:"12px 24px"},"th:first-of-type":{borderBottomLeftRadius:"4px",borderTopLeftRadius:"4px"},"th:last-of-type":{borderBottomRightRadius:"4px",borderTopRightRadius:"4px"}},"thead tr.transparent":{bg:"transparent",color:"greyTransparent"},"thead tr.small":{fontSize:"12px"},"tbody tr:not(.disabled)":{cursor:"pointer",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey01"}},"tbody tr.disabled":{cursor:"not-allowed"}},th:{verticalAlign:"bottom",borderBottomWidth:"2px"},td:{verticalAlign:"top",borderBottomWidth:"1px"},hr:{border:0,borderBottom:"1px solid",borderColor:"code.border"},img:{maxWidth:"100%"}},alerts:{primary:{color:"background",bg:"primary"},muted:{color:"text",bg:"muted"}}});let tb=e=>{let{children:t}=e,{setColorMode:n}=(0,$.B7)();return(0,w.useEffect)(()=>{n&&n("light")},[]),(0,y.jsx)(y.Fragment,{children:t})};function tA(e){let{Component:t,pageProps:n}=e,[o,i]=(0,w.useState)(null),[a,s]=(0,w.useState)(null);(0,w.useEffect)(()=>{(async function(){i(await (0,ey.y0)())})()},[]),(0,w.useEffect)(()=>{if(!o||a)return;let e=(0,eN.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,s,l,u,c,d,p,h,m;let g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=[(0,eX.md)(tg)],v=eX.qC,b=th(),A=(e=void 0!==tm.version?tm.version:-1,tm.debug,t=void 0===tm.stateReconciler?e9:tm.stateReconciler,n=tm.getStoredState||tt,o=void 0!==tm.timeout?tm.timeout:5e3,i=null,a=!1,s=!0,l=function(e){return e._persist.rehydrated&&i&&!s&&i.update(e),e},function(u,c){var d,p,h=u||{},m=h._persist,g=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(h,["_persist"]);if(c.type===e3){var y=!1,v=function(e,t){y||(c.rehydrate(tm.key,e,t),y=!0)};if(o&&setTimeout(function(){y||v(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tm.key,'"')))},o),s=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:e0).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:te;var u=e.writeFailHandler||null,c={},d={},p=[],h=null,m=null;function g(){if(0===p.length){h&&clearInterval(h),h=null;return}var e=p.shift(),n=i.reduce(function(t,n){return n.in(t,e,c)},c[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===p.length&&(Object.keys(d).forEach(function(e){void 0===c[e]&&delete d[e]}),m=l.setItem(s,t(d)).catch(v))}function y(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function v(e){u&&u(e)}return{update:function(e){Object.keys(e).forEach(function(t){y(t)&&c[t]!==e[t]&&-1===p.indexOf(t)&&p.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&y(t)&&-1===p.indexOf(t)&&void 0!==c[t]&&p.push(t)}),null===h&&(h=setInterval(g,a)),c=e},flush:function(){for(;0!==p.length;)g();return m||Promise.resolve()}}}(tm)),m)return ti({},b(g,c),{_persist:m});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(tm.key),n(tm).then(function(t){(tm.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){v(e)},function(e){v(void 0,e)})},function(e){v(void 0,e)}),ti({},b(g,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===e6)return a=!0,c.result((d=tm.storage,p="".concat(void 0!==tm.keyPrefix?tm.keyPrefix:e0).concat(tm.key),d.removeItem(p,tr))),ti({},b(g,c),{_persist:m});if(c.type===e1)return c.result(i&&i.flush()),ti({},b(g,c),{_persist:m});if(c.type===e5)s=!0;else if(c.type===e2){if(a)return ti({},g,{_persist:ti({},m,{rehydrated:!0})});if(c.key===tm.key){var A=b(g,c),w=c.payload;return l(ti({},!1!==t&&void 0!==w?t(w,u,A,tm):A,{_persist:ti({},m,{rehydrated:!0})}))}}if(!m)return b(u,c);var x=b(g,c);return x===g?u:l(ti({},x,{_persist:m}))}),w=(0,eX.MT)(A,g,v(...y)),x=(c=!1,d=(0,eX.MT)(tc,tu,void 0),p=function(e){d.dispatch({type:e4,key:e})},h=function(e,t,n){var o={type:e2,payload:t,err:n,key:e};w.dispatch(o),d.dispatch(o),c&&m.getState().bootstrapped&&(c(),c=!1)},m=tl({},d,{purge:function(){var e=[];return w.dispatch({type:e6,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return w.dispatch({type:e1,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){w.dispatch({type:e5})},persist:function(){w.dispatch({type:e3,register:p,rehydrate:h})}}),u&&u.manualPersist||m.persist(),m);return{store:w,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});s({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||eZ;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(N(),{children:(0,y.jsx)("title",{children:"Slice Machine"})}),(0,y.jsx)(eg,{theme:tv,children:(0,y.jsx)(tb,{children:(0,y.jsx)(v.bP,{mode:"light",children:(0,y.jsx)(v.c4,{children:a&&o?(0,y.jsxs)(x.zt,{store:a.store,children:[(0,y.jsx)(D,{Router:S(),children:(0,y.jsx)(K,{loading:null,persistor:a.persistor,children:(0,y.jsx)(ev.S,{renderError:()=>(0,y.jsx)(v.D,{justifyContent:"center",width:"100%",padding:80,children:(0,y.jsx)(v.ax,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,y.jsx)(w.Suspense,{fallback:(0,y.jsx)(eQ,{}),children:(0,y.jsx)(eb.E,{children:(0,y.jsx)(eA.e,{children:(0,y.jsx)(l,{children:(0,y.jsx)(t,{...n})})})})})})})}),(0,y.jsx)(eJ.ZP,{})]}):(0,y.jsx)(eQ,{})})})})})]})}var tw=P()(()=>Promise.resolve(tA),{ssr:!1})},31860:function(e,t,n){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2?arguments[2]:void 0;return 1===t?e:null!=n?n:"".concat(e,"s")}n.d(t,{_:function(){return i},f:function(){return o}})},5758:function(){},32172:function(){},34112:function(){},10802:function(){},52422:function(){},83171:function(){},62400:function(){},42447:function(){},43002:function(){},79048:function(){},46248:function(){},57:function(){},28460:function(){},68870:function(){},10704:function(e){e.exports={reset:"BaseHoverCard_reset__HckHR",container:"BaseHoverCard_container__IZMCG BaseHoverCard_reset__HckHR",arrow:"BaseHoverCard_arrow__gvcjD BaseHoverCard_reset__HckHR"}},62628:function(e){e.exports={items:"Breadcrumb_items__eNDGh"}},56099:function(e){e.exports={block:"HoverCard_block__Fubs4",blockWithDisplayRevert:"HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",root:"HoverCard_root__OaRBr HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",title:"HoverCard_title__dO_Y9 HoverCard_block__Fubs4",titleCloseIcon:"HoverCard_titleCloseIcon__DlZJS HoverCard_block__Fubs4",mediaContainer:"HoverCard_mediaContainer__4Lt3z HoverCard_block__Fubs4",media:"HoverCard_media__U7jSc HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",description:"HoverCard_description__HZ9_z HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",closeButtonContainer:"HoverCard_closeButtonContainer__7JiLA HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4"}},86099:function(e){e.exports={grid:"PageLayout_grid__7Uz4n",root:"PageLayout_root___Ig6N PageLayout_grid__7Uz4n",borderTop:"PageLayout_borderTop__7ioR4","borderTopColor-amber":"PageLayout_borderTopColor-amber__S4eiH","borderTopColor-indigo":"PageLayout_borderTopColor-indigo__kxNiR","borderTopColor-purple":"PageLayout_borderTopColor-purple__xhEfx",pane:"PageLayout_pane__UIqt5 PageLayout_grid__7Uz4n",header:"PageLayout_header__hiJ6I PageLayout_grid__7Uz4n",content:"PageLayout_content__LanfI PageLayout_grid__7Uz4n",contentChildren:"PageLayout_contentChildren__ZjEbL PageLayout_grid__7Uz4n"}},31511:function(e){e.exports={root:"AutoSyncStatusIndicator_root__5KDU5",text:"AutoSyncStatusIndicator_text__UHXHm"}},6250:function(e){e.exports={logo:"SideNavEnvironmentSelector_logo__IFs4z",environmentDotBase:"SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-prod":"SideNavEnvironmentSelector_environmentDot-prod__Acp7Z SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-stage":"SideNavEnvironmentSelector_environmentDot-stage__DaYWK SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-dev":"SideNavEnvironmentSelector_environmentDot-dev__O5Gy7 SideNavEnvironmentSelector_environmentDotBase__abxi3",menuItemEnvironmentDot:"SideNavEnvironmentSelector_menuItemEnvironmentDot__oaC3y",activeEnvironmentDot:"SideNavEnvironmentSelector_activeEnvironmentDot__82bDR",activeEnvironmentName:"SideNavEnvironmentSelector_activeEnvironmentName__qy4rk",loginIcon:"SideNavEnvironmentSelector_loginIcon___VsYZ"}},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}},s=!0;try{t[e](a,a.exports,i),s=!1}finally{s&&delete o[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=b(e));var o,i,a,s,l,u,c,d,p,h=(i=(o=e).auth,a=o.hostname,s=o.protocol||"",l=o.pathname||"",u=o.hash||"",c=o.query||"",d=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",o.host?d=i+o.host:a&&(d=i+(~a.indexOf(":")?"["+a+"]":a),o.port&&(d+=":"+o.port)),c&&"object"==typeof c&&(c=t.encode(c)),p=o.search||c&&"?"+c||"",s&&":"!==s.substr(-1)&&(s+=":"),o.slashes||(!s||n.test(s))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),u&&"#"!==u[0]&&(u="#"+u),p&&"?"!==p[0]&&(p="?"+p),{protocol:s,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:p=p.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var s="http://",l=s+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?b(e):e;e="object"==typeof e?o(e):e;var i=b(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var d=e.match(u);d&&!i.protocol&&(e=e.substr((a=d[1]+(d[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var p=new URL(e,l+"/"),h=new URL(t,p).toString().replace(l,""),m=i.protocol||n.protocol;return m+=n.slashes||i.slashes?"//":"",!a&&m?h=h.replace(s,m):a&&(h=h.replace(s,"")),c.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),a&&(h=a+("/"===h[0]?h.substr(1):h)),h}function p(){}p.prototype.parse=b,p.prototype.format=o,p.prototype.resolve=d,p.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof p)return e;var a=(e=e.trim()).match(m);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var s=!/(^javascript)/.test(e)&&e.match(g),u=y.test(e),c="";s&&(h.test(s[1])||(c=s[1].toLowerCase(),e=""+s[2]+s[3]),s[2]||(u=!1,h.test(s[1])?(c=s[1],e=""+s[3]):e="//"+s[3]),3!==s[2].length&&1!==s[2].length||(c=s[1],e="/"+s[3]));var d,b=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=b&&b[1],w=new p,x="",C="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(C="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return w.protocol=c,w.href=c,w}}w.slashes=u&&!C,w.host="w.w"===d.host?"":d.host,w.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),w.protocol=x?c||null:d.protocol,w.search=d.search.replace(/\\/g,"%5C"),w.hash=d.hash.replace(/\\/g,"%5C");var S=e.split("#");!w.search&&~S[0].indexOf("?")&&(w.search="?"),w.hash||""!==S[1]||(w.hash="#"),w.query=n?t.decode(d.search.substr(1)):w.search.substr(1),w.pathname=C+(s?d.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):d.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=d.port,A&&!w.host.endsWith(A)&&(w.host+=A,w.port=A.slice(1)),w.href=C?""+w.pathname+w.search+w.hash:o(w);var _=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~_.indexOf(e)||(w[e]=w[e]||null)}),w}a.parse=b,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return b(d(e,t))},a.Url=p}(),e.exports=a}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,o,i){n=n||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,p,h,m,g=e[c].replace(s,"%20"),y=g.indexOf(o);(y>=0?(d=g.substr(0,y),p=g.substr(y+1)):(d=g,p=""),h=decodeURIComponent(d),m=decodeURIComponent(p),Object.prototype.hasOwnProperty.call(a,h))?t(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,s,l){return(a=a||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+s;return n(e[i])?o(e[i],function(e){return l+encodeURIComponent(t(e))}).join(a):l+encodeURIComponent(t(e[i]))}).join(a):l?encodeURIComponent(t(l))+s+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},s=!0;try{t[e](a,a.exports,o),s=!1}finally{s&&delete n[e]}return a.exports}o.ab="//";var i={};i.decode=i.parse=o(815),i.encode=i.stringify=o(577),e.exports=i}()},25237:function(e,t,n){e.exports=n(72392)},97729:function(e,t,n){e.exports=n(68792)},39097:function(e,t,n){e.exports=n(14470)},5632:function(e,t,n){e.exports=n(70743)},34406:function(e){var t,n,o,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],c=!1,d=-1;function p(){c&&o&&(c=!1,o.length?u=o.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=l(p);c=!0;for(var t=u.length;t;){for(o=u,u=[];++d<t;)o&&o[d].run();d=-1,t=u.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||c||l(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},68262:function(e,t,n){"use strict";var o=n(23586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,s){if(s!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},68281:function(e,t,n){"use strict";n.d(t,{w_:function(){return u}});var o=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function u(e){return function(t){return o.createElement(c,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,s({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,u=e.title,c=l(e,["attr","size","title"]),d=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&o.createElement("title",null,u),e.children)};return void 0!==a?o.createElement(a.Consumer,null,function(e){return t(e)}):t(i)}},65186:function(e,t,n){"use strict";n.d(t,{$l_:function(){return g},$vK:function(){return C},B4e:function(){return w},BAW:function(){return b},Fwj:function(){return T},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return S},SQS:function(){return A},U8L:function(){return k},XN7:function(){return y},YTL:function(){return m},_b$:function(){return v},eJU:function(){return u},f$3:function(){return s},hs8:function(){return I},iy3:function(){return _},k71:function(){return c},lPv:function(){return R},nwY:function(){return O},vB0:function(){return l},vVM:function(){return h},wr$:function(){return p},xoN:function(){return i}});var o=n(68281);function i(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}}]})(e)}function a(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74L15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z"}}]})(e)}function s(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}}]})(e)}function l(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(e)}function u(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function c(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(e)}function d(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"}}]})(e)}function p(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function h(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function m(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function g(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function y(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4h4zm-6 4h-4v-4h4v4z"}}]})(e)}function v(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}function b(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function A(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M5 4v3h5.5v12h3V7H19V4z"}}]})(e)}function w(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function x(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function C(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}}]})(e)}function S(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"}},{tag:"path",attr:{d:"M6.49 10.5V15h1.15V9h-.87l-1.76 1.27.58.89zM11.47 10.05c.5 0 .81.32.81.72 0 .37-.14.64-.54 1.06-.36.38-1.06 1.08-2.13 2.15V15h3.89v-.99h-2.37l-.03-.05c.68-.68 1.15-1.14 1.4-1.39.61-.6.92-1.22.92-1.86 0-.24-.05-1.04-.91-1.48-.47-.23-1.26-.36-1.95-.03-.82.39-.99 1.13-1 1.15l1.01.42c.1-.33.38-.72.9-.72zM16.99 13.94c-.83 0-.99-.76-1.02-.86l-1.03.41c.45 1.59 2.01 1.51 2.05 1.51 1.2 0 1.68-.72 1.76-.85.32-.49.36-1.24-.01-1.76-.17-.24-.4-.41-.68-.52v-.07c.2-.1.37-.26.52-.48.26-.41.31-1.07-.02-1.57-.08-.11-.53-.75-1.62-.75-1.26 0-1.74.9-1.85 1.24l.99.41c.11-.32.35-.64.85-.64.44 0 .75.26.75.65 0 .58-.55.72-.88.72h-.46v1h.5c.56 0 1.04.24 1.04.79 0 .49-.48.77-.89.77z"}}]})(e)}function _(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-8-4h2v2h2v-2h2v-2h-2v-2h-2v2h-2z"}}]})(e)}function k(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(e)}function T(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}}]})(e)}function R(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(e)}function O(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13l-4-4h8z"}}]})(e)}function I(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}},66866:function(e,t){"use strict";var n,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case a:case l:case s:case h:case m:return e;default:switch(e=e&&e.$$typeof){case d:case c:case p:case y:case g:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.SuspenseList=m,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===y},t.isMemo=function(e){return b(e)===g},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===h},t.isSuspenseList=function(e){return b(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===s||e===h||e===m||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=b},48570:function(e,t,n){"use strict";e.exports=n(66866)},46847:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState((function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}).bind(this))}function a(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},42901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(2784),s=g(a),l=g(n(28316)),u=g(n(13980)),c=g(n(10742)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(66941)),p=n(6259),h=g(p),m=n(46847);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var v=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",A=p.canUseDOM&&void 0!==l.default.createPortal,w=function(e){return document.createElement(e)},x=function(){return A?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},C=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,i,a=arguments.length,u=Array(a),d=0;d<a;d++)u[d]=arguments[d];return n=i=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.removePortal=function(){A||l.default.unmountComponentAtNode(i.node);var e=(0,i.props.parentSelector)();e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=x()(i,s.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},y(i,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(A||(this.node=w("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),A||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,i=o.isOpen,a=o.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,l=n.nextParent;l!==s&&(s.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||i)&&(A||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&A?(!this.node&&A&&(this.node=w("div")),x()(s.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){d.setElement(e)}}]),t}(a.Component);C.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(h.default),u.default.instanceOf(p.SafeHTMLCollection),u.default.instanceOf(p.SafeNodeList),u.default.arrayOf(u.default.instanceOf(h.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},C.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},C.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(C),t.default=C},10742:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2784),l=v(n(13980)),u=y(n(77194)),c=v(n(90026)),d=y(n(66941)),p=y(n(95853)),h=n(6259),m=v(h),g=v(n(66638));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(26736);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},A=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,i=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,l=s&&s().ownerDocument||document;a&&p.remove(l.body,a),i&&p.remove(l.getElementsByTagName("html")[0],i),o&&A>0&&0==(A-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),g.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o=(void 0===t?"undefined":i(t))==="object"?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=o.base;return n.state.afterOpen&&(a=a+" "+o.afterOpen),n.state.beforeClose&&(a=a+" "+o.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&p.add(s.body,i),o&&p.add(s.getElementsByTagName("html")[0],o),n&&(A+=1,d.hide(t)),g.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,a=e.defaultStyles,s=e.children,l=n?{}:a.content,u=i?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},d=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(d,s);return this.props.overlayElement(c,p)}}]),t}(s.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(m.default),l.default.instanceOf(h.SafeHTMLCollection),l.default.instanceOf(h.SafeNodeList),l.default.arrayOf(l.default.instanceOf(m.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=w,e.exports=t.default},66941:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=u(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=u(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,i=(o=n(45982))&&o.__esModule?o:{default:o},a=n(6259),s=null;function l(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},26736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,i=(o=n(66638))&&o.__esModule?o:{default:o},a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe(function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))})},95853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var a=document.body;for(var s in o)i(a,o[s]);n={},o={}},t.log=function(){};var n={},o={};function i(e,t){e.classList.remove(t)}var a=function(e,t,n){n.forEach(function(n){t[n]||(t[n]=0),t[n]+=1,e.add(n)})},s=function(e,t,n){n.forEach(function(n){t[n]&&(t[n]-=1),0===t[n]&&e.remove(n)})};t.add=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))},t.remove=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))}},77194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,i=(o=n(93970))&&o.__esModule?o:{default:o},a=[],s=null,l=!1;function u(){l=!0}function c(){l&&(l=!1,s&&setTimeout(function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()},0))}},66638:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},6259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,i=((o=n(85978))&&o.__esModule?o:{default:o}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM,t.default=a},90026:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length){t.preventDefault();return}var o=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===u){if(!a)return;o=l}if(l!==u||a||(o=s),s===u&&a&&(o=l),o){t.preventDefault(),o.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(u);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d])){t.preventDefault(),(o=a?l:s).focus();return}t.preventDefault(),o.focus()}};var o,i=(o=n(93970))&&o.__esModule?o:{default:o};e.exports=t.default},93970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t,o,i=e.getAttribute("tabindex");null===i&&(i=void 0);var a=isNaN(i);return(a||i>=0)&&(t=!a,o=e.nodeName.toLowerCase(),(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),o=n.getPropertyValue("display");return t?"contents"!==o&&("visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default},37149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(42901))&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},56580:function(e,t,n){"use strict";n.d(t,{zt:function(){return B},$j:function(){return N},I0:function(){return z},v9:function(){return g},oR:function(){return W}});var o=n(33888),i=n(56406),a=n(28316);let s=function(e){e()},l=()=>s;var u=n(2784);let c=(0,u.createContext)(null);function d(){return(0,u.useContext)(c)}let p=()=>{throw Error("uSES not initialized!")},h=p,m=(e,t)=>e===t,g=function(e=c){let t=e===c?d:()=>(0,u.useContext)(e);return function(e,n=m){let{store:o,subscription:i,getServerState:a}=t(),s=h(i.addNestedSub,o.getState,a||o.getState,e,n);return(0,u.useDebugValue)(s),s}}();var y=n(7896),v=n(31461),b=n(73463),A=n.n(b),w=n(48570);let x=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function C(e){return function(t){let n=e(t);function o(){return n}return o.dependsOnOwnProps=!1,o}}function S(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function _(e,t){return function(t,{displayName:n}){let o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=S(e);let i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=S(i),i=o(t,n)),i},o}}function k(e,t){return(n,o)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function T(e,t,n){return(0,y.Z)({},n,e,t)}let R={notify(){},get:()=>[]};function O(e,t){let n;let o=R;function i(){s.onStateChange&&s.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),o=function(){let e=l(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let o=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){o&&null!==t&&(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}let s={addNestedSub:function(e){return a(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:i,isSubscribed:function(){return!!n},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=R)},getListeners:()=>o};return s}let I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!M(e[n[o]],t[n[o]]))return!1;return!0}let D=["reactReduxForwardedRef"],L=p,P=[null,null];function F(e,t){return e===t}var N=function(e,t,n,{pure:o,areStatesEqual:i=F,areOwnPropsEqual:a=j,areStatePropsEqual:s=j,areMergedPropsEqual:l=j,forwardRef:d=!1,context:p=c}={}){let h=e?"function"==typeof e?_(e,"mapStateToProps"):k(e,"mapStateToProps"):C(()=>({})),m=t&&"object"==typeof t?C(e=>(function(e,t){let n={};for(let o in e){let i=e[o];"function"==typeof i&&(n[o]=(...e)=>t(i(...e)))}return n})(t,e)):t?"function"==typeof t?_(t,"mapDispatchToProps"):k(t,"mapDispatchToProps"):C(e=>({dispatch:e})),g=n?"function"==typeof n?function(e,{displayName:t,areMergedPropsEqual:o}){let i,a=!1;return function(e,t,s){let l=n(e,t,s);return a?o(l,i)||(i=l):(a=!0,i=l),i}}:k(n,"mergeProps"):()=>T,b=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:b,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:m,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){var n;let i;let[a,s,l]=(0,u.useMemo)(()=>{let{reactReduxForwardedRef:e}=t,n=(0,v.Z)(t,D);return[t.context,e,n]},[t]),c=(0,u.useMemo)(()=>a&&a.Consumer&&(0,w.isContextConsumer)(u.createElement(a.Consumer,null))?a:p,[a,p]),d=(0,u.useContext)(c),h=!!t.store&&!!t.store.getState&&!!t.store.dispatch,m=!!d&&!!d.store,g=h?t.store:d.store,A=m?d.getServerState:g.getState,C=(0,u.useMemo)(()=>(function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:o,initMergeProps:i}=t,a=(0,v.Z)(t,x),s=n(e,a);return function(e,t,n,o,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let l,u,c,d,p,h=!1;return function(m,g){return h?function(h,m){let g=!a(m,u),y=!i(h,l,m,u);return(l=h,u=m,g&&y)?(c=e(l,u),t.dependsOnOwnProps&&(d=t(o,u)),p=n(c,d,u)):g?(e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(d=t(o,u)),p=n(c,d,u)):y?function(){let t=e(l,u),o=!s(t,c);return c=t,o&&(p=n(c,d,u)),p}():p}(m,g):(c=e(l=m,u=g),d=t(o,u),p=n(c,d,u),h=!0,p)}}(s,o(e,a),i(e,a),e,a)})(g.dispatch,o),[g]),[S,_]=(0,u.useMemo)(()=>{if(!b)return P;let e=O(g,h?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[g,h,d]),k=(0,u.useMemo)(()=>h?d:(0,y.Z)({},d,{subscription:S}),[h,d,S]),T=(0,u.useRef)(),R=(0,u.useRef)(l),M=(0,u.useRef)(),j=(0,u.useRef)(!1);(0,u.useRef)(!1);let F=(0,u.useRef)(!1),N=(0,u.useRef)();I(()=>(F.current=!0,()=>{F.current=!1}),[]);let B=(0,u.useMemo)(()=>()=>M.current&&l===R.current?M.current:C(g.getState(),l),[g,l]),U=(0,u.useMemo)(()=>e=>S?function(e,t,n,o,i,a,s,l,u,c,d){if(!e)return()=>{};let p=!1,h=null,m=()=>{let e,n;if(p||!l.current)return;let m=t.getState();try{e=o(m,i.current)}catch(e){n=e,h=e}n||(h=null),e===a.current?s.current||c():(a.current=e,u.current=e,s.current=!0,d())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}(b,g,S,C,R,T,j,F,M,_,e):()=>{},[S]);n=[R,T,j,l,M,_],I(()=>(function(e,t,n,o,i,a){e.current=o,n.current=!1,i.current&&(i.current=null,a())})(...n),void 0);try{i=L(U,B,A?()=>C(A(),l):B)}catch(e){throw N.current&&(e.message+=`
|
|
129
|
+
Error:`,t)}}function v(e,t=!1){return n=>{if(!n||a===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let o="keypress"===n.type?"input":n.type;void 0===i?(e({event:n,name:o,global:t}),a=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(a,n)&&(e({event:n,name:o,global:t}),a=n),clearTimeout(i),i=p.setTimeout(()=>{i=void 0},1e3)}}let b=null,A=null},81757:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return c},J8:function(){return y},Kj:function(){return g},PO:function(){return p},TX:function(){return l},V9:function(){return A},VW:function(){return s},VZ:function(){return i},cO:function(){return h},fm:function(){return u},i2:function(){return b},kK:function(){return m},pt:function(){return d}});let o=Object.prototype.toString;function i(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return A(e,Error)}}function a(e,t){return o.call(e)===`[object ${t}]`}function s(e){return a(e,"ErrorEvent")}function l(e){return a(e,"DOMError")}function u(e){return a(e,"DOMException")}function c(e){return a(e,"String")}function d(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function h(e){return"undefined"!=typeof Event&&A(e,Event)}function m(e){return"undefined"!=typeof Element&&A(e,Element)}function g(e){return a(e,"RegExp")}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function v(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e){return"number"==typeof e&&e!=e}function A(e,t){try{return e instanceof t}catch(e){return!1}}},58536:function(e,t,n){"use strict";let o;n.d(t,{Cf:function(){return s},RU:function(){return a},kg:function(){return o}});var i=n(90063);let a=["debug","info","warn","error","log","assert","trace"];function s(e){if(!("console"in i.n2))return e();let t=i.n2.console,n={};a.forEach(e=>{let o=t[e]&&t[e].__sentry_original__;e in t&&o&&(n[e]=t[e],t[e]=o)});try{return e()}finally{Object.keys(n).forEach(e=>{t[e]=n[e]})}}function l(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>void 0}),t}"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o=(0,i.YO)("logger",l):o=l()},63699:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return u},EG:function(){return c},YO:function(){return d},jH:function(){return l},lE:function(){return p}});var o=n(21995),i=n(90063);function a(){let e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");let n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function l(e){let{message:t,event_id:n}=e;if(t)return t;let o=s(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){let o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function c(e,t){let n=s(e);if(!n)return;let o=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...o,...t},t&&"data"in t){let e={...o&&o.data,...t.data};n.mechanism.data=e}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function p(e){return Array.isArray(e)?e:[e]}},37392:function(e,t,n){"use strict";n.d(t,{$y:function(){return l},KV:function(){return a},l$:function(){return s}});var o=n(4285);e=n.hmd(e);var i=n(34406);function a(){return!(0,o.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(e,t){return e.require(t)}function l(t){let n;try{n=s(e,t)}catch(e){}try{let{cwd:o}=s(e,"process");n=s(e,`${o()}/node_modules/${t}`)}catch(e){}return n}},21995:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return c},Jr:function(){return y},Sh:function(){return p},_j:function(){return d},hl:function(){return s},xp:function(){return l},zf:function(){return g}});var o=n(54194),i=n(81757),a=n(39660);function s(e,t,n){if(!(t in e))return;let o=e[t],i=n(o);if("function"==typeof i)try{u(i,o)}catch(e){}e[t]=i}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){let n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,i.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,i.kK)(e)?(0,o.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,a.$G)(n[0],t);for(let e=n.length;e>0;e--){let o=n.slice(0,e).join(", ");if(!(o.length>t)){if(e===n.length)return o;return(0,a.$G)(o,t)}}return""}function y(e){return function e(t,n){if((0,i.PO)(t)){let o=n.get(t);if(void 0!==o)return o;let i={};for(let o of(n.set(t,i),Object.keys(t)))void 0!==t[o]&&(i[o]=e(t[o],n));return i}if(Array.isArray(t)){let o=n.get(t);if(void 0!==o)return o;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},69038:function(e,t,n){"use strict";n.d(t,{$P:function(){return l},Sq:function(){return a},pE:function(){return i}});let o=/\(error: (.*)\)/;function i(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let i=[];for(let a of e.split("\n").slice(n)){if(a.length>1024)continue;let e=o.test(a)?a.replace(o,"$1"):a;for(let n of t){let t=n(e);if(t){i.push(t);break}}}return function(e){if(!e.length)return[];let t=e,n=t[0].function||"",o=t[t.length-1].function||"";return(-1!==n.indexOf("captureMessage")||-1!==n.indexOf("captureException"))&&(t=t.slice(1)),-1!==o.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(i)}}function a(e){return Array.isArray(e)?i(...e):e}let s="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch(e){return s}}},39660:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return a}});var o=n(81757);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let o=e[t];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):!!(0,o.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},49798:function(e,t,n){"use strict";n.d(t,{Ak:function(){return a},Bf:function(){return u},Du:function(){return s},t$:function(){return l}});var o=n(58536);let i=(0,n(90063).Rf)();function a(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if(!a())return!1;if(s(i.fetch))return!0;let e=!1,t=i.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function u(){let e=i.chrome,t=e&&e.app&&e.app.runtime,n="history"in i&&!!i.history.pushState&&!!i.history.replaceState;return!t&&n}},97946:function(e,t,n){"use strict";n.d(t,{$2:function(){return l},WD:function(){return s},cW:function(){return u}});var o,i,a=n(81757);function s(e){return new u(t=>{t(e)})}function l(e){return new u((t,n)=>{n(e)})}(o=i||(i={}))[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED";class u{__init(){this._state=i.PENDING}__init2(){this._handlers=[]}constructor(e){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u((n,o)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){o(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){o(e)}else o(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new u((t,n)=>{let o,i;return this.then(t=>{i=!1,o=t,e&&e()},t=>{i=!0,o=t,e&&e()}).then(()=>{if(i){n(o);return}t(o)})})}__init3(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,a.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},7790:function(e,t,n){"use strict";n.d(t,{Z1:function(){return h},_I:function(){return p},ph:function(){return d},yW:function(){return c}});var o=n(37392),i=n(90063);e=n.hmd(e);let a=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},l=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=a;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),u=void 0===l?s:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},c=s.nowSeconds.bind(s),d=u.nowSeconds.bind(u),p=d,h=(()=>{let{performance:e}=a;if(!e||!e.now)return;let t=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;return o<36e5||s<36e5?o<=s?e.timeOrigin:i:n})()},90063:function(e,t,n){"use strict";function o(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{};return a[e]||(a[e]=t())}},12170:function(e,t,n){"use strict";n.d(t,{Fq:function(){return H},_j:function(){return V},$n:function(){return K},DZ:function(){return $}});var o=n(7896),i=n(80753),a=n(81665),s=n(95058),l=n(88960),u=n(70352);function c(e,t,n){return(c=(0,u.Z)()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&(0,l.Z)(i,n.prototype),i}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,(0,s.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,l.Z)(n,e)})(e)}var p=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,i.Z)(n)}return(0,a.Z)(t,e),t}(d(Error));function h(e){return Math.round(255*e)}function m(e,t,n){return h(e)+","+h(t)+","+h(n)}function g(e,t,n,o){if(void 0===o&&(o=m),0===t)return o(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,s=a*(1-Math.abs(i%2-1)),l=0,u=0,c=0;i>=0&&i<1?(l=a,u=s):i>=1&&i<2?(l=s,u=a):i>=2&&i<3?(u=a,c=s):i>=3&&i<4?(u=s,c=a):i>=4&&i<5?(l=s,c=a):i>=5&&i<6&&(l=a,c=s);var d=n-a/2;return o(l+d,u+d,c+d)}var y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},v=/^#[a-fA-F0-9]{6}$/,b=/^#[a-fA-F0-9]{8}$/,A=/^#[a-fA-F0-9]{3}$/,w=/^#[a-fA-F0-9]{4}$/,x=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,C=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,S=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function k(e){if("string"!=typeof e)throw new p(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return y[t]?"#"+y[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(b)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(A))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(w)){var o=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:o}}var i=x.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var a=C.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var s=S.exec(t);if(s){var l="rgb("+g(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",u=x.exec(l);if(!u)throw new p(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=_.exec(t.substring(0,50));if(c){var d="rgb("+g(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",h=x.exec(d);if(!h)throw new p(4,t,d);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new p(5)}function T(e){return function(e){var t,n=e.red/255,o=e.green/255,i=e.blue/255,a=Math.max(n,o,i),s=Math.min(n,o,i),l=(a+s)/2;if(a===s)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var u=a-s,c=l>.5?u/(2-a-s):u/(a+s);switch(a){case n:t=(o-i)/u+(o<i?6:0);break;case o:t=(i-n)/u+2;break;default:t=(n-o)/u+4}return(t*=60,void 0!==e.alpha)?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(k(e))}var R=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function O(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function I(e){return O(Math.round(255*e))}function M(e,t,n){return R("#"+I(e)+I(t)+I(n))}function j(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return R("#"+O(e)+O(t)+O(n));if("object"==typeof e&&void 0===t&&void 0===n)return R("#"+O(e.red)+O(e.green)+O(e.blue));throw new p(6)}function D(e,t,n,o){if("string"==typeof e&&"number"==typeof t){var i=k(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof o)return o>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+o+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===o)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new p(7)}function L(e){if("object"!=typeof e)throw new p(8);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha)return D(e);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha))return j(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha)return function(e,t,n,o){if("object"==typeof e)return e.alpha>=1?g(e.hue,e.saturation,e.lightness,M):"rgba("+g(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new p(2)}(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha))return function(e,t,n){if("object"==typeof e)return g(e.hue,e.saturation,e.lightness,M);throw new p(1)}(e);throw new p(8)}function P(e){return function e(t,n,o){return function(){var i=o.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(e,e.length,[])}function F(e,t,n){return Math.max(e,Math.min(t,n))}var N=P(function(e,t){if("transparent"===t)return t;var n=T(t);return L((0,o.Z)({},n,{lightness:F(0,1,n.lightness-parseFloat(e))}))}),B=P(function(e,t){if("transparent"===t)return t;var n=T(t);return L((0,o.Z)({},n,{lightness:F(0,1,n.lightness+parseFloat(e))}))}),U=P(function(e,t){if("transparent"===t)return t;var n=k(t),i="number"==typeof n.alpha?n.alpha:1;return D((0,o.Z)({},n,{alpha:F(0,1,+(100*i-100*parseFloat(e)).toFixed(2)/100)}))}),W=n(62273),z=function(e,t){return"object"==typeof t&&(t=Array.isArray(t)?t[0]:t.__default),(0,W.U2)(e,"rawColors"in e?"rawColors."+t:"colors."+t,t)},V=function(e,t){return function(n){return N(t,z(n,e))}},K=function(e,t){return function(n){return B(t,z(n,e))}},$=function(e,t){return function(n){return U(t,z(n,e))}},H=function(e,t){return function(n){return D(z(n,e),t)}}},75289:function(e,t,n){"use strict";n.d(t,{$j:function(){return Z},Ct:function(){return Y},Ee:function(){return _},II:function(){return M},X6:function(){return S},XZ:function(){return K},Y8:function(){return B},Zb:function(){return k},__:function(){return T},hU:function(){return J},kC:function(){return y},nv:function(){return x},rU:function(){return w},rs:function(){return H},x8:function(){return et},xu:function(){return g},xv:function(){return C},zx:function(){return A}});var o=n(79396),i=n(28165),a=n(2784),s=n(62273);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var d=["__themeKey","__css","variant","css","sx","as"],p=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","m","mt","mr","mb","ml","mx","my","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","p","pt","pr","pb","pl","px","py","color","backgroundColor","bg","opacity"],h=function(e){return p.includes(e)},m=function(e){for(var t,n={},o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,void 0)}}(e))){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(p);!(t=o()).done;){var i=t.value;n[i]=e[i]}return n},g=(0,a.forwardRef)(function(e,t){var n=(0,o.u)(),a=e.__themeKey,c=e.__css,h=e.variant,g=e.css,y=e.sx,v=e.as,b=u(e,d),A=(0,s.iv)(c)(n),w=(0,s.U2)(n,(void 0===a?"variants":a)+"."+h)||(0,s.U2)(n,h),x=w&&(0,s.iv)(w)(n),C=(0,s.iv)(y)(n),S=(0,s.iv)(m(b))(n);return p.forEach(function(e){delete b[e]}),(0,i.tZ)(void 0===v?"div":v,l({ref:t,css:[{boxSizing:"border-box",margin:0,minWidth:0},A,x,C,S,g]},b))}),y=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t},e,{sx:l({display:"flex"},e.sx)}))}),v=function(e){return function(t){var n={};for(var o in t)e(o||"")&&(n[o]=t[o]);return n}},b=/^m[trblxy]?$/;v(function(e){return b.test(e)}),v(function(e){return!b.test(e)});var A=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"button",variant:"primary"},e,{__themeKey:"buttons",__css:{appearance:"none",display:e.hidden?void 0:"inline-block",textAlign:"center",lineHeight:"inherit",textDecoration:"none",fontSize:"inherit",px:3,py:2,color:"white",bg:"primary",border:0,borderRadius:4}}))}),w=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"a",variant:"styles.a"},e,{__themeKey:"links"}))}),x=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"p",variant:"paragraph"},e,{__themeKey:"text",__css:{fontFamily:"body",fontWeight:"body",lineHeight:"body"}}))}),C=a.forwardRef(function(e,t){return a.createElement(g,l({as:"span",ref:t,variant:"default"},e,{__themeKey:"text"}))}),S=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"h2",variant:"heading"},e,{__themeKey:"text",__css:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"}}))}),_=a.forwardRef(function(e,t){var n=e.__css;return a.createElement(g,l({ref:t,as:"img"},e,{__themeKey:"images",__css:l({maxWidth:"100%",height:"auto"},n)}))}),k=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,variant:"primary"},e,{__themeKey:"cards"}))}),T=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,as:"label",variant:"label"},e,{__themeKey:"forms",__css:{width:"100%",display:"flex"}}))}),R=["sx","autofillBackgroundColor"],O={boxShadow:"inset 0 0 0 1000px var(--theme-ui-input-autofill-bg)",fontSize:"inherit",":first-line":{fontSize:"1rem"}},I={display:"block",width:"100%",p:2,appearance:"none",fontSize:"inherit",lineHeight:"inherit",border:"1px solid",borderRadius:4,color:"inherit",bg:"transparent",":autofill, :autofill:hover, :autofill:focus":O,":-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus":O},M=a.forwardRef(function(e,t){var n=e.sx,o=e.autofillBackgroundColor,i=void 0===o?"background":o,c=u(e,R);return a.createElement(g,l({ref:t,as:"input",variant:"input",sx:l({"--theme-ui-input-autofill-bg":function(e){return e.colors&&(0,s.U2)(e.colors,i,null)}},n)},c,{__themeKey:"forms",__css:I}))}),j=["size"],D=a.forwardRef(function(e,t){var n=e.size,o=void 0===n?24:n,i=u(e,j),s=l({xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"currentcolor"},i);return a.createElement(g,l({ref:t,as:"svg"},s))});D.displayName="SVG";var L=["className","sx","variant"],P=function(e){return a.createElement(D,e,a.createElement("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},F=function(e){return a.createElement(D,e,a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},N=function(e){return a.createElement(a.Fragment,null,a.createElement(P,l({},e,{__css:{display:"none","input:checked ~ &":{display:"block"}}})),a.createElement(F,l({},e,{__css:{display:"block","input:checked ~ &":{display:"none"}}})))},B=a.forwardRef(function(e,t){var n=e.className,o=e.sx,i=e.variant,s=u(e,L);return a.createElement(g,{sx:{minWidth:"min-content"}},a.createElement(g,l({ref:t,as:"input",type:"radio"},s,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}})),a.createElement(g,l({as:N,"aria-hidden":"true",variant:void 0===i?"radio":i,className:n,sx:o},{__themeKey:"forms",__css:{mr:2,borderRadius:9999,color:"gray",flexShrink:0,"input:checked ~ &":{color:"primary"},"input:focus ~ &":{bg:"highlight"}}})))}),U=["className","sx","variant","children"],W=function(e){return a.createElement(D,e,a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))},z=function(e){return a.createElement(D,e,a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))},V=function(e){return a.createElement(a.Fragment,null,a.createElement(W,l({},e,{__css:{display:"none","input:checked ~ &":{display:"block"}}})),a.createElement(z,l({},e,{__css:{display:"block","input:checked ~ &":{display:"none"}}})))},K=a.forwardRef(function(e,t){var n=e.className,o=e.sx,i=e.variant,s=e.children,c=u(e,U);return a.createElement(g,{sx:{minWidth:"min-content"}},a.createElement(g,l({ref:t,as:"input",type:"checkbox"},c,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}})),a.createElement(g,l({as:V,"aria-hidden":"true",variant:void 0===i?"checkbox":i,className:n,sx:o},{__themeKey:"forms",__css:{mr:2,borderRadius:4,color:"gray",flexShrink:0,"input:checked ~ &":{color:"primary"},"input:focus ~ &":{color:"primary",bg:"highlight"}}})),s)}),$=["className","label","sx","variant"],H=a.forwardRef(function(e,t){var n=e.className,o=e.label,i=e.sx,s=e.variant,c=u(e,$);return a.createElement(T,{sx:{cursor:"pointer"}},a.createElement(g,l({ref:t,as:"input",type:"checkbox","aria-label":o},c,{sx:{position:"absolute",opacity:0,zIndex:-1,width:1,height:1,overflow:"hidden"}},{__themeKey:"forms"})),a.createElement(g,l({css:{padding:2},variant:void 0===s?"switch":s,className:n,sx:i},{__themeKey:"forms",__css:{position:"relative",flexShrink:0,bg:"gray",borderRadius:18,height:22,width:40,mr:2,"input:disabled ~ &":{opacity:.5,cursor:"not-allowed"},"& > div":{display:"flex",alignItems:"center",borderRadius:"50%",height:18,width:18,bg:"white",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",position:"relative",transform:"translateX(0%)",transition:"transform 240ms cubic-bezier(0.165, 0.840, 0.440, 1.000)"},"input:checked ~ &":{bg:"primary","> div":{transform:"translateX(100%)"}}}}),a.createElement(g,null)),a.createElement("span",null,o))}),q=["size","strokeWidth","max","title","duration"],Z=a.forwardRef(function(e,t){var n=e.size,o=void 0===n?48:n,i=e.strokeWidth,s=void 0===i?4:i;e.max;var c=e.title,d=e.duration,p=u(e,q),h={strokeWidth:s,r:16-s,cx:16,cy:16,fill:"none"};return a.createElement(g,l({ref:t,as:"svg"},{strokeWidth:s,viewBox:"0 0 32 32",width:o,height:o,fill:"none",stroke:"currentColor",role:"img"},p,{__css:{color:"primary",overflow:"visible"}}),a.createElement("title",null,void 0===c?"Loading":c),a.createElement("circle",l({},h,{opacity:1/8})),a.createElement("circle",l({},h,{strokeDasharray:"20 110"}),a.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 16 16",to:"360 16 16",dur:(void 0===d?750:d)+"ms",repeatCount:"indefinite"})))}),Y=a.forwardRef(function(e,t){return a.createElement(g,l({ref:t,variant:"primary"},e,{__themeKey:"badges",__css:{display:"inline-block",verticalAlign:"baseline",fontSize:0,fontWeight:"bold",whiteSpace:"nowrap",px:1,borderRadius:2,color:"white",bg:"primary"}}))}),Q=["size"],J=a.forwardRef(function(e,t){var n,o=e.size,i=void 0===o?32:o,s=u(e,Q),c=(null==(n=s.__css)?void 0:n.label)||"IconButton";return a.createElement(g,l({ref:t,as:"button",variant:"icon"},s,{__themeKey:"buttons",__css:{label:c,appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:1,width:i,height:i,color:"inherit",bg:"transparent",border:"none",borderRadius:4}}))}),X=["size"],ee=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),et=a.forwardRef(function(e,t){var n=e.size,o=u(e,X);return a.createElement(J,l({ref:t,size:void 0===n?32:n,title:"Close","aria-label":"Close",variant:"close"},o,{children:ee}))});v(h),v(function(e){return!h(e)})},59326:function(e,t,n){"use strict";n.d(t,{f6:function(){return x},vg:function(){return w},yo:function(){return p},tZ:function(){return d},B7:function(){return m}});var o=n(28165),i=n(79396),a=n(2784),s=n(39714),l=n.n(s),u=n(62273);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var d=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return o.tZ.apply(void 0,[e,function(e){if(!e||!e.sx&&!e.css)return e;var t={};for(var n in e)"sx"!==n&&(t[n]=e[n]);return t.css=function(t){return[(0,u.iv)(e.sx)(t),"function"==typeof e.css?e.css(t):e.css]},t}(t)].concat(i))},p={__EMOTION_VERSION__:"11.11.1",theme:{}},h=a.createContext(p),m=function(){return a.useContext(h)},g="function"==typeof Symbol&&Symbol.for,y=g?Symbol.for("react.element"):60103,v=g?Symbol.for("react.forward_ref"):60103,b={isMergeableObject:function(e){return!!e&&"object"==typeof e&&e.$$typeof!==y&&e.$$typeof!==v},arrayMerge:function(e,t){return t}},A=function(e,t){return l()(e,t,b)};A.all=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l().all(t,b)};var w=function(e){var t=e.context,n=e.children;return d(i.T.Provider,{value:t.theme},d(h.Provider,{value:t,children:n}))};function x(e){var t=e.theme,n=e.children,o=m();return d(w,{context:"function"==typeof t?c({},o,{theme:t(o.theme)}):A.all({},o,{theme:t}),children:n})}},62273:function(e,t,n){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,{U2:function(){return s},iv:function(){return y}});var i="__default",a=function(e){return"object"==typeof e&&null!==e&&i in e};function s(e,t,n,o,s){var l=t&&"string"==typeof t?t.split("."):[t];for(o=0;o<l.length;o++)e=e?e[l[o]]:s;return e===s?n:a(e)?e[i]:e}var l=function e(t,n){if(t&&t.variant){var i={};for(var a in t){var l=t[a];if("variant"===a){var u="function"==typeof l?l(n):l,c=e(s(n,u),n);i=o({},i,c)}else i[a]=l}return i}return t},u=[40,52,64].map(function(e){return e+"em"}),c={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},d={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},p={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],scrollMarginX:["scrollMarginLeft","scrollMarginRight"],scrollMarginY:["scrollMarginTop","scrollMarginBottom"],scrollPaddingX:["scrollPaddingLeft","scrollPaddingRight"],scrollPaddingY:["scrollPaddingTop","scrollPaddingBottom"],size:["width","height"]},h={color:"colors",background:"colors",backgroundColor:"colors",borderColor:"colors",caretColor:"colors",columnRuleColor:"colors",outlineColor:"colors",textDecorationColor:"colors",opacity:"opacities",transition:"transitions",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",scrollMargin:"space",scrollMarginTop:"space",scrollMarginRight:"space",scrollMarginBottom:"space",scrollMarginLeft:"space",scrollMarginX:"space",scrollMarginY:"space",scrollPadding:"space",scrollPaddingTop:"space",scrollPaddingRight:"space",scrollPaddingBottom:"space",scrollPaddingLeft:"space",scrollPaddingX:"space",scrollPaddingY:"space",inset:"space",insetBlock:"space",insetBlockEnd:"space",insetBlockStart:"space",insetInline:"space",insetInlineEnd:"space",insetInlineStart:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",borderBlock:"borders",borderBlockColor:"colors",borderBlockEnd:"borders",borderBlockEndColor:"colors",borderBlockEndStyle:"borderStyles",borderBlockEndWidth:"borderWidths",borderBlockStart:"borders",borderBlockStartColor:"colors",borderBlockStartStyle:"borderStyles",borderBlockStartWidth:"borderWidths",borderBlockStyle:"borderStyles",borderBlockWidth:"borderWidths",borderEndEndRadius:"radii",borderEndStartRadius:"radii",borderInline:"borders",borderInlineColor:"colors",borderInlineEnd:"borders",borderInlineEndColor:"colors",borderInlineEndStyle:"borderStyles",borderInlineEndWidth:"borderWidths",borderInlineStart:"borders",borderInlineStartColor:"colors",borderInlineStartStyle:"borderStyles",borderInlineStartWidth:"borderWidths",borderInlineStyle:"borderStyles",borderInlineWidth:"borderWidths",borderStartEndRadius:"radii",borderStartStartRadius:"radii",columnRuleWidth:"borderWidths",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",blockSize:"sizes",inlineSize:"sizes",maxBlockSize:"sizes",maxInlineSize:"sizes",minBlockSize:"sizes",minInlineSize:"sizes",columnWidth:"sizes",fill:"colors",stroke:"colors"},m=function(e,t){if("number"!=typeof t||t>=0){if("string"==typeof t&&t.startsWith("-")){var n=t.substring(1),o=s(e,n,n);return"number"==typeof o?-1*o:"-"+o}return s(e,t,t)}var i=Math.abs(t),a=s(e,i,i);return"string"==typeof a?"-"+a:-1*Number(a)},g=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","top","bottom","left","right"].reduce(function(e,t){var n;return o({},e,((n={})[t]=m,n))},{}),y=function e(t){return void 0===t&&(t={}),function(n){void 0===n&&(n={});var m,y=o({},c,"theme"in n?n.theme:n),v=(m=l("function"==typeof t?t(y):t,y),function(e){var t={},n=[null].concat((e&&e.breakpoints||u).map(function(e){return e.includes("@media")?e:"@media screen and (min-width: "+e+")"}));for(var o in m){var i=m[o];if("function"==typeof i&&(i=i(e||{})),!1!==i&&null!=i){if(!Array.isArray(i)){t[o]=i;continue}for(var a=0;a<i.slice(0,n.length).length;a++){var s=n[a];if(!s){t[o]=i[a];continue}t[s]=t[s]||{},null!=i[a]&&(t[s][o]=i[a])}}}return t})(y),b={};for(var A in v){var w=v[A],x="function"==typeof w?w(y):w;if(x&&"object"==typeof x){if(a(x)){b[A]=x[i];continue}b[A]=e(x)(y);continue}var C=A in d?d[A]:A,S=C in h?h[C]:void 0,_=S?null==y?void 0:y[S]:s(y,C,{}),k=s(g,C,s)(_,x,x);if(C in p)for(var T=p[C],R=0;R<T.length;R++)b[T[R]]=k;else b[C]=k}return b}}},95766:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],o=t[1];return(n+o)*3/4-o},t.toByteArray=function(e){var t,n,a=u(e),s=a[0],l=a[1],c=new i((s+l)*3/4-l),d=0,p=l>0?s-4:s;for(n=0;n<p;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,a=[],s=0,l=o-i;s<l;s+=16383)a.push(function(e,t,o){for(var i,a=[],s=t;s<o;s+=3)a.push(n[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>l?l:s+16383));return 1===i?a.push(n[(t=e[o-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[o-2]<<8)+e[o-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var o=n===t?0:4-n%4;return[n,o]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";let o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|g(e,t),o=s(n),i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);let i=function(e){var t;if(l.isBuffer(e)){let t=0|m(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|m(e))}function p(e){let t=e.length<0?0:0|m(e.length),n=s(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(e,t,n){let o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),l.prototype),o}function m(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(i)return o?-1:F(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let o=t;o<n;++o)i+=W[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return function(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}(this,t,n);case"latin1":case"binary":return function(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}(this,t,n);case"base64":var a,s;return a=t,s=n,0===a&&s===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let o=e.slice(t,n),i="";for(let e=0;e<o.length-1;e+=2)i+=String.fromCharCode(o[e]+256*o[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){let o=e[t];e[t]=e[n],e[n]=o}function b(e,t,n,o,i){var a;if(0===e.length)return -1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:A(e,t,n,o,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function A(e,t,n,o,i){let a,s=1,l=e.length,u=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;s=2,l/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let o=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===o?0:a-o)){if(-1===o&&(o=a),a-o+1===u)return o*s}else -1!==o&&(a-=a-o),o=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){let n=!0;for(let o=0;o<u;o++)if(c(e,a+o)!==c(t,o)){n=!1;break}if(n)return a}return -1}function w(e,t,n){n=Math.min(e.length,n);let o=[],i=t;for(;i<n;){let t=e[i],a=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,o,l,u;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(n=e[i+1]))==128&&(u=(31&t)<<6|63&n)>127&&(a=u);break;case 3:n=e[i+1],o=e[i+2],(192&n)==128&&(192&o)==128&&(u=(15&t)<<12|(63&n)<<6|63&o)>2047&&(u<55296||u>57343)&&(a=u);break;case 4:n=e[i+1],o=e[i+2],l=e[i+3],(192&n)==128&&(192&o)==128&&(192&l)==128&&(u=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&l)>65535&&u<1114112&&(a=u)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,o.push(a>>>10&1023|55296),a=56320|1023&a),o.push(a),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function C(e,t,n,o,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+o>e.length)throw RangeError("Index out of range")}function S(e,t,n,o,i){j(t,o,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function _(e,t,n,o,i){j(t,o,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function k(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function T(e,t,n,o,a){return t=+t,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function R(e,t,n,o,a){return t=+t,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,o,52,8),n+8}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(U(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let o=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(U(t,Uint8Array))i+t.length>o.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else if(l.isBuffer(t))t.copy(o,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return o},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(U(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let a=i-o,s=n-t,u=Math.min(a,s),c=this.slice(o,i),d=e.slice(t,n);for(let e=0;e<u;++e)if(c[e]!==d[e]){a=c[e],s=d[e];break}return a<s?-1:s<a?1:0},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){var i,a,s,l,u,c,d,p;if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let m=!1;for(;;)switch(o){case"hex":return function(e,t,n,o){let i;n=Number(n)||0;let a=e.length-n;o?(o=Number(o))>a&&(o=a):o=a;let s=t.length;for(o>s/2&&(o=s/2),i=0;i<o;++i){let o=parseInt(t.substr(2*i,2),16);if(o!=o)break;e[n+i]=o}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,B(F(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,l=n,B(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,s,l);case"base64":return u=t,c=n,B(N(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,p=n,B(function(e,t){let n,o;let i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)o=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(o);return i}(e,this.length-d),this,d,p);default:if(m)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),m=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e],i=1,a=0;for(;++a<t&&(i*=256);)o+=this[e+a]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&L(e,this.length-8);let o=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*n;return BigInt(o)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&L(e,this.length-8);let o=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=this[e],i=1,a=0;for(;++a<t&&(i*=256);)o+=this[e+a]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);let o=t,i=1,a=this[e+--o];for(;o>0&&(i*=256);)a+=this[e+--o]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&L(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),l.prototype.readBigInt64BE=z(function(e){D(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&L(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){let o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){let o=Math.pow(2,8*n)-1;C(this,e,t,n,o,0)}let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=z(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=z(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){let o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}let i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){let o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}let i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=z(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=z(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);let i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){let i;if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){let t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let a=l.isBuffer(e)?e:l.from(e,o),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};let O={};function I(e,t,n){O[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function M(e){let t="",n=e.length,o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function j(e,t,n,o,i,a){if(e>n||e<t){let o;let i="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new O.ERR_OUT_OF_RANGE("value",o,e)}D(i,"offset"),(void 0===o[i]||void 0===o[i+a])&&L(i,o.length-(a+1))}function D(e,t){if("number"!=typeof e)throw new O.ERR_INVALID_ARG_TYPE(t,"number",e)}function L(e,t,n){if(Math.floor(e)!==e)throw D(e,n),new O.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new O.ERR_BUFFER_OUT_OF_BOUNDS;throw new O.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}I("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),I("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),I("ERR_OUT_OF_RANGE",function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=M(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=M(i)),i+="n"),o+=` It must be ${t}. Received ${i}`},RangeError);let P=/[^+/0-9A-Za-z-_]/g;function F(e,t){let n;t=t||1/0;let o=e.length,i=null,a=[];for(let s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===o){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function N(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let W=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function z(e){return"undefined"==typeof BigInt?V:e}function V(){throw Error("BigInt not supported")}},44005:function(e,t,n){var o,i=n(48834).lW,a=n(34406);o=function(e,t,n,o,s,l,u,c,d,p,h,m,g,y){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,(function(t){return e[t]}).bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",function(){return nI}),n.d(t,"Cloudinary",function(){return nU}),n.d(t,"Condition",function(){return tf}),n.d(t,"Configuration",function(){return tg}),n.d(t,"crc32",function(){return A}),n.d(t,"Expression",function(){return tl}),n.d(t,"FetchLayer",function(){return tR}),n.d(t,"HtmlTag",function(){return t8}),n.d(t,"ImageTag",function(){return nu}),n.d(t,"Layer",function(){return ty}),n.d(t,"PictureTag",function(){return nb}),n.d(t,"SubtitlesLayer",function(){return t_}),n.d(t,"TextLayer",function(){return tw}),n.d(t,"Transformation",function(){return t6}),n.d(t,"utf8_encode",function(){return b}),n.d(t,"Util",function(){return v}),n.d(t,"VideoTag",function(){return nE});var o,s,l,u,c,d,p,h,m,g,y={};n.r(y),n.d(y,"VERSION",function(){return el}),n.d(y,"CF_SHARED_CDN",function(){return eu}),n.d(y,"OLD_AKAMAI_SHARED_CDN",function(){return ec}),n.d(y,"AKAMAI_SHARED_CDN",function(){return ed}),n.d(y,"SHARED_CDN",function(){return ef}),n.d(y,"DEFAULT_TIMEOUT_MS",function(){return ep}),n.d(y,"DEFAULT_POSTER_OPTIONS",function(){return eh}),n.d(y,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return em}),n.d(y,"SEO_TYPES",function(){return eg}),n.d(y,"DEFAULT_IMAGE_PARAMS",function(){return ey}),n.d(y,"DEFAULT_VIDEO_PARAMS",function(){return ev}),n.d(y,"DEFAULT_VIDEO_SOURCES",function(){return eb}),n.d(y,"DEFAULT_EXTERNAL_LIBRARIES",function(){return eA}),n.d(y,"PLACEHOLDER_IMAGE_MODES",function(){return ew}),n.d(y,"ACCESSIBILITY_MODES",function(){return ex}),n.d(y,"URL_KEYS",function(){return eC});var v={};n.r(v),n.d(v,"getSDKAnalyticsSignature",function(){return k}),n.d(v,"getAnalyticsOptions",function(){return T}),n.d(v,"assign",function(){return O.a}),n.d(v,"cloneDeep",function(){return M.a}),n.d(v,"compact",function(){return D.a}),n.d(v,"difference",function(){return P.a}),n.d(v,"functions",function(){return N.a}),n.d(v,"identity",function(){return U.a}),n.d(v,"includes",function(){return z.a}),n.d(v,"isArray",function(){return K.a}),n.d(v,"isPlainObject",function(){return H.a}),n.d(v,"isString",function(){return Z.a}),n.d(v,"merge",function(){return Q.a}),n.d(v,"contains",function(){return z.a}),n.d(v,"isIntersectionObserverSupported",function(){return ei}),n.d(v,"isNativeLazyLoadSupported",function(){return ea}),n.d(v,"detectIntersection",function(){return es}),n.d(v,"omit",function(){return e_}),n.d(v,"allStrings",function(){return ek}),n.d(v,"without",function(){return eE}),n.d(v,"isNumberLike",function(){return eT}),n.d(v,"smartEscape",function(){return eR}),n.d(v,"defaults",function(){return eO}),n.d(v,"objectProto",function(){return eI}),n.d(v,"objToString",function(){return eM}),n.d(v,"isObject",function(){return ej}),n.d(v,"funcTag",function(){return eD}),n.d(v,"reWords",function(){return eP}),n.d(v,"camelCase",function(){return eF}),n.d(v,"snakeCase",function(){return eN}),n.d(v,"convertKeys",function(){return eB}),n.d(v,"withCamelCaseKeys",function(){return eU}),n.d(v,"withSnakeCaseKeys",function(){return eW}),n.d(v,"base64Encode",function(){return ez}),n.d(v,"base64EncodeURL",function(){return eV}),n.d(v,"extractUrlParams",function(){return eK}),n.d(v,"patchFetchFormat",function(){return e$}),n.d(v,"optionConsume",function(){return eH}),n.d(v,"isEmpty",function(){return eq}),n.d(v,"isAndroid",function(){return eZ}),n.d(v,"isEdge",function(){return eY}),n.d(v,"isChrome",function(){return eQ}),n.d(v,"isSafari",function(){return eJ}),n.d(v,"isElement",function(){return X.a}),n.d(v,"isFunction",function(){return et.a}),n.d(v,"trim",function(){return er.a}),n.d(v,"getData",function(){return eX}),n.d(v,"setData",function(){return e0}),n.d(v,"getAttribute",function(){return e1}),n.d(v,"setAttribute",function(){return e2}),n.d(v,"removeAttribute",function(){return e5}),n.d(v,"setAttributes",function(){return e3}),n.d(v,"hasClass",function(){return e6}),n.d(v,"addClass",function(){return e4}),n.d(v,"getStyles",function(){return e8}),n.d(v,"cssExpand",function(){return e7}),n.d(v,"domStyle",function(){return e9}),n.d(v,"curCSS",function(){return te}),n.d(v,"cssValue",function(){return tt}),n.d(v,"augmentWidthOrHeight",function(){return tn}),n.d(v,"getWidthOrHeight",function(){return to}),n.d(v,"width",function(){return ti});var b=function(e){var t,n,o,i,a,s,l,u;if(null==e)return"";for(s=e+"",u="",a=void 0,o=void 0,l=0,a=o=0,l=s.length,i=0;i<l;)t=s.charCodeAt(i),n=null,t<128?o++:n=t>127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(o>a&&(u+=s.slice(a,o)),u+=n,a=o=i+1),i++;return o>a&&(u+=s.slice(a,l)),u},A=function(e){var t,n,o,i,a,s;for(e=b(e),i="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",a=0,s=0,t=-1,n=0,o=e.length;n<o;)s=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*s,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function w(e,t,n){return(t>>=0,n=String(void 0!==n?n:" "),e.length>t)?String(e):((t-=e.length)>n.length&&(n+=function(e,t){for(var n="";t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C=0,S={};function _(e){var t="",n=e.split(".").length,o=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(function(e){return w(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=w(o,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(function(e){t+=S[e]}),t}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t,n=(t=e.techVersion.split("."),"".concat(t[0],".").concat(t[1])),o=_(e.sdkSemver),i=_(n),a=e.feature,s=e.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(e){return"E"}}function T(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}((function(e){if(Array.isArray(e))return x(e)})(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return x(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(e){var t=C.toString(2);S[t=w(t,6,"0")]=e,C++});var R=n("lodash/assign"),O=n.n(R),I=n("lodash/cloneDeep"),M=n.n(I),j=n("lodash/compact"),D=n.n(j),L=n("lodash/difference"),P=n.n(L),F=n("lodash/functions"),N=n.n(F),B=n("lodash/identity"),U=n.n(B),W=n("lodash/includes"),z=n.n(W),V=n("lodash/isArray"),K=n.n(V),$=n("lodash/isPlainObject"),H=n.n($),q=n("lodash/isString"),Z=n.n(q),Y=n("lodash/merge"),Q=n.n(Y),J=n("lodash/isElement"),X=n.n(J),ee=n("lodash/isFunction"),et=n.n(ee),en=n("lodash/trim"),er=n.n(en);function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ei(){return("undefined"==typeof window?"undefined":eo(window))==="object"&&window.IntersectionObserver}function ea(){return("undefined"==typeof HTMLImageElement?"undefined":eo(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function es(e,t){try{if(ea()||!ei()){t();return}var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t(),n.unobserve(e.target))})},{threshold:[0,.01]});n.observe(e)}catch(e){t()}}var el="2.5.0",eu="d3jpl91pxevbkh.cloudfront.net",ec="cloudinary-a.akamaihd.net",ed="res.cloudinary.com",ef=ed,ep=1e4,eh={format:"jpg",resource_type:"video"},em=["webm","mp4","ogv"],eg={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ey={resource_type:"image",transformation:[],type:"upload"},ev={fallback_content:"",resource_type:"video",source_transformation:{},source_types:em,transformation:[],type:"upload"},eb=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],eA={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ew={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},ex={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eC=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function eS(e){return(eS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e_(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!z()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var ek=function(e){return e.length&&e.every(Z.a)},eE=function(e,t){return e.filter(function(e){return e!==t})},eT=function(e){return null!=e&&!isNaN(parseFloat(e))},eR=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,function(e){return e.split("").map(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}).join("")})},eO=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(function(e,t){var n,o;for(n in t)o=t[n],void 0===e[n]&&(e[n]=o);return e},e)},eI=Object.prototype,eM=eI.toString,ej=function(e){var t;return t=eS(e),!!e&&("object"===t||"function"===t)},eD="[object Function]",eL=function(e){return ej(e)&&eM.call(e)===eD},eP=RegExp((l="[A-Z]")+"+(?="+l+(s="[a-z]+")+")|"+l+"?"+s+"|"+l+"+|[0-9]+","g"),eF=function(e){var t=e.match(eP);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eN=function(e){var t=e.match(eP);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eB=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eq(i)||(n[i]=o);return n},eU=function(e){return eB(e,eF)},eW=function(e){return eB(e,eN)},ez="undefined"!=typeof btoa&&eL(btoa)?btoa:void 0!==i&&eL(i)?function(e){return e instanceof i||(e=new i.from(String(e),"binary")),e.toString("base64")}:function(e){throw Error("No base64 encoding function found")},eV=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return ez(e)};function eK(e){return eC.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function e$(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eH(e,"format"))}function eH(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eq(e){if(null==e)return!0;if("number"==typeof e.length)return 0===e.length;if("number"==typeof e.size)return 0===e.size;if("object"==eS(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function eG(){return navigator&&navigator.userAgent||""}function eZ(){var e=eG();return/Android/i.test(e)}function eY(){var e=eG();return/Edg/i.test(e)}function eQ(){var e=eG();return!eY()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eJ(){var e=eG();return/Safari/i.test(e)&&!eQ()&&!eZ()&&!eY()}var eX=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute("data-".concat(t));case!et()(e.getAttr):return e.getAttr("data-".concat(t));case!et()(e.data):return e.data(t);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t)}},e0=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!et()(e.setAttr):return e.setAttr("data-".concat(t),n);case!et()(e.data):return e.data(t,n);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t,n)}},e1=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute(t);case!et()(e.attr):return e.attr(t);case!et()(e.getAttr):return e.getAttr(t)}},e2=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute(t,n);case!et()(e.attr):return e.attr(t,n);case!et()(e.setAttr):return e.setAttr(t,n)}},e5=function(e,t){switch(!1){case null!=e:return;case!et()(e.removeAttribute):return e.removeAttribute(t);default:return e2(e,void 0)}},e3=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(e2(e,n,i)):o.push(e5(e,n));return o},e6=function(e,t){if(X()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e4=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=er()("".concat(e.className," ").concat(t))},e8=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e7=["Top","Right","Bottom","Left"];u=function(e,t){var n,o;return n=9===e.nodeType?e.documentElement:e,e===(o=t&&t.parentNode)||!!(o&&1===o.nodeType&&n.contains(o))};var e9=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},te=function(e,t,n){var o,i,a,s,l,c;return(s=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e8(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||u(e.ownerDocument,e)||(a=e9(e,t)),tr.test(a)&&s.test(t)&&(c=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=c,l.minWidth=i,l.maxWidth=o)),void 0!==a)?a+"":a},tt=function(e,t,n,o){var i;return(i=te(e,t,o),n)?parseFloat(i):i},tn=function(e,t,n,o,i){var a,s,l,u,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,s=(u="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<s;a++)l=u[a],"margin"===n&&(c+=tt(e,n+l,!0,i)),o?("content"===n&&(c-=tt(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=tt(e,"border".concat(l,"Width"),!0,i))):(c+=tt(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=tt(e,"border".concat(l,"Width"),!0,i)));return c},tr=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),to=function(e,t,n){var o,i,a,s;if(s=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e8(e),o="border-box"===tt(e,"boxSizing",!1,i),a<=0||null==a){if(((a=te(e,t,i))<0||null==a)&&(a=e.style[t]),tr.test(a))return a;s=o&&a===e.style[t],a=parseFloat(a)||0}return a+tn(e,t,n||(o?"border":"content"),s,i)},ti=function(e){return to(e,"width","content")};function ta(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var ts=function(){var e,t;function n(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.expressions=[],null!=e&&this.expressions.push(n.normalize(e))}return e=[{key:"serialize",value:function(){return n.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,o){return null!=n.OPERATORS[t]&&(t=n.OPERATORS[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(o)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],t=[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,function(e){return n.OPERATORS[e]});var o="("+Object.keys(n.PREDEFINED_VARS).map(function(e){return":".concat(e,"|").concat(e)}).join("|")+")",i=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(o),"g");return(e=e.replace(i,function(e){return n.PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],e&&ta(n.prototype,e),t&&ta(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();ts.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ts.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},ts.BOUNDRY="[ _]+";var tl=ts;function tu(e){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tc(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=td(i);return e=t?Reflect.construct(n,arguments,td(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tu(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return n=[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(tl);function tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var th=function(){var e;function t(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.configuration=null==e?{}:M()(e),eO(this.configuration,tm)}return e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return O()(this.configuration,M()(e)),this}},{key:"fromDocument",value:function(){var e,t,n,o;if(o="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=o.length;t<n;t++)e=o[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,o=this;return null!=a&&a.env&&a.env.CLOUDINARY_URL&&(e=a.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("="))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tp(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tp(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];null==a&&(a=!0),o.configuration[i]=a}))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case!Z()(e):return this.get(e);case!H()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return M()(this.configuration)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),tm={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"};th.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var tg=th,ty=function(){var e;function t(e){var n=this;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach(function(t){var o;return n.options[t]=null!=(o=e[t])?o:e[eN(t)]})}return e=[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e;if(e=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),D()(e).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tv(e){return(tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tb(e,t){return(tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){return(tA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tb(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tA(i);return e=t?Reflect.construct(n,arguments,tA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tv(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),n=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"],null!=e&&n.forEach(function(n){var o;return t.options[n]=null!=(o=e[n])?o:e[eN(n)]}),t.options.resourceType="text",t}return n=[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"textStyle",value:function(e){return this.options.textStyle=e,this}},{key:"toString",value:function(){var e,t,n,o,i,a,s,l,u,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eq(o),n=!eq(l),t&&n||!t&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,s=0,c=eR(this.options.text,/[,\/]/g),u="";a=i.exec(c);)u+=eR(c.slice(s,a.index))+a[0],s=a.index+a[0].length;u+=eR(c.slice(s))}return e=[this.options.resourceType,l,o,u],D()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eq(this.options.textStyle))return this.options.textStyle;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),eq(this.options.letterSpacing)&&!eT(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eq(this.options.lineSpacing)&&!eT(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eq(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eq(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eq(D()(e))){if(eq(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eq(this.options.fontSize)&&!eT(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=D()(e).join("_")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ty);function tx(e){return(tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tC(e,t){return(tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tC(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tS(o);return e=t?Reflect.construct(n,arguments,tS(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tx(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).options.resourceType="subtitles",t}return Object.defineProperty(o,"prototype",{writable:!1}),o}(tw);function tk(e){return(tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tE(e,t){return(tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tT(e){return(tT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tE(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tT(i);return e=t?Reflect.construct(n,arguments,tT(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tk(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),Z()(e)?t.options.url=e:(null!=e?e.url:void 0)&&(t.options.url=e.url),t}return n=[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat(eV(this.options.url))}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ty);function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tI(){return(tI="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tL(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function tM(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tj(e,t)}function tj(e,t){return(tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=tL(e);return n=t?Reflect.construct(o,arguments,tL(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tO(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function tL(e){return(tL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tP(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tF(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tN(e,t,n){return t&&tF(e.prototype,t),n&&tF(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tB=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.a;tP(this,e),this.name=t,this.shortName=n,this.process=o}return tN(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=K()(e)||H()(e)||Z()(e)?!eq(e):null!=e,null!=this.shortName&&t)?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:K()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}]),e}(),tU=function(e){tM(n,e);var t=tD(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tP(this,n),(i=t.call(this,e,o,s)).sep=a,i}return tN(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eq(e))return"";if(Z()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return et()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return K()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||K()(e)?tI(tL(n.prototype),"set",this).call(this,e):tI(tL(n.prototype),"set",this).call(this,[e])}}]),n}(tB),tW=function(e){tM(n,e);var t=tD(n);function n(e){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tP(this,n),(o=t.call(this,e,i,s)).sep=a,o}return tN(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eq(n))return t;if(ek(n)){var o=n.join(this.sep);eq(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return Z()(t)&&!eq(t)?"".concat(e.shortName,"_").concat(t):et()(t.serialize)?t.serialize():H()(t)&&!eq(t)?new t6(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,K()(this.origValue))?tI(tL(n.prototype),"set",this).call(this,this.origValue):tI(tL(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tB),tz=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tP(this,n),t.call(this,e,o,i)}return tN(n,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return tl.normalize(e)}}]),n}(tB),tV=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U.a;return tP(this,n),t.call(this,e,o,i)}return tN(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tB),tK=function(e){tM(n,e);var t=tD(n);function n(){return tP(this,n),t.apply(this,arguments)}return tN(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof ty)e=this.origValue;else if(H()(this.origValue)){var e,t=eU(this.origValue);e="text"===t.resourceType||null!=t.text?new tw(t):"subtitles"===t.resourceType?new t_(t):"fetch"===t.resourceType||null!=t.url?new tR(t):new ty(t)}else e=Z()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tR(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tw(e).textStyleIdentifier()}}]),n}(tB);function t$(e){return(t$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tH(e,t){return(tH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tq(e){return(tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tZ(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tQ(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tJ(e,t,n){return t&&tQ(e.prototype,t),n&&tQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}),e}var t0=function(){function e(t){var n,o;tY(this,e),n=void 0,o={},this.toOptions=function(e){var t={};if(null==e&&(e=!0),Object.keys(o).forEach(function(e){return t[e]=o[e].origValue}),tX(t,this.otherOptions),e&&!eq(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tX(t={},this.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&this.fromOptions("function"==typeof e.toOptions?e.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(e,t,n,i,a){return null==a&&(a=et()(i)?i:U.a),o[t]=new tB(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tV(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tz(t,n,a).set(e),this},this.arrayParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=t2(arguments),o[t]=new tU(t,n,i,a).set(e),this},this.transformationParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=t2(arguments),o[t]=new tW(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tK(t,n).set(e),this},this.getValue=function(e){var t=o[e]&&o[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return o[e]},this.remove=function(e){var t;switch(!1){case null==o[e]:return t=o[e],delete o[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return(function(){var t;for(e in t=[],o)null!=e&&t.push(e.match(t1)?e:eN(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),H()(e[t])&&(e[t]=M()(e[t]));return eq(this.chained)||((n=this.chained.map(function(e){return e.toPlainObject()})).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(o).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return o={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return tJ(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(Z()(t)||K()(t))&&(t={transformation:t}),(t=M()(t,function(t){if(t instanceof e||t instanceof Layer)return new t.clone})).if&&(this.set("if",t.if),delete t.if),t){var o=t[n];null!=o&&(n.match(t1)?"$attr"!==n&&this.set("variable",n,o):this.set(n,o))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach(function(e){return n.set(e,t.get(e).origValue)}),this}},{key:"set",value:function(e){var t;t=eF(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return z()(t3.methods,t)?this[t].apply(this,o):this.otherOptions[e]=o[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,o,i,a,s,l,u,c,d,p,h,m,g,y,v;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),m=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,y=function(e){var t,n,o,i,a;if(!K()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var s=tG(e[t],2);o=s[0],a=s[1],i.push("".concat(o,"_").concat(tl.normalize(a)))}return i}(null!=(s=this.get("variables"))?s.value():void 0),o=P()(o,["transformation","if","variables"]),v=[],p=[],n=o.length;t<n;t++)(d=o[t]).match(t1)?v.push(d+"_"+tl.normalize(null!=(l=this.get(d))?l.value():void 0)):p.push(null!=(u=this.get(d))?u.serialize():void 0);switch(!1){case!Z()(m):p.push(m);break;case!K()(m):c=c.concat(m)}return p=function(){var e,t,n;for(e=0,n=[],t=p.length;e<t;e++)g=p[e],(K()(g)&&!eq(g)||!K()(g)&&g)&&n.push(g);return n}(),p=v.sort().concat(y).concat(p.sort()),"if_end"===e?p.push(e):eq(e)||p.unshift(e),eq(h=D()(p).join(this.param_separator))||c.push(h),D()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,s,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],s=eN(e),z()(t3.PARAM_NAMES,s)||z()(eC,s)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eF(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||z()(["fit","limit","lfill"],this.getValue("crop")))&&(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==t.width&&(t.width=a),parseFloat(e)>=1&&null==t.height&&(t.height=e)),t}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return t3.methods}},{key:"isValidParamName",value:function(e){return t3.methods.indexOf(eF(e))>=0}}]),e}(),t1=/^\$[a-zA-Z0-9]+$/;function t2(e){var t;return(t=null!=e?e[e.length-1]:void 0,et()(t))?t:void 0}function t5(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}t0.prototype.trans_separator="/",t0.prototype.param_separator=",";var t3=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tH(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tq(o);return e=t?Reflect.construct(n,arguments,tq(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===t$(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){return tY(this,o),n.call(this,e)}return tJ(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",tl.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",tl.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tB.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",function(e){return H()(e)?(e=O()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tB.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tB.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",function(){return t5(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t5(e))?"fn_pre:".concat(e):e})}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":tl.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",tl.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",function(e){return Z()(e)?e:K()(e)?e.join("-"):e})}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?tl.normalize(e):null})}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,t,n,i,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(l){case"else":return this.chain(),this.param(l,"if","if");case"end":for(this.chain(),e=n=i=this.chained.length-1;n>=0&&"end"!==(t=this.chained[e].getValue("if"))&&(null==t||(a=o.new().if(t),this.chained[e].remove("if"),s=this.chained[e],this.chained[e]=o.new().transformation([a,s]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return tf.new().setParent(this);default:return this.param(l,"if","if",function(e){return tf.new(e).toString()})}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,o=tG(et()(null!=e?e.split:void 0)?e.split(".."):K()(e)?e:[null,null],2);if(n=o[0],t=o[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",tl.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",tl.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",tl.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(et()(null!=e?e.split:void 0)){var o=tG(e.split("x"),2);return n=o[0],t=o[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",tB.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?tl.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",tl.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",tl.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",tl.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(t0);t3.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],t3.PARAM_NAMES=t3.methods.map(eN).concat(tg.CONFIG_PARAMS);var t6=t3;function t4(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t8=function(){var e,t;function n(e,t,o){var i;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.name=e,this.publicId=t,null==o&&(H()(t)?(o=t,this.publicId=void 0):o={}),(i=new t6(o)).setParent(this),this.transformation=function(){return i}}return e=[{key:"htmlAttrs",value:function(e){var t,n;return(function(){var o,i;for(t in o=[],e)i=e[t],(n=Z()(i)?i.replace('"',""").replace("'","'"):i)&&o.push(n?!0===n?t:"".concat(t,'="').concat(n,'"'):void 0);return o})().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(e){return this.transformation().getValue(e)}},{key:"attributes",value:function(){var e=this.transformation().toHtmlAttributes();return Object.keys(e).forEach(function(t){H()(e[t])&&delete e[t]}),e.attributes&&(Q()(e,e.attributes),delete e.attributes),e}},{key:"setAttr",value:function(e,t){return this.transformation().set("html_".concat(e),t),this}},{key:"getAttr",value:function(e){return this.attributes()["html_".concat(e)]||this.attributes()[e]}},{key:"removeAttr",value:function(e){var t;return null!=(t=this.transformation().remove("html_".concat(e)))?t:this.transformation().remove(e)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var e="<"+this.name,t=this.htmlAttrs(this.attributes());return t&&t.length>0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,o;if(!et()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())o=n[t],e.setAttribute(t,o);return e}}],t=[{key:"new",value:function(e,t,n){return new this(e,t,n)}},{key:"isResponsive",value:function(e,t){var n;return n=eX(e,"src-cache")||eX(e,"src"),e6(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t4(n.prototype,e),t&&t4(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t7=["placeholder","accessibility"];function t9(e){return!!e&&!!e.match(/^https?:\//)}function ne(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function nt(e){var t,n,o,i,a,s,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=u)instanceof t6&&(t=t.toOptions()),"fetch"===(t=eO({},t,c,ey)).type&&(t.fetch_format=t.fetch_format||t.format),u=t,n=e,o=u.type,e=t9(n)||"fetch"!==o?n:(i=document.location.protocol+"//"+document.location.host,"?"===n[0]?i+=document.location.pathname:"/"!==n[0]&&(i+=document.location.pathname.replace(/\/[^\/]*$/,"/")),i+n);var d=(s=(a=u).cloud_name,l=a.url_suffix,s?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var p=function(e,t){if(t9(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,s,l,u,c,d,p=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t9(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),h=(s=(a=t||{}).placeholder,l=a.accessibility,u=new t6(function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(a,t7)),l&&ex[l]&&u.chain().effect(ex[l]),s&&("predominant-color"===s&&u.getValue("width")&&u.getValue("height")&&(s+="-pixel"),(ew[s]||ew.blur).forEach(function(e){return u.chain().transformation(e)})),u.serialize()),m=function(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",o="",i="res",a=".cloudinary.com",s="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",s=""),t.cdn_subdomain&&(i="res-"+(A(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==ec&&t.secure_distribution!==ef&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(A(e)%5+1)+".":"",a=t.cname),[n,o,i,a,s].join("")}(e,t),g=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),y=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,s=e.use_root_path,l=e.shorten,u=void 0===n?"image":n;if(H()(u)&&(u=(t=u).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(u=eg["".concat(u,"/").concat(i)],i=null,null==u))throw Error("URL Suffix only supported for ".concat(Object.keys(eg).join(", ")));if(s){if("image"===u&&"upload"===i||"images"===u)u=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===u&&"upload"===i&&(u="iu",i=null),[u,i].join("/")}(t);return e=function(e,t){if(t9(e))e=ne(e);else{try{e=decodeURIComponent(e)}catch(e){}e=ne(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),D()([m,y,g,h,p,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,u);if(u.urlAnalytics){var h=k(T(u)),m="?";p.indexOf("?")>=0&&(m="&"),p="".concat(p).concat(m,"_a=").concat(h)}if(u.auth_token){var g=p.indexOf("?")>=0?"&":"?";p="".concat(p).concat(g,"__cld_token__=").concat(u.auth_token)}return p}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nr=eq;function no(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={};if(nr(n))return i;var a=!t.sizes&&!0===n.sizes,s=!t.srcset;if(s||a){var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return arguments.length>2&&void 0!==arguments[2]&&arguments[2],function(e){var t,n=e.breakpoints||[];if(n.length)return n;var o=function(e){if(Array.isArray(e))return e}(t=[e.min_width,e.max_width,e.max_images].map(Number))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),3!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return nn(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(e,3)}}(t,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],s=o[2];if([i,a,s].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(i>a)throw"min_width must be less than max_width";if(s<=0)throw"max_images must be a positive integer";1===s&&(i=a);for(var l=Math.ceil((a-i)/Math.max(s-1,1)),u=i;u<a;u+=l)n.push(u);return n.push(a),n}(t)}(e,n,o);if(s){var u,c=n.transformation,d=(u=o,e$(u=M.a(u)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eK(o);return n=n||o,i.raw_transformation=new t6([Q.a({},n),{crop:"scale",width:t}]).toString(),nt(e,i)}(e,t,c,u)," ").concat(t,"w")}).join(", "));nr(d)||(i.srcset=d)}if(a){var p=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");nr(p)||(i.sizes=p)}}return i}function ni(e){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(){return(na="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nl(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ns(e,t){return(ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nl(i);return e=t?Reflect.construct(n,arguments,nl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ni(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"img",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){e=na(nl(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,s={};return Z()(a)?s.srcset=a:s=no(this.publicId,o,a,t),eq(s)||(delete e.width,delete e.height),Q()(e,s),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=nt(this.publicId,this.getOptions())),e}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nd(){return(nd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=np(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nf(e,t){return(nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function np(e){return(np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nf(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=np(i);return e=t?Reflect.construct(n,arguments,np(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"source",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,t,n=this.getOption("srcset"),o=nd(np(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Q()(o,no(this.publicId,o,n,a)),o.srcset||(o.srcset=nt(this.publicId,a)),!o.media&&a.media&&(o.media=(e=a.media,t=[],null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and "))),o}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nm(e){return(nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ng(){return(ng="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nv(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ny(e,t){return(ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){return(nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ny(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nv(i);return e=t?Reflect.construct(n,arguments,nv(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,"picture",e,n)).widthList=a,t}return n=[{key:"content",value:function(){var e=this;return this.widthList.map(function(t){var n=t.min_width,o=t.max_width,i=t.transformation,a=e.getOptions(),s=new t6(a);return s.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eK(a)).media={min_width:n,max_width:o},a.transformation=s,new nh(e.publicId,a).toHtml()}).join("")+new nu(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=ng(nv(i.prototype),"attributes",this).call(this);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return"</"+this.name+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nA(e){return(nA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nw(){return(nw="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nC(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nx(e,t){return(nx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nC(e){return(nC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nS=["source_types","source_transformation","fallback_content","poster","sources"],n_=["webm","mp4","ogv"],nk={format:"jpg",resource_type:"video"},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nx(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nC(i);return e=t?Reflect.construct(n,arguments,nC(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nA(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=eO({},t,ev),o.call(this,"video",e.replace(/\.(mp4|ogv|webm)$/,""),t)}return n=[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),o=this.transformation().getValue("fallback_content"),i=this.getOption("sources"),a=[];return K()(i)&&!eq(i)?a=i.map(function(t){var n=nt(e.publicId,eO({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eq(t)&&(t=n_),K()(t)&&(a=t.map(function(t){var o=nt(e.publicId,eO({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(o,t)}))),a.join("")+o}},{key:"attributes",value:function(){var e=this.getOption("source_types"),t=this.getOption("poster");if(void 0===t&&(t={}),H()(t)){var n=null!=t.public_id?ey:nk;t=nt(t.public_id||this.publicId,eO({},t,n,this.getOptions()))}var o=nw(nC(i.prototype),"attributes",this).call(this)||{};return o=e_(o,nS),!eq(this.getOption("sources"))||eq(e)||K()(e)||(o.src=nt(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=t&&(o.poster=t),o}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null;return eq(t)||(o="video/"+("ogv"===t?"ogg":t),eq(n)||(o+="; codecs="+(K()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:e,type:o})+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nR(e,t){return(nR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nO(e){return(nO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nR(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nO(i);return e=t?Reflect.construct(n,arguments,nO(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nT(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"meta",void 0,O()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},e))}return n=[{key:"closeTag",value:function(){return""}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t8);function nM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nj=function(e,t){e.transformation?e.transformation.push({flags:[t]}):(e.flags||(e.flags=[]),"string"==typeof e.flags&&(e.flags=[e.flags]),e.flags.push(t))},nD=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ep,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=eA.seeThru),nj(e,"alpha")},nL=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,s=e.blobURL,l=e.videoURL,u=document.createElement("video");return u.style.visibility="hidden",u.position="absolute",u.x=0,u.y=0,u.src=s,u.setAttribute("data-video-url",l),t&&u.setAttribute("autoplay",t),n&&u.setAttribute("playsinline",n),o&&u.setAttribute("loop",o),i&&u.setAttribute("muted",i),i&&(u.muted=i),a&&u.setAttribute("poster",a),u.onload=function(){URL.revokeObjectURL(s)},u},nP=function(e,t,n,o){var i=window,a=i.seeThru,s=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,u){var c=s(function(){u({status:"error",message:"Timeout instantiating seeThru instance"})},t);if(a)var d=a.create(e).ready(function(){l(c);var e=d.getCanvas();e.style.width="100%",e.className+=" "+n,o&&d.play(),i(d)});else u({status:"error",message:"Error instantiating seeThru instance"})})},nF=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,s=n.loop,l=n.muted;return t+=".mp4",new Promise(function(u,c){var d,p,h;(d=n.externalLibraries.seeThru,p=n.max_timeout_ms,h=window.seeThru,new Promise(function(e,t){if(h)e();else{var n=document.createElement("script");n.src=d;var o=setTimeout(function(){t({status:"error",message:"Timeout loading script ".concat(d)})},p);n.onerror=function(){clearTimeout(o),t({status:"error",message:"Error loading ".concat(d)})},n.onload=function(){clearTimeout(o),e()},document.head.appendChild(n)}})).then(function(){var d,p;(d=t,p=n.max_timeout_ms,new Promise(function(e,t){var n=setTimeout(function(){t({status:"error",message:"Timeout loading Blob URL"})},p);("undefined"!=typeof fetch&&fetch?function(e){return new Promise(function(t,n){fetch(e).then(function(e){e.blob().then(function(e){t(e)})}).catch(function(){n("error")})})}:function(e){return new Promise(function(t,n){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(e){t(o.response)},o.onerror=function(){n("error")},o.open("GET",e,!0),o.send()})})(d).then(function(t){e({status:"success",payload:{blobURL:URL.createObjectURL(t)}})}).catch(function(){t({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(n)})})).then(function(d){var p=nL({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:s,muted:l});e.appendChild(p),nP(p,n.max_timeout_ms,n.class,n.autoplay).then(function(){u(e)}).catch(function(e){c(e)})}).catch(function(e){c({status:e.status,message:e.message})})}).catch(function(e){c({status:e.status,message:e.message})})})};function nN(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},d=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},c=function(e,t,n,o){var i,a,s,l;return(l=null!=(i=null!=(a=null!=(s=o.responsive_use_breakpoints)?s:o.responsive_use_stoppoints)?a:this.config("responsive_use_breakpoints"))?i:this.config("responsive_use_stoppoints"))&&("resize"!==l||o.resizing)?this.calc_breakpoint(e,t,n):t},h=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=ti(e));return t},g=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},m=function(e,t){var n;return e>(n=eX(t,"width")||0)&&(n=e,e0(t,"width",e)),n};var nB=function(){var e,t;function n(e){var t;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,t=new tg(e),this.config=function(e,n){return t.config(e,n)},this.fromDocument=function(){return t.fromDocument(),this},this.fromEnvironment=function(){return t.fromEnvironment(),this},this.init=function(){return t.init(),this}}return e=[{key:"url",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nt(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=O()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=O()({},eh,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t6(e).serialize()}},{key:"image",value:function(e){var t,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,i),t=null!=(o=null!=i.client_hints?i.client_hints:this.config("client_hints"))&&o,null!=i.src||t||n.setAttr("src",""),n=n.toDOM(),t||(e0(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new nu(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new nb(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nh(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Q()({},eh,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,O()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,O()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,O()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,O()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,O()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return new nE(e,t=eO({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=O()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,s=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Q()(this.responsiveConfig||{},e),i=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),l&&this.cloudinary_update("img.".concat(i,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(o=this.responsiveConfig.responsive_resize)?o:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,a=null;var u=function(){var e,t,n,o,l,u,c;return(e=null!=(t=null!=(n=s.responsiveConfig.responsive_debounce)?n:s.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return s.cloudinary_update("img.".concat(i),s.responsiveConfig)},c=function(){return o(),l()},u=function(){o(),a=setTimeout(c,e)},e)?u():l()};return window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eX(e,"breakpoints")||eX(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||p;return et()(o)?o(t,n):(Z()(o)&&(o=o.split(",").map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})),d(o,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||t===0/0)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(eq(e))return this;t=eO({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=O()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),o=n.source||n.src;delete n.source,delete n.src;var i=new t6(n).toHtmlAttributes();return e0(e,"src-cache",nt(o,n)),e.setAttribute("width",i.width),e.setAttribute("height",i.height),e});return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,o,i,a,s,l,u=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=K()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nM(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return nM(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nM(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():Z()(n)?Array.prototype.slice.call(document.querySelectorAll(n),0):[n],l=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var p=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach(function(n){if(/img/i.test(n.tagName)){var y=!0;if(d&&e4(n,l),!eq(i=eX(n,"src-cache")||eX(n,"src"))){i=g.call(u,i,p),t8.isResponsive(n,l)&&(0!==(o=h(n))?(/w_auto:breakpoints/.test(i)?(s=m(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(s)):y=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((s=m(s=c.call(u,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(s)):y=!1),e5(n,"width"),t.responsive_preserve_height||e5(n,"height")):y=!1);var v="lazy"===t.loading&&!u.isNativeLazyLoadSupported()&&u.isLazyLoadSupported()&&!e[0].getAttribute("src");(y||v)&&u.setAttributeIfExists(e[0],"width","data-width"),y&&!v&&e2(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&e2(e,t,o)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return t6.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,a){e||a({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),nD(o);var s=n.video_url(t,o);new Promise(function(e,t){eJ()&&e(!1);var n=document.createElement("video"),o=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');e("maybe"===o||"probably"===o)}).then(function(l){var u;l?(u=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):u=nF(e,s,o),u.then(function(){i(e)}).catch(function(e){a({status:e.status,message:e.message})})}).catch(function(e){a({status:e.status,message:e.message})})})}}],t=[{key:"new",value:function(e){return new this(e)}}],e&&nN(n.prototype,e),t&&nN(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();O()(nB,y);var nU=nB;t.default={ClientHintsMetaTag:nI,Cloudinary:nU,Condition:tf,Configuration:tg,crc32:A,Expression:tl,FetchLayer:tR,HtmlTag:t8,ImageTag:nu,Layer:ty,PictureTag:nb,SubtitlesLayer:t_,TextLayer:tw,Transformation:t6,utf8_encode:b,Util:v,VideoTag:nE}},"lodash/assign":function(t,n){t.exports=e},"lodash/cloneDeep":function(e,n){e.exports=t},"lodash/compact":function(e,t){e.exports=n},"lodash/difference":function(e,t){e.exports=o},"lodash/functions":function(e,t){e.exports=s},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=u},"lodash/isArray":function(e,t){e.exports=c},"lodash/isElement":function(e,t){e.exports=d},"lodash/isFunction":function(e,t){e.exports=p},"lodash/isPlainObject":function(e,t){e.exports=h},"lodash/isString":function(e,t){e.exports=m},"lodash/merge":function(e,t){e.exports=g},"lodash/trim":function(e,t){e.exports=y}})},e.exports=o(n(60019),n(9850),n(60417),n(17335),n(1910),n(23059),n(11886),n(86152),n(92301),n(61049),n(97030),n(85505),n(98537),n(5648))},36887:function(e,t,n){"use strict";n.d(t,{nk:function(){return V}});var o=n(2784),i=n(13980),a=n.n(i),s=n(44005);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var p=["public_id"],h=["publicId"],m=["children"],g=["children","accessibility","placeholder"],y=s.Util.camelCase,v=s.Util.withCamelCaseKeys,b=s.Util.isEmpty,A=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],w={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},x={m4a:"mp4",wav:"vnd.wav",m3u:"x-mpegurl",mp3:"mpeg",ogv:"ogg",aif:"x-aiff",aifc:"x-aiff",aiff:"x-aiff"},C=[].concat(s.Transformation.PARAM_NAMES,A).map(s.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),S=function(e){var t=d(Object.entries(e).reduce(function(e,t){var n,o=t[0],i=t[1];return null==i?e:l({},e,((n={})[o]=i,n))},{}),p),n=s.Util.withSnakeCaseKeys(t);return s.Cloudinary.new(n)},_=function(e,t){var n=e.publicId,o=d(e,h);return S(o)[t+"Tag"](n,s.Util.withSnakeCaseKeys(o))},k=function(e,t){var n=s.Util.withSnakeCaseKeys(t),o=S(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},T=function(e){var t=e.children,n=d(e,m),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=s.Util.camelCase(e),i=n[e];C[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},R=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},O=function(){return[].slice.call(arguments).reduce(function(e,t){return Object.keys(t||{}).forEach(function(n){var o=t[n];null!=o&&(e[n]=o)}),e},{})},I=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return R(e,"CloudinaryPlaceholder")})),t},M=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return R(e,"CloudinaryTransformation")}).map(function(t){var n=O(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},j=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=v(d(e,g)),((void 0===(n=s.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),u=M(o);b(u)||(l.transformation=u);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},D=(0,o.createContext)(),L=s.Util.camelCase,P=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).getContext=function(){return i.context||{}},i.onIntersect=function(){i.setState({isInView:!0})},i.getExtendedProps=function(e,t){return void 0===e&&(e=i.props),void 0===t&&(t=i.getContext()),O(t,e)},i.attachRef=function(e){var t=i.props.innerRef;i.element.current=e,t&&(t instanceof Function?t(e):t.current=e)},i.element=(0,o.createRef)(),i}return u(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);P.defaultProps={innerRef:null,publicId:null},P.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[y(e[n])]=a().any;return t}(s.Transformation.PARAM_NAMES.map(L)),{innerRef:a().any,publicId:a().string}),P.contextType=D;var F=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=T(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(D.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(P);F.propTypes=l({},P.propTypes,{includeOwnBody:a().bool}),F.defaultProps={includeOwnBody:!1};var N=["children","innerRef"],B="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),U=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).isResponsive=function(){var e=i.getExtendedProps(),t=e.responsive,n=e.width;return t&&"auto"!==n&&console.warn(B),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,j(e)),N);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=T(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,u=n.cloudinaryReactProps,c=_(l({},o,u),"image"),d=s.Util.withCamelCaseKeys(c.attributes()),p=l({},d,a);return p.dataSrc&&(p["data-src"]=p.dataSrc),t&&p.id&&(p.id+="-cld-placeholder"),i.shouldLazyLoad()&&(p["data-src"]=p.dataSrc||p.src,delete p.src),A.forEach(function(e){delete p[e]}),p},i.update=function(){if(i.shouldLazyLoad())s.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=k(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=k(i.element.current,e);i.listenerRemovers.push(o)}},i.shouldLazyLoad=function(){var e=i.getExtendedProps().loading;return!i.state.isInView&&("lazy"===e||"auto"===e)},i.handleImageLoaded=function(){var e=i.props.onLoad;i.setState({isLoaded:!0},function(){e&&e()})},i.renderPlaceholder=function(e,t){t.style=l({},t.style||{},{opacity:0,position:"absolute"}),t.onLoad=i.handleImageLoaded;var n=i.getAttributes({placeholder:e});return o.createElement(o.Fragment,null,i.renderImage(t),o.createElement("div",{style:{display:"inline"}},o.createElement("img",l({ref:i.placeholderElement},n))))},i.renderImage=function(e){return o.createElement("img",l({ref:i.attachRef},e))},i.getPlaceholderType=function(){var e=I(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}u(t,e);var n=t.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach(function(e){return e()})},n.render=function(){var e=this.state.isLoaded,t=this.getAttributes(),n=this.getPlaceholderType();return!e&&n?this.renderPlaceholder(n,t):this.renderImage(t)},t}(P);U.defaultProps={},U.propTypes=P.propTypes,U.propTypes.responsive=a().bool,U.propTypes.loading=a().string,U.propTypes.accessibility=a().string;var W=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t}(P);W.propTypes=P.propTypes,W.defaultProps={},W.exposesProps=!0,W.displayName="CloudinaryTransformation";var z=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],V=function(e){function t(){for(var t,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).mimeType="video",t.mimeSubTypes=w,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=s.Util.withSnakeCaseKeys(s.Util.defaults({},o,n,{resource_type:"video",format:i}));return e.url(t,a)},t.generateUsingSourceTypes=function(e,n,o,i,a){return a.map(function(a){return t.toSourceTag(e,n,o,i[a]||{},a,t.buildMimeType(a))})},t.generateUsingSources=function(e,n,o,i){return i.map(function(i){var a=i.transformations,s=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,s,t.buildMimeType(s,l))})},t.toSourceTag=function(e,n,i,a,s,l){var u=t.generateVideoUrl(e,n,i,a,s);return o.createElement("source",{key:u+l,src:u,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return s.Util.isEmpty(n)||(o+="; codecs="+(s.Util.isArray(n)?n.join(", "):n)),o},t.getVideoTagProps=function(){var e=t.getMergedProps(),n=e.publicId,o=e.children,i=e.sourceTypes,a=e.sourceTransformation,u=void 0===a?{}:a,c=e.sources,p=d(e,z),h=T(p=O(p,{})),m=h.cloudinaryProps,g=h.cloudinaryReactProps,y=h.nonCloudinaryProps;p=l({},m,g);var v=s.Util.withSnakeCaseKeys(p),b=s.Cloudinary.new(v),A=b.videoTag(n,p).attributes();A=l({},s.Util.withCamelCaseKeys(A),y);var w=j(l({},p,{children:o})),x=null;return s.Util.isArray(c)&&!s.Util.isEmpty(c)?x=t.generateUsingSources(b,n,w,c):s.Util.isArray(i)?x=t.generateUsingSourceTypes(b,n,w,u,i):A.src=t.generateVideoUrl(b,n,w,u[i]||{},i),{sources:x,tagAttributes:A}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}u(t,e);var n=t.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var e=this.props,t=e.fallback,n=e.children,i=this.getVideoTagProps(),a=i.tagAttributes,s=i.sources;return o.createElement("video",l({ref:this.attachRef},a),s,t,n)},t}(P);V.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},V.defaultProps={sourceTypes:s.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var K=function(e){function t(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).mimeType="audio",t.mimeSubTypes=x,t}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),s=a.tagAttributes,u=a.sources;return delete s.poster,o.createElement("audio",l({ref:t},s),u,n,i)},t}(V);K.propTypes={publicId:a().string},K.defaultProps={sourceTypes:["aac","mp3","ogg"]};var $=function(e){return null};$.propTypes={type:a().string},$.defaultProps={type:"blur"},$.displayName="CloudinaryPlaceholder"},6277:function(e,t,n){"use strict";function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{W:function(){return o}}),t.Z=o},39714:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=o;var c,d,p=Array.isArray(n);return p!==Array.isArray(e)?o(n,u):p?u.arrayMerge(e,n,u):(d={},(c=u).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(e,t)&&c.isMergeableObject(n[t])?d[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,c)(e[t],n[t],c):d[t]=o(n[t],c))}),d)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},85978:function(e,t,n){var o,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(o=(function(){return a}).call(t,n,t,e))&&(e.exports=o)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;0!=i--;){var o,i,a,s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},73463:function(e,t,n){"use strict";var o=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return o.isMemo(e)?s:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var i=m(n);i&&i!==g&&e(t,i,o)}var s=d(n);p&&(s=s.concat(p(n)));for(var l=u(t),y=u(n),v=0;v<s.length;++v){var b=s[v];if(!a[b]&&!(o&&o[b])&&!(y&&y[b])&&!(l&&l[b])){var A=h(n,b);try{c(t,b,A)}catch(e){}}}}return t}},43459:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,A=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case l:case s:case m:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case y:case u:return e;default:return t}}case i:return t}}}function S(e){return C(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||C(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===A||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b)},t.typeOf=C},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){t.read=function(e,t,n,o,i){var a,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,d=-7,p=n?i-1:0,h=n?-1:1,m=e[t+p];for(p+=h,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+p],p+=h,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=256*s+e[t+p],p+=h,d-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,o),a-=c}return(m?-1:1)*s*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var s,l,u,c=8*a-i-1,d=(1<<c)-1,p=d>>1,h=23===i?5960464477539062e-23:0,m=o?0:a-1,g=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?t+=h/u:t+=h*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=d?(l=0,s=d):s+p>=1?(l=(t*u-1)*Math.pow(2,i),s+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=255&l,m+=g,l/=256,i-=8);for(s=s<<i|l,c+=i;c>0;e[n+m]=255&s,m+=g,s/=256,c-=8);e[n+m-g]|=128*y}},39515:function(e,t,n){var o=n(38761)(n(37772),"DataView");e.exports=o},89612:function(e,t,n){var o=n(52118),i=n(96909),a=n(98138),s=n(4174),l=n(7942);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),s=n(72344),l=n(94769);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},10326:function(e,t,n){var o=n(38761)(n(37772),"Map");e.exports=o},96738:function(e,t,n){var o=n(92411),i=n(36417),a=n(86928),s=n(79493),l=n(24150);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},52760:function(e,t,n){var o=n(38761)(n(37772),"Promise");e.exports=o},2143:function(e,t,n){var o=n(38761)(n(37772),"Set");e.exports=o},45386:function(e,t,n){var o=n(96738),i=n(52842),a=n(52482);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=a,e.exports=s},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),s=n(4417),l=n(8605),u=n(71418);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=l,c.prototype.set=u,e.exports=c},50857:function(e,t,n){var o=n(37772).Symbol;e.exports=o},79162:function(e,t,n){var o=n(37772).Uint8Array;e.exports=o},93215:function(e,t,n){var o=n(38761)(n(37772),"WeakMap");e.exports=o},49432:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72517:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},67552:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}},38333:function(e,t,n){var o=n(77832);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},34893:function(e){e.exports=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},1634:function(e,t,n){var o=n(36473),i=n(79631),a=n(86152),s=n(73226),l=n(39045),u=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),p=!n&&!d&&s(e),h=!n&&!d&&!p&&u(e),m=n||d||p||h,g=m?o(e.length,String):[],y=g.length;for(var v in e)(t||c.call(e,v))&&!(m&&("length"==v||p&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,y)))&&g.push(v);return g}},50343:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},65067:function(e){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},87064:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},50217:function(e){e.exports=function(e){return e.split("")}},28582:function(e,t,n){var o=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}},60091:function(e,t,n){var o=n(13940),i=n(41225),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];a.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||o(e,t,n)}},22218:function(e,t,n){var o=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return -1}},67993:function(e,t,n){var o=n(752),i=n(90249);e.exports=function(e,t){return e&&o(t,i(t),e)}},55906:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e,t){return e&&o(t,i(t),e)}},13940:function(e,t,n){var o=n(83043);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},18874:function(e,t,n){var o=n(86571),i=n(72517),a=n(60091),s=n(67993),l=n(55906),u=n(92175),c=n(51522),d=n(7680),p=n(19987),h=n(13483),m=n(76939),g=n(70940),y=n(99917),v=n(8222),b=n(78725),A=n(86152),w=n(73226),x=n(4714),C=n(29259),S=n(43679),_=n(90249),k=n(18582),T="[object Arguments]",R="[object Function]",O="[object Object]",I={};I[T]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[O]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[R]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,M,j,D,L){var P,F=1&n,N=2&n,B=4&n;if(M&&(P=D?M(t,j,D,L):M(t)),void 0!==P)return P;if(!C(t))return t;var U=A(t);if(U){if(P=y(t),!F)return c(t,P)}else{var W=g(t),z=W==R||"[object GeneratorFunction]"==W;if(w(t))return u(t,F);if(W==O||W==T||z&&!D){if(P=N||z?{}:b(t),!F)return N?p(t,l(P,t)):d(t,s(P,t))}else{if(!I[W])return D?t:{};P=v(t,W,F)}}L||(L=new o);var V=L.get(t);if(V)return V;L.set(t,P),S(t)?t.forEach(function(o){P.add(e(o,n,M,o,t,L))}):x(t)&&t.forEach(function(o,i){P.set(i,e(o,n,M,i,t,L))});var K=B?N?m:h:N?k:_,$=U?void 0:K(t);return i($||t,function(o,i){$&&(o=t[i=o]),a(P,i,e(o,n,M,i,t,L))}),P}},39413:function(e,t,n){var o=n(29259),i=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},85246:function(e,t,n){var o=n(45386),i=n(38333),a=n(34893),s=n(50343),l=n(47826),u=n(59950);e.exports=function(e,t,n,c){var d=-1,p=i,h=!0,m=e.length,g=[],y=t.length;if(!m)return g;n&&(t=s(t,l(n))),c?(p=a,h=!1):t.length>=200&&(p=u,h=!1,t=new o(t));t:for(;++d<m;){var v=e[d],b=null==n?v:n(v);if(v=c||0!==v?v:0,h&&b==b){for(var A=y;A--;)if(t[A]===b)continue t;g.push(v)}else p(t,b,c)||g.push(v)}return g}},21359:function(e){e.exports=function(e,t,n,o){for(var i=e.length,a=n+(o?1:-1);o?a--:++a<i;)if(t(e[a],a,e))return a;return -1}},62034:function(e,t,n){var o=n(65067),i=n(95882);e.exports=function e(t,n,a,s,l){var u=-1,c=t.length;for(a||(a=i),l||(l=[]);++u<c;){var d=t[u];n>0&&a(d)?n>1?e(d,n-1,a,s,l):o(l,d):s||(l[l.length]=d)}return l}},15308:function(e,t,n){var o=n(55463)();e.exports=o},26548:function(e,t,n){var o=n(15308),i=n(90249);e.exports=function(e,t){return e&&o(e,t,i)}},23919:function(e,t,n){var o=n(67552),i=n(61049);e.exports=function(e,t){return o(t,function(t){return i(e[t])})}},13324:function(e,t,n){var o=n(17297),i=n(33812);e.exports=function(e,t){t=o(t,e);for(var n=0,a=t.length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},1897:function(e,t,n){var o=n(65067),i=n(86152);e.exports=function(e,t,n){var a=t(e);return i(e)?a:o(a,n(e))}},53366:function(e,t,n){var o=n(50857),i=n(62107),a=n(37157),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var o=n(21359),i=n(22195),a=n(66024);e.exports=function(e,t,n){return t==t?a(e,t,n):o(e,i,n)}},15183:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},88746:function(e,t,n){var o=n(51952),i=n(15125);e.exports=function e(t,n,a,s,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,s,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),s=n(17416),l=n(70940),u=n(86152),c=n(73226),d=n(77598),p="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,b){var A=u(e),w=u(t),x=A?h:l(e),C=w?h:l(t);x=x==p?m:x,C=C==p?m:C;var S=x==m,_=C==m,k=x==C;if(k&&c(e)){if(!c(t))return!1;A=!0,S=!1}if(k&&!S)return b||(b=new o),A||d(e)?i(e,t,n,y,v,b):a(e,t,x,n,y,v,b);if(!(1&n)){var T=S&&g.call(e,"__wrapped__"),R=_&&g.call(t,"__wrapped__");if(T||R){var O=T?e.value():e,I=R?t.value():t;return b||(b=new o),v(O,I,n,y,b)}}return!!k&&(b||(b=new o),s(e,t,n,y,v,b))}},74511:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},37036:function(e,t,n){var o=n(86571),i=n(88746);e.exports=function(e,t,n,a){var s=n.length,l=s,u=!a;if(null==e)return!l;for(e=Object(e);s--;){var c=n[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<l;){var d=(c=n[s])[0],p=e[d],h=c[1];if(u&&c[2]){if(void 0===p&&!(d in e))return!1}else{var m=new o;if(a)var g=a(p,h,d,e,t,m);if(!(void 0===g?i(h,p,3,a,m):g))return!1}}return!0}},22195:function(e){e.exports=function(e){return e!=e}},6840:function(e,t,n){var o=n(61049),i=n(47394),a=n(29259),s=n(87035),l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(o(e)?p:l).test(s(e))}},8109:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},35522:function(e,t,n){var o=n(53366),i=n(61158),a=n(15125),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),s=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?i(e[0],e[1]):o(e):l(e)}},86411:function(e,t,n){var o=n(16001),i=n(54248),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:function(e,t,n){var o=n(29259),i=n(16001),a=n(62966),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=i(e),n=[];for(var l in e)"constructor"==l&&(t||!s.call(e,l))||n.push(l);return n}},26423:function(e,t,n){var o=n(37036),i=n(49882),a=n(73477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},74716:function(e,t,n){var o=n(88746),i=n(72579),a=n(95041),s=n(21401),l=n(28792),u=n(73477),c=n(33812);e.exports=function(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):o(t,s,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),s=n(25561),l=n(29259),u=n(18582),c=n(52434);e.exports=function e(t,n,d,p,h){t!==n&&a(n,function(a,u){if(h||(h=new o),l(a))s(t,n,u,d,e,p,h);else{var m=p?p(c(t,u),a,u+"",t,n,h):void 0;void 0===m&&(m=a),i(t,u,m)}},u)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),s=n(51522),l=n(78725),u=n(79631),c=n(86152),d=n(93746),p=n(73226),h=n(61049),m=n(29259),g=n(97030),y=n(77598),v=n(52434),b=n(63329);e.exports=function(e,t,n,A,w,x,C){var S=v(e,n),_=v(t,n),k=C.get(_);if(k){o(e,n,k);return}var T=x?x(S,_,n+"",e,t,C):void 0,R=void 0===T;if(R){var O=c(_),I=!O&&p(_),M=!O&&!I&&y(_);T=_,O||I||M?c(S)?T=S:d(S)?T=s(S):I?(R=!1,T=i(_,!0)):M?(R=!1,T=a(_,!0)):T=[]:g(_)||u(_)?(T=S,u(S)?T=b(S):(!m(S)||h(S))&&(T=l(_))):R=!1}R&&(C.set(_,T),w(T,_,A,x,C),C.delete(_)),o(e,n,T)}},20256:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:function(e,t,n){var o=n(13324);e.exports=function(e){return function(t){return o(t,e)}}},36060:function(e,t,n){var o=n(23059),i=n(43114),a=n(75251);e.exports=function(e,t){return a(i(e,t,o),e+"")}},86532:function(e,t,n){var o=n(86874),i=n(83043),a=n(23059),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=s},39872:function(e){e.exports=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+t];return a}},36473:function(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},1054:function(e,t,n){var o=n(50857),i=n(50343),a=n(86152),s=n(4795),l=1/0,u=o?o.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},51704:function(e,t,n){var o=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},29078:function(e,t,n){var o=n(17297),i=n(56974),a=n(62721),s=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[s(i(t))]}},50753:function(e,t,n){var o=n(50343);e.exports=function(e,t){return o(t,function(t){return e[t]})}},59950:function(e){e.exports=function(e,t){return e.has(t)}},17297:function(e,t,n){var o=n(86152),i=n(21401),a=n(54452),s=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(s(e))}},23895:function(e,t,n){var o=n(39872);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:o(e,t,n)}},10768:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&o(t,e[n],0)>-1;);return n}},79882:function(e,t,n){var o=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},92175:function(e,t,n){e=n.nmd(e);var o=n(37772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}},34727:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var o=n(50857),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},6190:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},51522:function(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},752:function(e,t,n){var o=n(60091),i=n(13940);e.exports=function(e,t,n,a){var s=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?i(n,c,d):o(n,c,d)}return n}},7680:function(e,t,n){var o=n(752),i=n(80633);e.exports=function(e,t){return o(e,i(e),t)}},19987:function(e,t,n){var o=n(752),i=n(12680);e.exports=function(e,t){return o(e,i(e),t)}},24019:function(e,t,n){var o=n(37772)["__core-js_shared__"];e.exports=o},97263:function(e,t,n){var o=n(36060),i=n(82406);e.exports=function(e){return o(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,l&&i(n[0],n[1],l)&&(s=a<3?void 0:s,a=1),t=Object(t);++o<a;){var u=n[o];u&&e(t,u,o,s)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var u=s[e?l:++i];if(!1===n(a[u],u,a))break}return t}}},48642:function(e,t,n){var o=n(97030);e.exports=function(e){return o(e)?void 0:e}},83043:function(e,t,n){var o=n(38761),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var o=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,s,l,u){var c=1&n,d=e.length,p=t.length;if(d!=p&&!(c&&p>d))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,y=!0,v=2&n?new o:void 0;for(u.set(e,t),u.set(t,e);++g<d;){var b=e[g],A=t[g];if(s)var w=c?s(A,b,g,t,e,u):s(b,A,g,e,t,u);if(void 0!==w){if(w)continue;y=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(b===e||l(b,e,n,s,u)))return v.push(t)})){y=!1;break}}else if(!(b===A||l(b,A,n,s,u))){y=!1;break}}return u.delete(e),u.delete(t),y}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),s=n(74871),l=n(75179),u=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!p(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=l;case"[object Set]":var g=1&o;if(m||(m=u),e.size!=t.size&&!g)break;var y=h.get(e);if(y)return y==t;o|=2,h.set(e,t);var v=s(m(e),m(t),o,c,p,h);return h.delete(e),v;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},17416:function(e,t,n){var o=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var u=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!u)return!1;for(var p=d;p--;){var h=c[p];if(!(u?h in t:i.call(t,h)))return!1}var m=l.get(e),g=l.get(t);if(m&&g)return m==t&&g==e;var y=!0;l.set(e,t),l.set(t,e);for(var v=u;++p<d;){var b=e[h=c[p]],A=t[h];if(a)var w=u?a(A,b,h,t,e,l):a(b,A,h,e,t,l);if(!(void 0===w?b===A||s(b,A,n,a,l):w)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return l.delete(e),l.delete(t),y}},29097:function(e,t,n){var o=n(35676),i=n(43114),a=n(75251);e.exports=function(e){return a(i(e,void 0,o),e+"")}},51242:function(e,t,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},13483:function(e,t,n){var o=n(1897),i=n(80633),a=n(90249);e.exports=function(e){return o(e,a,i)}},76939:function(e,t,n){var o=n(1897),i=n(12680),a=n(18582);e.exports=function(e){return o(e,a,i)}},27937:function(e,t,n){var o=n(98304);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:function(e,t,n){var o=n(28792),i=n(90249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],s=e[a];t[n]=[a,s,o(s)]}return t}},38761:function(e,t,n){var o=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return o(n)?n:void 0}},47353:function(e,t,n){var o=n(60241)(Object.getPrototypeOf,Object);e.exports=o},62107:function(e,t,n){var o=n(50857),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(t?e[l]=n:delete e[l]),i}},80633:function(e,t,n){var o=n(67552),i=n(30981),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:o(s(e=Object(e)),function(t){return a.call(e,t)})}:i;e.exports=l},12680:function(e,t,n){var o=n(65067),i=n(47353),a=n(80633),s=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:s;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),s=n(2143),l=n(93215),u=n(53366),c=n(87035),d="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=c(o),v=c(i),b=c(a),A=c(s),w=c(l),x=u;(o&&x(new o(new ArrayBuffer(1)))!=g||i&&x(new i)!=d||a&&x(a.resolve())!=p||s&&x(new s)!=h||l&&x(new l)!=m)&&(x=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case y:return g;case v:return d;case b:return p;case A:return h;case w:return m}return t}),e.exports=x},98109:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1369:function(e,t,n){var o=n(17297),i=n(79631),a=n(86152),s=n(39045),l=n(61158),u=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,p=!1;++c<d;){var h=u(t[c]);if(!(p=null!=e&&n(e,h)))break;e=e[h]}return p||++c!=d?p:!!(d=null==e?0:e.length)&&l(d)&&s(h,d)&&(a(e)||i(e))}},33880:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52118:function(e,t,n){var o=n(99191);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},96909:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}},7942:function(e,t,n){var o=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},8222:function(e,t,n){var o=n(79882),i=n(34727),a=n(96058),s=n(70169),l=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(e)}}},78725:function(e,t,n){var o=n(39413),i=n(47353),a=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}},95882:function(e,t,n){var o=n(50857),i=n(79631),a=n(86152),s=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(s&&e&&e[s])}},39045:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:function(e,t,n){var o=n(41225),i=n(67878),a=n(39045),s=n(29259);e.exports=function(e,t,n){if(!s(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&a(t,n.length)):"string"==l&&t in n)&&o(n[t],e)}},21401:function(e,t,n){var o=n(86152),i=n(4795),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},98304:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:function(e,t,n){var o,i=n(24019),a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},16001:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:function(e,t,n){var o=n(29259);e.exports=function(e){return e==e&&!o(e)}},3945:function(e){e.exports=function(){this.__data__=[],this.size=0}},21846:function(e,t,n){var o=n(22218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},88028:function(e,t,n){var o=n(22218);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},72344:function(e,t,n){var o=n(22218);e.exports=function(e){return o(this.__data__,e)>-1}},94769:function(e,t,n){var o=n(22218);e.exports=function(e,t){var n=this.__data__,i=o(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var o=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}},36417:function(e,t,n){var o=n(27937);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).get(e)}},79493:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).has(e)}},24150:function(e,t,n){var o=n(27937);e.exports=function(e,t){var n=o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var o=n(30733);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var o=n(38761)(Object,"create");e.exports=o},54248:function(e,t,n){var o=n(60241)(Object.keys,Object);e.exports=o},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var o=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var o=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,s=-1,l=i(a.length-t,0),u=Array(l);++s<l;)u[s]=a[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=a[s];return c[t]=n(u),o(e,this,c)}}},62721:function(e,t,n){var o=n(13324),i=n(39872);e.exports=function(e,t){return t.length<2?e:o(e,i(t,0,-1))}},37772:function(e,t,n){var o=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},52434:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},75251:function(e,t,n){var o=n(86532),i=n(97787)(o);e.exports=i},97787:function(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var i=t(),a=16-(i-o);if(o=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var o=n(80235);e.exports=function(){this.__data__=new o,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var o=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return -1}},8435:function(e,t,n){var o=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):o(e)}},54452:function(e,t,n){var o=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,o,i){t.push(o?i.replace(a,"$1"):n||e)}),t});e.exports=s},33812:function(e,t,n){var o=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,s].join("|")+")"+u+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,s,"["+t+"]"].join("|")+")"+(u+l+c),"g");e.exports=function(e){return e.match(d)||[]}},60019:function(e,t,n){var o=n(60091),i=n(752),a=n(97263),s=n(67878),l=n(16001),u=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||s(t)){i(t,u(t),e);return}for(var n in t)c.call(t,n)&&o(e,n,t[n])});e.exports=d},9850:function(e,t,n){var o=n(18874);e.exports=function(e){return o(e,5)}},60417:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var a=e[t];a&&(i[o++]=a)}return i}},86874:function(e){e.exports=function(e){return function(){return e}}},17335:function(e,t,n){var o=n(85246),i=n(62034),a=n(36060),s=n(93746),l=a(function(e,t){return s(e)?o(e,i(t,1,s,!0)):[]});e.exports=l},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var o=n(62034);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},1910:function(e,t,n){var o=n(23919),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},72579:function(e,t,n){var o=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:o(e,t);return void 0===i?n:i}},95041:function(e,t,n){var o=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,o)}},23059:function(e){e.exports=function(e){return e}},11886:function(e,t,n){var o=n(77832),i=n(67878),a=n(85505),s=n(38101),l=n(98346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?s(n):0;var d=e.length;return n<0&&(n=u(d+n,0)),a(e)?n<=d&&e.indexOf(t,n)>-1:!!d&&o(e,t,n)>-1}},79631:function(e,t,n){var o=n(15183),i=n(15125),a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(e){return i(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var o=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},93746:function(e,t,n){var o=n(67878),i=n(15125);e.exports=function(e){return i(e)&&o(e)}},73226:function(e,t,n){e=n.nmd(e);var o=n(37772),i=n(36330),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||i},92301:function(e,t,n){var o=n(15125),i=n(97030);e.exports=function(e){return o(e)&&1===e.nodeType&&!i(e)}},61049:function(e,t,n){var o=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var o=n(74511),i=n(47826),a=n(4146),s=a&&a.isMap,l=s?i(s):o;e.exports=l},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var o=n(53366),i=n(47353),a=n(15125),s=Object.prototype,l=Function.prototype.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},43679:function(e,t,n){var o=n(8109),i=n(47826),a=n(4146),s=a&&a.isSet,l=s?i(s):o;e.exports=l},85505:function(e,t,n){var o=n(53366),i=n(86152),a=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==o(e)}},4795:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},77598:function(e,t,n){var o=n(35522),i=n(47826),a=n(4146),s=a&&a.isTypedArray,l=s?i(s):o;e.exports=l},90249:function(e,t,n){var o=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?o(e):i(e)}},18582:function(e,t,n){var o=n(1634),i=n(18390),a=n(67878);e.exports=function(e){return a(e)?o(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},34519:function(e,t,n){var o=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){o(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var o=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};return n.cache=new(i.Cache||o),n}i.Cache=o,e.exports=i},98537:function(e,t,n){var o=n(84565),i=n(97263)(function(e,t,n){o(e,t,n)});e.exports=i},17620:function(e,t,n){var o=n(50343),i=n(18874),a=n(29078),s=n(17297),l=n(752),u=n(48642),c=n(29097),d=n(76939),p=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=o(t,function(t){return t=s(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,u));for(var p=t.length;p--;)a(n,t[p]);return n});e.exports=p},65798:function(e,t,n){var o=n(20256),i=n(82952),a=n(21401),s=n(33812);e.exports=function(e){return a(e)?o(s(e)):i(e)}},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},5707:function(e,t,n){var o=n(7642),i=1/0;e.exports=function(e){return e?(e=o(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var o=n(5707);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var o=n(51704),i=n(29259),a=n(4795),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=u.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?s:+e}},63329:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e){return o(e,i(e))}},66188:function(e,t,n){var o=n(1054);e.exports=function(e){return null==e?"":o(e)}},5648:function(e,t,n){var o=n(1054),i=n(51704),a=n(23895),s=n(10768),l=n(51821),u=n(8435),c=n(66188);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return i(e);if(!e||!(t=o(t)))return e;var d=u(e),p=u(t),h=l(d,p),m=s(d,p)+1;return a(d,h,m).join("")}},74930:function(e,t,n){var o=n(66188),i=0;e.exports=function(e){var t=++i;return o(e)+t}},98346:function(e,t,n){var o=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},70314:function(e,t,n){e.exports=n(67203)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(89062)}])},17329:function(e,t,n){"use strict";var o=n(88581),i=n(70314),a=n.n(i),s=window;s.__sentryRewritesTunnelPath__=void 0,s.SENTRY_RELEASE={id:"7d1a3c8dc88f8127319e3e2a253228d68c221be5"},s.__rewriteFramesAssetPrefixPath__="";let{publicRuntimeConfig:l}=a()();o.S1({dsn:"https://".concat("52e42fce46f0404c92a1169b0dc636dc","@").concat("o146123.ingest.sentry.io","/").concat("4504179265437696"),tracesSampleRate:.05,tunnel:"/api/t",environment:l.sentryEnvironment})},19745:function(e,t){"use strict";var n,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return p},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return d},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return m}});let s="refresh",l="navigate",u="restore",c="server-patch",d="prefetch",p="fast-refresh",h="server-action";function m(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=o||(o={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12394:function(e,t,n){"use strict";function o(e,t,n,o){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}}),n(14079),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let o=n(17653),i=n(52322),a=o._(n(2784)),s=n(40706),l=n(90345),u=n(8985),c=n(70286),d=n(95549),p=n(24698),h=n(47640),m=n(34407),g=n(12394),y=n(70558),v=n(19745),b=new Set;function A(e,t,n,o,i,a){if(a||(0,l.isLocalURL)(t)){if(!o.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(b.has(i))return;b.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:u,as:b,children:x,prefetch:C=null,passHref:S,replace:_,shallow:k,scroll:T,locale:R,onClick:O,onMouseEnter:I,onTouchStart:M,legacyBehavior:j=!1,...D}=e;n=x,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let L=a.default.useContext(p.RouterContext),P=a.default.useContext(h.AppRouterContext),F=null!=L?L:P,N=!L,B=!1!==C,U=null===C?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:W,as:z}=a.default.useMemo(()=>{if(!L){let e=w(u);return{href:e,as:b?w(b):e}}let[e,t]=(0,s.resolveHref)(L,u,!0);return{href:e,as:b?(0,s.resolveHref)(L,b):t||e}},[L,u,b]),V=a.default.useRef(W),K=a.default.useRef(z);j&&(o=a.default.Children.only(n));let $=j?o&&"object"==typeof o&&o.ref:t,[H,q,Z]=(0,m.useIntersection)({rootMargin:"200px"}),Y=a.default.useCallback(e=>{(K.current!==z||V.current!==W)&&(Z(),K.current=z,V.current=W),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[z,$,W,Z,H]);a.default.useEffect(()=>{F&&q&&B&&A(F,W,z,{locale:R},{kind:U},N)},[z,W,q,R,B,null==L?void 0:L.locale,F,N,U]);let Q={ref:Y,onClick(e){j||"function"!=typeof O||O(e),j&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),F&&!e.defaultPrevented&&function(e,t,n,o,i,s,u,c,d){let{nodeName:p}=e.currentTarget;if("A"===p.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(h):h()}(e,F,W,z,_,k,T,R,N)},onMouseEnter(e){j||"function"!=typeof I||I(e),j&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&(B||!N)&&A(F,W,z,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:U},N)},onTouchStart:function(e){j||"function"!=typeof M||M(e),j&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&(B||!N)&&A(F,W,z,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:U},N)}};if((0,c.isAbsoluteUrl)(z))Q.href=z;else if(!j||S||"a"===o.type&&!("href"in o.props)){let e=void 0!==R?R:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,g.getDomainLocale)(z,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);Q.href=t||(0,y.addBasePath)((0,d.addLocale)(z,e,null==L?void 0:L.defaultLocale))}return j?a.default.cloneElement(o,Q):(0,i.jsx)("a",{...D,...Q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let o=n(2784),i=n(41346),a="function"==typeof IntersectionObserver,s=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[d,p]=(0,o.useState)(!1),h=(0,o.useRef)(null),m=(0,o.useCallback)(e=>{h.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:o,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},o=l.find(e=>e.root===n.root&&e.margin===n.margin);if(o&&(t=s.get(o)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),s.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(o);let e=l.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&p(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!d){let e=(0,i.requestIdleCallback)(()=>p(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,d,h.current]),[m,d,(0,o.useCallback)(()=>{p(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return s}});let o=n(17653);n(52322),n(2784);let i=o._(n(23711));function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let n=i.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e});let l=(o={...o,...t}).loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete o.webpack,delete o.modules,s(n,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let o=n(17653)._(n(2784)).default.createContext(null)},23711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let o=n(17653)._(n(2784)),i=n(79195),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function u(){if(!a){let t=new c(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return u()})}function d(e,t){!function(){u();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return s.loading||s.error?o.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?o.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>u(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(u,e)}function p(e,t){let n=[];for(;e.length;){let o=e.pop();n.push(o(t))}return Promise.all(n).then(()=>{if(e.length)return p(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{p(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());p(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},17378:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var o=n(52322),i=n(56803),a=n(37792),s=n(2784),l=n(19468);let u=e=>{let t=(0,s.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.ay,{...e,onError:e=>{t.current=e},ref:(0,s.useCallback)(e=>{if(null===e)return;let n=t.current;((0,a.ff)(n)||(0,a.TW)(n))&&(t.current=void 0,e.reset())},[n])})}},94160:function(e,t,n){"use strict";n.d(t,{KA:function(){return l},Ve:function(){return h},X$:function(){return u},XQ:function(){return p},Xe:function(){return A},Xi:function(){return d},Yf:function(){return g},eH:function(){return c},pL:function(){return v},t0:function(){return y},tI:function(){return m},y0:function(){return s},y3:function(){return b}});var o=n(94840),i=n(26109),a=n(80148);let s=async()=>{let e=await a.managerClient.getState();return{...e,libraries:e.libraries.map(e=>({...e,components:e.components.map(e=>({...e,model:i.id.toSM(e.model),screenshots:Object.fromEntries(Object.entries(e.screenshots).map(e=>{let[t,n]=e;return[t,{...n,url:URL.createObjectURL(n.data)}]}))}))})),customTypes:e.customTypes.map(e=>o.Dc.toSM(e)),remoteCustomTypes:e.remoteCustomTypes.map(e=>o.Dc.toSM(e)),remoteSlices:e.remoteSlices.map(e=>i.id.toSM(e))}},l=async e=>{let{customType:t,updateMeta:n}=e;return await a.managerClient.customTypes.updateCustomType({model:t,updateMeta:n})},u=async(e,t)=>{let{model:n,errors:o}=await a.managerClient.slices.readSlice({libraryID:e,sliceID:t});return{slice:n?i.id.toSM(n):void 0,errors:o}},c=async(e,t)=>await a.managerClient.slices.renameSliceVariation({libraryID:e.from,sliceID:e.model.id,variationID:t.id,model:i.bB.fromSM(t)}),d=a.managerClient.slices.deleteSliceVariation,p=async e=>{let{errors:t}=await a.managerClient.slices.updateSliceScreenshot({libraryID:e.libraryName,sliceID:e.sliceId,variationID:e.variationId,data:e.file});return{url:URL.createObjectURL(e.file),errors:t}},h=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),m=async e=>await a.managerClient.prismicRepository.pushChanges(e),g=async()=>await a.managerClient.user.logout(),y=async()=>{if(!await a.managerClient.user.checkIsLoggedIn())return{status:"pending"};{let e=await a.managerClient.user.getProfile();return{status:"ok",shortId:e.shortId,intercomHash:e.intercomHash}}},v=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),b=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),A={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},43388:function(e,t,n){"use strict";n.d(t,{a:function(){return u},g:function(){return c}});var o=n(52322),i=n(56803),a=n(2784),s=n(62628),l=n.n(s);let u=e=>{let{children:t,...n}=e,i=a.Children.count(t);return(0,o.jsx)("nav",{"aria-label":"Breadcrumb",...n,children:(0,o.jsx)("ol",{className:l().items,children:a.Children.map(t,(e,t)=>(0,o.jsxs)(o.Fragment,{children:[e,t<i-1?(0,o.jsx)(d,{}):null]}))})})},c=e=>{let{active:t=!1,children:n,...a}=e;return(0,o.jsx)("li",{...a,children:(0,o.jsx)(i.bL,{component:"span",color:t?"grey12":"grey11",variant:t?"bold":"normal",children:n})})},d=()=>(0,o.jsx)("li",{"aria-hidden":!0,children:(0,o.jsx)(i.bL,{component:"span",color:"grey11",children:"/"})})},67557:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return ty},Rp:function(){return tS},OJ:function(){return tC},LB:function(){return tx},Ev:function(){return tw}});var a=n(52322),s=n(56803),l=n(36887),u=n(6277),c=n(2784),d=n(81229),p=n(7896);function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function m(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,c.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,c.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=(0,c.createContext)(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,l=(null==n?void 0:n[e][a])||i,u=(0,c.useMemo)(()=>s,Object.values(s));return(0,c.createElement)(l.Provider,{value:u},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||i,u=(0,c.useContext)(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:o})=>{let i=n(e)[`__scope${o}`];return{...t,...i}},{});return(0,c.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function g(e){let t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),(0,c.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function y(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return(0,c.useCallback)(y(...e),e)}function b(e){return e.split("-")[1]}function A(e){return"y"===e?"height":"width"}function w(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(w(e))?"x":"y"}function C(e,t,n){let o,{reference:i,floating:a}=e,s=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,u=x(t),c=A(u),d=i[c]/2-a[c]/2,p="x"===u;switch(w(t)){case"top":o={x:s,y:i.y-a.height};break;case"bottom":o={x:s,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:l};break;case"left":o={x:i.x-a.width,y:l};break;default:o={x:i.x,y:i.y}}switch(b(t)){case"start":o[u]-=d*(n&&p?-1:1);break;case"end":o[u]+=d*(n&&p?-1:1)}return o}let S=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=C(c,o,u),h=o,m={},g=0;for(let n=0;n<l.length;n++){let{name:a,fn:y}=l[n],{x:v,y:b,data:A,reset:w}=await y({x:d,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,p=null!=b?b:p,m={...m,[a]:{...m[a],...A}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:p}=C(c,h,u)),n=-1)}return{x:d,y:p,placement:h,strategy:i,middlewareData:m}};function _(e,t){return"function"==typeof e?e(t):e}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function R(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=_(t,e),g=k(m),y=l[h?"floating"===p?"reference":"floating":p],v=T(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===p?{...s.floating,x:o,y:i}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},x=T(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:A,strategy:u}):b);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}let O=Math.min,I=Math.max,M=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:s,elements:l}=t,{element:u,padding:c=0}=_(e,t)||{};if(null==u)return{};let d=k(c),p={x:n,y:o},h=x(i),m=A(h),g=await s.getDimensions(u),y="y"===h,v=y?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-p[h]-a.floating[m],C=p[h]-a.reference[h],S=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),T=S?S[v]:0;T&&await (null==s.isElement?void 0:s.isElement(S))||(T=l.floating[v]||a.floating[m]);let R=T/2-g[m]/2-1,M=O(d[y?"top":"left"],R),j=O(d[y?"bottom":"right"],R),D=T-g[m]-j,L=T/2-g[m]/2+(w/2-C/2),P=I(M,O(L,D)),F=null!=b(i)&&L!=P&&a.reference[m]/2-(L<M?M:j)-g[m]/2<0?L<M?M-L:D-L:0;return{[h]:p[h]-F,data:{[h]:P,centerOffset:L-P+F}}}}),j=["top","right","bottom","left"],D=(j.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function L(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}let P={start:"end",end:"start"};function F(e){return e.replace(/start|end/g,e=>P[e])}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B(e){return j.some(t=>e[t]>=0)}function U(e){return"x"===e?"y":"x"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){return W(e).getComputedStyle(e)}function V(e){return e instanceof W(e).Node}function K(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){return e instanceof W(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Z(e){let t=Y(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Q(e){return["html","body","#document"].includes(K(e))}let J=Math.min,X=Math.max,ee=Math.round,et=Math.floor,en=e=>({x:e,y:e});function er(e){let t=z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=$(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=ee(n)!==a||ee(o)!==s;return l&&(n=a,o=s),{width:n,height:o,$:l}}function eo(e){return e instanceof W(e).Element}function ei(e){return eo(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!$(t))return en(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=er(t),s=(a?ee(n.width):n.width)/o,l=(a?ee(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let es=en(0);function el(e){let t=W(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=ei(e),l=en(1);t&&(o?eo(o)&&(l=ea(o)):l=ea(e));let u=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==W(s))&&i)?el(s):en(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,p=a.width/l.x,h=a.height/l.y;if(s){let e=W(s),t=o&&eo(o)?W(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=ea(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,h*=e.y,c+=i,d+=a,n=W(n).frameElement}}return T({width:p,height:h,x:c,y:d})}function ec(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ed(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function ef(e){return eu(ed(e)).left+ec(e).scrollLeft}function ep(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||ed(e);return H(t)?t.host:t}function eh(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ep(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&q(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=W(o);return i?t.concat(a,a.visualViewport||[],q(o)?o:[]):t.concat(o,eh(o))}function em(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=W(e),o=ed(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){a=i.width,s=i.height;let e=Y();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:l,y:u}}(e,n);else if("document"===t)o=function(e){let t=ed(e),n=ec(e),o=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=X(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=X(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}(ed(e));else if(eo(t))o=function(e,t){let n=eu(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=$(e)?ea(e):en(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,n);else{let n=el(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function eg(e,t){return $(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ey(e,t){let n=W(e);if(!$(e))return n;let o=eg(e,t);for(;o&&["table","td","th"].includes(K(o))&&"static"===z(o).position;)o=eg(o,t);return o&&("html"===K(o)||"body"===K(o)&&"static"===z(o).position&&!Z(o))?n:o||function(e){let t=ep(e);for(;$(t)&&!Q(t);){if(Z(t))return t;t=ep(t)}return null}(e)||n}let ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=$(n),a=ed(n);if(n===a)return t;let s={scrollLeft:0,scrollTop:0},l=en(1),u=en(0);if((i||!i&&"fixed"!==o)&&(("body"!==K(n)||q(a))&&(s=ec(n)),$(n))){let e=eu(n);l=ea(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:ed,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let o=eh(e).filter(e=>eo(e)&&"body"!==K(e)),i=null,a="fixed"===z(e).position,s=a?ep(e):e;for(;eo(s)&&!Q(s);){let t=z(s),n=Z(s);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||q(s)&&!n&&function e(t,n){let o=ep(t);return!(o===n||!eo(o)||Q(o))&&("fixed"===z(o).position||e(o,n))}(e,s))?o=o.filter(e=>e!==s):i=t,s=ep(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((e,n)=>{let o=em(t,n,i);return e.top=X(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=X(o.left,e.left),e},em(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ey,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||ey,a=this.getDimensions;return{reference:function(e,t,n){let o=$(t),i=ed(t),a="fixed"===n,s=eu(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=en(0);if(o||!o&&!a){if(("body"!==K(t)||q(i))&&(l=ec(t)),$(t)){let e=eu(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ef(i))}return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}(t,await i(n),o),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return er(e)},getScale:ea,isElement:eo,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eb(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=ei(e),d=i||a?[...c?eh(c):[],...eh(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let p=c&&l?function(e,t){let n,o=null,i=ed(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;let m={rootMargin:-et(d)+"px "+-et(i.clientWidth-(c+p))+"px "+-et(i.clientHeight-(d+h))+"px "+-et(c)+"px",threshold:X(0,J(1,u))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!g)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,m)}o.observe(e)}(!0),a}(c,n):null,h,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y=u?eu(e):null;return u&&function t(){let o=eu(e);y&&(o.x!==y.x||o.y!==y.y||o.width!==y.width||o.height!==y.height)&&n(),y=o,h=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),p&&p(),g&&g.disconnect(),g=null,u&&cancelAnimationFrame(h)}}let eA=(e,t,n)=>{let o=new Map,i={platform:ev,...n},a={...i.platform,_c:o};return S(e,t,{...i,platform:a})};var ew=n(28316);let ex=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return M({element:n.current,padding:o}).fn(t)}else if(n)return M({element:n,padding:o}).fn(t);return{}}});var eC="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function eS(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!eS(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!e.$$typeof)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=e_(e);return Math.round(t*n)/n}function eE(e){let t=c.useRef(e);return eC(()=>{t.current=e}),t}let eT=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eI);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null);return(0,c.createElement)(eR,(0,p.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(eR,(0,p.Z)({},o,{ref:t}),n)});eT.displayName="Slot";let eR=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?y(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});eR.displayName="SlotClone";let eO=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eI(e){return(0,c.isValidElement)(e)&&e.type===eO}let eM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,c.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eT:t;return(0,c.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,c.createElement)(a,(0,p.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ej=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eM.svg,(0,p.Z)({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),eD=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eL="Popper",[eP,eF]=m(eL),[eN,eB]=eP(eL),eU=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eB("PopperAnchor",n),s=(0,c.useRef)(null),l=v(t,s);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,c.createElement)(eM.div,(0,p.Z)({},i,{ref:l}))}),eW="PopperContent",[ez,eV]=eP(eW),eK=(0,c.forwardRef)((e,t)=>{var n,o,i,a,s,l,u,d,h,m,y,C,S,k;let{__scopePopper:T,side:M="bottom",sideOffset:j=0,align:D="center",alignOffset:P=0,arrowPadding:W=0,collisionBoundary:z=[],collisionPadding:V=0,sticky:K="partial",hideWhenDetached:$=!1,avoidCollisions:H=!0,onPlaced:q,...Z}=e,Y=eB(eW,T),[Q,J]=(0,c.useState)(null),X=v(t,e=>J(e)),[ee,et]=(0,c.useState)(null),en=function(e){let[t,n]=(0,c.useState)(void 0);return eD(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ee),er=null!==(n=null==en?void 0:en.width)&&void 0!==n?n:0,eo=null!==(o=null==en?void 0:en.height)&&void 0!==o?o:0,ei="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ea=Array.isArray(z)?z:[z],es=ea.length>0,el={padding:ei,boundary:ea.filter(eq),altBoundary:es},{refs:eu,floatingStyles:ec,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[p,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(o);eS(m,o)||g(o);let[y,v]=c.useState(null),[b,A]=c.useState(null),w=c.useCallback(e=>{e!=_.current&&(_.current=e,v(e))},[v]),x=c.useCallback(e=>{e!==k.current&&(k.current=e,A(e))},[A]),C=a||y,S=s||b,_=c.useRef(null),k=c.useRef(null),T=c.useRef(p),R=eE(u),O=eE(i),I=c.useCallback(()=>{if(!_.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};O.current&&(e.platform=O.current),eA(_.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!eS(T.current,t)&&(T.current=t,ew.flushSync(()=>{h(t)}))})},[m,t,n,O]);eC(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let M=c.useRef(!1);eC(()=>(M.current=!0,()=>{M.current=!1}),[]),eC(()=>{if(C&&(_.current=C),S&&(k.current=S),C&&S){if(R.current)return R.current(C,S,I);I()}},[C,S,I,R]);let j=c.useMemo(()=>({reference:_,floating:k,setReference:w,setFloating:x}),[w,x]),D=c.useMemo(()=>({reference:C,floating:S}),[C,S]),L=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ek(D.floating,p.x),o=ek(D.floating,p.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,D.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:I,refs:j,elements:D,floatingStyles:L}),[p,I,j,D,L])}({strategy:"fixed",placement:M+("center"!==D?"-"+D:""),whileElementsMounted:eb,elements:{reference:Y.anchor},middleware:[{name:"offset",options:h={mainAxis:j+eo,alignmentAxis:P},async fn(e){let{x:t,y:n}=e,o=await async function(e,t){let{placement:n,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=w(n),l=b(n),u="x"===x(n),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,p=_(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}(e,h);return{x:t+o.x,y:n+o.y,data:o}}},H&&{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?(void 0===m&&(m={}),{options:m,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=_(m,e),c={x:t,y:n},d=x(o),p=U(d),h=c[d],g=c[p],y=_(s,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var b,A;let e="y"===d?"width":"height",t=["top","left"].includes(w(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[p])||0)+(t?0:v.crossAxis),s=i.reference[p]+i.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[p])||0)-(t?v.crossAxis:0);g<n?g=n:g>s&&(g=s)}return{[d]:h,[p]:g}}}):void 0,...el},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_(y,e),u={x:t,y:n},c=await R(e,l),d=x(w(o)),p=U(d),h=u[d],m=u[p];if(i){let e="y"===d?"bottom":"right";h=I(h+c["y"===d?"top":"left"],O(h,h-c[e]))}if(a){let e="y"===p?"bottom":"right";m=I(m+c["y"===p?"top":"left"],O(m,m-c[e]))}let g=s.fn({...e,[d]:h,[p]:m});return{...g,data:{x:g.x-t,y:g.y-n}}}},H&&{name:"flip",options:C={...el},async fn(e){var t,n,o,i;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...S}=_(C,e),k=w(a),T=w(u)===u,O=await (null==c.isRTL?void 0:c.isRTL(d.floating)),I=m||(T||!v?[L(u)]:function(e){let t=L(e);return[F(e),t,F(t)]}(u));m||"none"===y||I.push(...function(e,t,n,o){let i=b(e),a=function(e,t,n){let o=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(w(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(F)))),a}(u,v,y,O));let M=[u,...I],j=await R(e,S),D=[],P=(null==(t=s.flip)?void 0:t.overflows)||[];if(p&&D.push(j[k]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=b(e),i=x(e),a=A(i),s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=L(s)),{main:s,cross:L(s)}}(a,l,O);D.push(j[e],j[t])}if(P=[...P,{placement:a,overflows:D}],!D.every(e=>e<=0)){let e=((null==(n=s.flip)?void 0:n.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let l=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(g){case"bestFit":{let e=null==(i=P.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(l=e);break}case"initialPlacement":l=u}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:S={...el,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${o}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=_(S,e),c=await R(e,u),d=w(o),p=b(o),h="x"===x(o),{width:m,height:g}=i.floating;"top"===d||"bottom"===d?(t=d,n=p===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===p?"top":"bottom");let y=g-c[t],v=m-c[n],A=!e.middlewareData.shift,C=y,k=v;if(h){let e=m-c.left-c.right;k=p||A?O(v,e):e}else{let e=g-c.top-c.bottom;C=p||A?O(y,e):e}if(A&&!p){let e=I(c.left,0),t=I(c.right,0),n=I(c.top,0),o=I(c.bottom,0);h?k=m-2*(0!==e||0!==t?e+t:I(c.left,c.right)):C=g-2*(0!==n||0!==o?n+o:I(c.top,c.bottom))}await l({...e,availableWidth:k,availableHeight:C});let T=await a.getDimensions(s.floating);return m!==T.width||g!==T.height?{reset:{rects:!0}}:{}}},ee&&ex({element:ee,padding:W}),eG({arrowWidth:er,arrowHeight:eo}),$&&{name:"hide",options:k={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=_(k,e);switch(n){case"referenceHidden":{let n=N(await R(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:B(n)}}}case"escaped":{let n=N(await R(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:B(n)}}}default:return{}}}}]}),[eh,em]=eZ(ed),eg=g(q);eD(()=>{ef&&(null==eg||eg())},[ef,eg]);let ey=null===(i=ep.arrow)||void 0===i?void 0:i.x,ev=null===(a=ep.arrow)||void 0===a?void 0:a.y,eT=(null===(s=ep.arrow)||void 0===s?void 0:s.centerOffset)!==0,[eR,eO]=(0,c.useState)();return eD(()=>{Q&&eO(window.getComputedStyle(Q).zIndex)},[Q]),(0,c.createElement)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ef?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eR,"--radix-popper-transform-origin":[null===(l=ep.transformOrigin)||void 0===l?void 0:l.x,null===(u=ep.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(ez,{scope:T,placedSide:eh,onArrowChange:et,arrowX:ey,arrowY:ev,shouldHideArrow:eT},(0,c.createElement)(eM.div,(0,p.Z)({"data-side":eh,"data-align":em},Z,{ref:X,style:{...Z.style,animation:ef?void 0:"none",opacity:null!==(d=ep.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),e$={top:"bottom",right:"left",bottom:"top",left:"right"},eH=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eV("PopperArrow",n),a=e$[i.placedSide];return(0,c.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(ej,(0,p.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eq(e){return null!==e}let eG=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,s;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=eZ(l),y={start:"0%",center:"50%",end:"100%"}[g],v=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+p/2,b=(null!==(a=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==a?a:0)+h/2,A="",w="";return"bottom"===m?(A=d?y:`${v}px`,w=`${-h}px`):"top"===m?(A=d?y:`${v}px`,w=`${u.floating.height+h}px`):"right"===m?(A=`${-h}px`,w=d?y:`${b}px`):"left"===m&&(A=`${u.floating.width+h}px`,w=d?y:`${b}px`),{data:{x:A,y:w}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}let eY=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eN,{scope:t,anchor:o,onAnchorChange:i},n)},eQ=(0,c.forwardRef)((e,t)=>{var n;let{container:o=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return o?ew.createPortal((0,c.createElement)(eM.div,(0,p.Z)({},i,{ref:t})),o):null}),eJ=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),s=(0,c.useRef)(e),l=(0,c.useRef)("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,c.useReducer)((e,t)=>{let o=n[e][t];return null!=o?o:e},t));return(0,c.useEffect)(()=>{let e=eX(a.current);l.current="mounted"===u?e:"none"},[u]),eD(()=>{let t=a.current,n=s.current;if(n!==e){let o=l.current,i=eX(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),eD(()=>{if(o){let e=e=>{let t=eX(a.current).includes(e.animationName);e.target===o&&t&&(0,ew.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eX(a.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,c.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):c.Children.only(n),a=v(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eX(e){return(null==e?void 0:e.animationName)||"none"}eJ.displayName="Presence";let e0="dismissableLayer.update",e1=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...m}=e,y=(0,c.useContext)(e1),[b,A]=(0,c.useState)(null),w=null!==(n=null==b?void 0:b.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),C=v(t,e=>A(e)),S=Array.from(y.layers),[_]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(_),T=b?S.indexOf(b):-1,R=y.layersWithOutsidePointerEventsDisabled.size>0,O=T>=k,I=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1),i=(0,c.useRef)(()=>{});return(0,c.useEffect)(()=>{let e=e=>{if(e.target&&!o.current){let o={originalEvent:e};function a(){e3("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));!O||n||(null==s||s(e),null==u||u(e),e.defaultPrevented||null==d||d())},w),M=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e3("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...y.branches].some(e=>e.contains(t))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==d||d())},w);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{T!==y.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},w),(0,c.useEffect)(()=>{if(b)return i&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),e5(),()=>{i&&1===y.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o)}},[b,w,i,y]),(0,c.useEffect)(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),e5())},[b,y]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(e0,e),()=>document.removeEventListener(e0,e)},[]),(0,c.createElement)(eM.div,(0,p.Z)({},m,{ref:C,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,M.onFocusCapture),onBlurCapture:h(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,I.onPointerDownCapture)}))});function e5(){let e=new CustomEvent(e0);document.dispatchEvent(e)}function e3(e,t,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&(0,ew.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e6="HoverCard",[e4,e8]=m(e6,[eF]),e7=eF(),[e9,te]=e4(e6),tt=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=te("HoverCardTrigger",n),a=e7(n);return(0,c.createElement)(eU,(0,p.Z)({asChild:!0},a),(0,c.createElement)(eM.a,(0,p.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:h(e.onPointerEnter,tu(i.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(i.onClose)),onFocus:h(e.onFocus,i.onOpen),onBlur:h(e.onBlur,i.onClose),onTouchStart:h(e.onTouchStart,e=>e.preventDefault())})))}),tn="HoverCardPortal",[tr,to]=e4(tn,{forceMount:void 0}),ti="HoverCardContent",ta=(0,c.forwardRef)((e,t)=>{let n=to(ti,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=te(ti,e.__scopeHoverCard);return(0,c.createElement)(eJ,{present:o||a.open},(0,c.createElement)(ts,(0,p.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:h(e.onPointerEnter,tu(a.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(a.onClose)),ref:t})))}),ts=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,...u}=e,d=te(ti,n),m=e7(n),g=(0,c.useRef)(null),y=v(t,g),[b,A]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(b){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[b]),(0,c.useEffect)(()=>{if(g.current){let e=()=>{A(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),(0,c.useEffect)(()=>{g.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(e2,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:h(s,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eK,(0,p.Z)({},m,u,{onPointerDown:h(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&A(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:y,style:{...u.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}),tl=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e7(n);return(0,c.createElement)(eH,(0,p.Z)({},i,o,{ref:t}))});function tu(e){return t=>"touch"===t.pointerType?void 0:e()}let tc=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,u=e7(t),d=(0,c.useRef)(0),p=(0,c.useRef)(0),h=(0,c.useRef)(!1),m=(0,c.useRef)(!1),[y=!1,v]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=(0,c.useState)(e),[o]=n,i=(0,c.useRef)(o),a=g(t);return(0,c.useEffect)(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o,l=g(n);return[s,(0,c.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}({prop:o,defaultProp:i,onChange:a}),b=(0,c.useCallback)(()=>{clearTimeout(p.current),d.current=window.setTimeout(()=>v(!0),s)},[s,v]),A=(0,c.useCallback)(()=>{clearTimeout(d.current),h.current||m.current||(p.current=window.setTimeout(()=>v(!1),l))},[l,v]),w=(0,c.useCallback)(()=>v(!1),[v]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(p.current)},[]),(0,c.createElement)(e9,{scope:t,open:y,onOpenChange:v,onOpen:b,onClose:A,onDismiss:w,hasSelectionRef:h,isPointerDownOnContentRef:m},(0,c.createElement)(eY,u,n))},td=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=te(tn,t);return(0,c.createElement)(tr,{scope:t,forceMount:n},(0,c.createElement)(eJ,{present:n||a.open},(0,c.createElement)(eQ,{asChild:!0,container:i},o)))};var tf=n(10704),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(s.t.space[16]),side:u,sideOffset:d=4,trigger:p,...h}=e,{arrowWidth:m,arrowHeight:g}=(0,c.useMemo)(()=>{if(void 0===o)return{arrowWidth:10,arrowHeight:5};let e=Math.SQRT2*o;return{arrowWidth:e,arrowHeight:e/2}},[o]);return(0,a.jsxs)(tc,{...h,children:[(0,a.jsx)(tt,{asChild:!0,children:p}),(0,a.jsx)(td,{children:(0,a.jsxs)(ta,{align:t,alignOffset:n,className:tp().container,collisionPadding:l,side:u,sideOffset:d,children:[i,(0,a.jsx)(tl,{className:tp().arrow,height:g,width:m})]})})]})};var tm=n(56099),tg=n.n(tm);let ty=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:s,onClose:l,open:u,openDelay:d=5e3,side:p,sideOffset:h,trigger:m}=e,[g,y]=(0,c.useState)(!1),v=(0,c.useCallback)(()=>{l&&l(),y(!1)},[l,y]);return!function(e){let{condition:t,action:n,delay:o}=e,[i,a]=(0,c.useState)(null);(0,c.useEffect)(()=>(t&&null===i&&a(setTimeout(n,o)),()=>{null!==i&&(clearTimeout(i),a(null))}),[t,n,o,i,a])}({condition:!0===u,action:(0,c.useCallback)(()=>y(e=>!1===e),[y]),delay:d}),(0,a.jsx)(th,{align:t,alignOffset:n,arrowSize:o,collisionPadding:s,onOpenChange:e=>{!0===e&&!0===u&&y(e)},open:g,openDelay:d,side:p,sideOffset:h,trigger:m,children:(0,a.jsx)(tv,{handleClose:v,children:i})})},tv=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tb.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tg().root,children:n})})},tb=(0,c.createContext)({handleClose:()=>void 0});function tA(){return(0,c.useContext)(tb)}let tw=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsxs)("div",{className:tg().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tg().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tx=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tg().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,u.W)(tg().media,n.className)})})},tC=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tg().description,children:t})},tS=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsx)("div",{className:tg().closeButtonContainer,children:(0,a.jsx)(s.E,{sx:{width:"100%"},onClick:n,children:t})})}},63908:function(e,t,n){"use strict";n.d(t,{AK:function(){return m},Dj:function(){return c},Kp:function(){return h},L4:function(){return g},Oh:function(){return w},PQ:function(){return A},cx:function(){return u},d7:function(){return d},fo:function(){return b},gR:function(){return v},ux:function(){return p},xS:function(){return y}});var o=n(88866),i=n(49219),a=n(26109),s=n(358);let l="default";function u(e){return e.model.variations.length-Object.keys(e.screenshots).length}function c(e){var t,n,o;return null!==(o=null!==(n=null===(t=e.config)||void 0===t?void 0:t.label)&&void 0!==n?n:"Group"===e.type||"Slice"===e.type||"Boolean"!==e.type&&"Separator"!==e.type&&"Table"!==e.type?e.fieldset:void 0)&&void 0!==o?o:e.type}function d(e,t){var n;return null===(n=e.screenshots[t.id])||void 0===n?void 0:n.url}function p(e,t){var n,o,i,a,s;let l={},u={};if("type"in e){if("Slice"===e.type){for(let t in e["non-repeat"])l[t]=e["non-repeat"][t].type;for(let t in e.repeat)u[t]=e.repeat[t].type}else if("Group"===e.type)for(let t in null===(n=e.config)||void 0===n?void 0:n.fields)u[t]=null!==(i=null===(o=e.config)||void 0===o?void 0:o.fields[t].type)&&void 0!==i?i:"";else l[t]=e.type}else if("id"in e){for(let{key:t,value:n}of null!==(a=e.primary)&&void 0!==a?a:[])l[t]=n.type;for(let{key:t,value:n}of null!==(s=e.items)&&void 0!==s?s:[])u[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(u).sort().map(e=>[e,u[e]]))}}function h(e){let{slice:t,id:n,name:o,copiedVariation:i}=e,a={...i,id:n,name:o};return{slice:{...t,model:{...t.model,variations:t.model.variations.concat([a])}},variation:a}}function m(e){let{slice:t,variationId:n,widgetArea:o,fieldId:i}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.filter(e=>e.key!==i)}}return e})}}}function g(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:s}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.map(e=>e.key===i?{key:a,value:s}:e)}}return e})}}}function y(e){let{slice:t,variationId:n,widgetArea:s,newFieldId:l,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:u.type!==o.GroupFieldType?{...e,[s]:null===(c=e[s])||void 0===c?void 0:c.concat([{key:l,value:u}])}:s===a.Rt.Items?e:{...e,[s]:null===(t=e[s])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(u)}])}})}}}function v(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:s,destinationIndex:l}=e,u=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=u.splice(s,1);return u.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:u}:e)}}}function b(e){return{id:(0,s.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,s.MP)(l),docURL:"...",version:"initial",description:(0,s.MP)(l),imageUrl:""}]}}function A(e,t){return{...e,model:{...e.model,name:t}}}function w(e){let{slice:t,variationId:n}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){let t={...e};return delete t.items,t}return e})}}}},63470:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var o=n(96317);function i(){let e=(0,o.L)("section_greater_than_slice"),t=(null==e?void 0:e.value)==="treatment";return{eligible:t,value:t?"section":"slice"}}},59294:function(e,t,n){"use strict";n.d(t,{cd:function(){return i},ne:function(){return a},Ag:function(){return s}});var o=n(52322);let i={page:{blankSlateImage:"/blank-slate-page-types.png",builderPageDynamicSegment:"pageTypeId",getBuilderPagePathname:e=>"/page-types/".concat(e),matchesTablePagePathname:e=>e===i.page.tablePagePathname||e.startsWith("/page-types"),tablePagePathname:"/",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6048 8.0111C15.4571 7.97946 15.3031 8.01624 15.1857 8.11117C15.0682 8.2061 15 8.34901 15 8.5V23.5C15 23.651 15.0682 23.7939 15.1857 23.8888C15.3031 23.9838 15.4571 24.0205 15.6048 23.9889L21.8143 22.6583C22.5059 22.5101 23 21.8989 23 21.1916V14V10.8084C23 10.1011 22.5059 9.48991 21.8143 9.34171L15.6048 8.0111ZM16 22.8815V9.1185L21.6048 10.3195C21.8353 10.3689 22 10.5726 22 10.8084V14V21.1916C22 21.4274 21.8353 21.6311 21.6048 21.6805L16 22.8815ZM9.5 8C9.77614 8 10 8.22386 10 8.5V23.5C10 23.7761 9.77614 24 9.5 24C9.22386 24 9 23.7761 9 23.5V8.5C9 8.22386 9.22386 8 9.5 8ZM12.5 8C12.7761 8 13 8.22386 13 8.5V23.5C13 23.7761 12.7761 24 12.5 24C12.2239 24 12 23.7761 12 23.5V8.5C12 8.22386 12.2239 8 12.5 8Z",fill:"currentColor"})})},custom:{blankSlateImage:"/blank-slate-custom-types.png",builderPageDynamicSegment:"customTypeId",getBuilderPagePathname:e=>"/custom-types/".concat(e),matchesTablePagePathname:e=>e.startsWith(i.custom.tablePagePathname),tablePagePathname:"/custom-types",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0651 10.0686C23.0656 10.0687 23.0628 10.0727 23.0551 10.0805C23.0607 10.0724 23.0646 10.0685 23.0651 10.0686ZM22.7102 10.3001C22.4175 10.1539 21.9868 9.9991 21.4143 9.85598C20.0667 9.51907 18.152 9.30005 16 9.30005C13.848 9.30005 11.9333 9.51907 10.5857 9.85598C10.0132 9.9991 9.58249 10.1539 9.28975 10.3C9.58249 10.4462 10.0132 10.601 10.5857 10.7441C11.9333 11.081 13.848 11.3 16 11.3C18.152 11.3 20.0667 11.081 21.4143 10.7441C21.9868 10.601 22.4175 10.4462 22.7102 10.3001ZM8.93492 10.0686C8.93545 10.0685 8.93931 10.0724 8.94491 10.0805C8.93719 10.0727 8.93439 10.0687 8.93492 10.0686ZM24 10.3C24 9.19548 20.4183 8.30005 16 8.30005C11.5817 8.30005 8 9.19548 8 10.3V16.3V22.3C8 22.8286 8.36652 23.2227 8.77269 23.4942C9.19392 23.7758 9.77503 24.0088 10.4612 24.1965C11.8404 24.5739 13.7629 24.8 16 24.8C18.2371 24.8 20.1596 24.5739 21.5388 24.1965C22.225 24.0088 22.8061 23.7758 23.2273 23.4942C23.6335 23.2227 24 22.8286 24 22.3V16.3V10.3ZM23 16.3V11.2691C21.6353 11.8839 19.012 12.3 16 12.3C12.988 12.3 10.3647 11.8839 9 11.2691V16.3C9 16.3238 9.0187 16.4558 9.32842 16.6629C9.62308 16.8598 10.0885 17.0578 10.7251 17.232C11.9913 17.5784 13.8188 17.8 16 17.8C18.1812 17.8 20.0087 17.5784 21.2749 17.232C21.9115 17.0578 22.3769 16.8598 22.6716 16.6629C22.9813 16.4558 23 16.3238 23 16.3ZM23 17.633V22.3C23 22.3238 22.9813 22.4558 22.6716 22.6629C22.3769 22.8598 21.9115 23.0578 21.2749 23.232C20.0087 23.5784 18.1812 23.8 16 23.8C13.8188 23.8 11.9913 23.5784 10.7251 23.232C10.0885 23.0578 9.62308 22.8598 9.32842 22.6629C9.0187 22.4558 9 22.3238 9 22.3V17.633C9.3936 17.8534 9.89115 18.0406 10.4612 18.1965C11.8404 18.5739 13.7629 18.8 16 18.8C18.2371 18.8 20.1596 18.5739 21.5388 18.1965C22.1089 18.0406 22.6064 17.8534 23 17.633Z",fill:"currentColor"})})}};function a(e,t){return Object.values(i).some(n=>{let{getBuilderPagePathname:o}=n;return e.startsWith(o(t))})}function s(e){for(let{builderPageDynamicSegment:t}of Object.values(i)){let n=e[t];if("string"==typeof n)return n}}},98564:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});let o={page:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Page":"page"," ").concat(n?"types":"type")},hintSingle:"e.g. home, privacy policy, sign up",hintRepeatable:"e.g. product, landing page, blog post",inputPlaceholder:"ID to query the page type in the API (e.g. 'blogPost')",blankSlateDescription:"Page types are models that your editors will use to create website pages in the Page Builder.",autoSaveFailed:"Failed to save page type. Check your browser's console for more information."},custom:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Custom":"custom"," ").concat(n?"types":"type")},hintSingle:"e.g. global nav, settings, footer",hintRepeatable:"e.g. side menu, testimonial, author",inputPlaceholder:"ID to query the custom type in the API (e.g. 'author')",blankSlateDescription:"Custom types are models that your editors can use to create menus or objects in the Page Builder.",autoSaveFailed:"Failed to save custom type. Check your browser's console for more information."}}},13718:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var o=n(37792),i=n(80148);async function a(){try{let{activeEnvironment:e}=await i.managerClient.project.fetchActiveEnvironment();return{activeEnvironment:e}}catch(e){if((0,o.sp)(e))return await i.managerClient.project.updateEnvironment({environment:void 0}),await a();return{error:e}}}},79795:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var o=n(18566),i=n(13718);function a(){return(0,o.QT)(i.j,[])}},98250:function(e,t,n){"use strict";n.d(t,{k:function(){return h}});var o=n(74217),i=n(18566),a=n(88932),s=n(76315);let{fetchOnboarding:l,toggleOnboarding:u,toggleOnboardingStep:c}=n(80148).managerClient.prismicRepository;async function d(){try{return await l()}catch(e){console.error("Failed to fetch onboarding",e);return}}let p=()=>Promise.resolve(void 0);function h(){let e=(0,s.d)().eligible,t=(0,i.QT)(e?d:p,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function h(t){if(!e)return[];let o=n();if(!o)return[];try{let{completedSteps:e}=await c(String(t));return l({...o,completedSteps:e}),e}catch(e){return a.Am.error("Failed to complete/undo step"),console.error("Failed to toggle onboarding step",e),o.completedSteps}}async function m(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await h(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:h,completeStep:m,toggleGuide:async function(){if(!e)return;let t=n();if(!t)return;let o=t.isDismissed;try{l({...t,isDismissed:!o});let{isDismissed:e}=await u();l({...t,isDismissed:e})}catch(e){l({...t,isDismissed:o}),a.Am.error("Failed to hide/show onboarding"),console.error("Failed to toggle onboarding",e)}}}}},76315:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var o=n(96317);let i=()=>{let e=(0,o.L)("shared-onboarding-new");return{eligible:(null==e?void 0:e.value)==="with-shared-onboarding"}}},83758:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var o=n(96317);function i(){let e=(0,o.L)("slicemachine-git-integration");return{eligible:(null==e?void 0:e.value)==="on"}}},68968:function(e,t,n){"use strict";n.d(t,{E:function(){return C},g:function(){return S}});var o=n(52322),i=n(74217),a=n(37792),s=n(2784),l=n(94160),u=n(19468),c=n(978),d=n(93671),p=n(54597),h=n(23710),m=n(79795),g=n(98033),y=n(13105),v=n(73757),b=n(75882);async function A(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,v.R)(o.libraries,o.remoteSlices),a=Object.values((0,y.d)(o.customTypes,o.remoteCustomTypes));return(0,b.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var w=n(13434);let x=(0,s.createContext)(void 0),C=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:y}=(0,w.X)(),v=(0,c.L)(),b=(0,u.n)(),{refreshState:C,pushChangesSuccess:S}=(0,p.Z)(),_=(0,i.R9)(C),k=(0,i.R9)(S),{activeEnvironment:T}=(0,m.J)(),{setNextAction:R,actionQueueStatus:O}=(0,h.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),I=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=T,loggedIn:n=v&&b===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&R(async()=>{let{changedCustomTypes:e,changedSlices:t}=await A({isOnline:v,authStatus:b});if(0!==e.length||0!==t.length)try{let n=await (0,g.t)({changedCustomTypes:e,changedSlices:t,confirmDeleteDocuments:!0});if(n&&"HARD"===n.type)throw console.error("Manual action required. ".concat(n.details.customTypes.length>1?"These types have":"This type has"," too many associated Documents. Archive and delete these documents\n manually and then try deleting the types again.")),Error();let o=await (0,l.y0)();_(o),k()}catch(e){if((0,a.ff)(e))return;throw e}})},[_,k,R,v,b,T]);(0,s.useEffect)(()=>{(n.length>0||y.length>0)&&I()},[]),(0,i.pQ)(v,()=>{v&&(n.length>0||y.length>0)&&I()});let M=(0,s.useMemo)(()=>(function(e){let{activeEnvironment:t,isOnline:n,authStatus:o,actionQueueStatus:i}=e;return void 0===t||"dev"!==t.kind?"not-active":n?o!==d.t.AUTHORIZED?"not-logged-in":"failed"===i?"failed":"pending"===i?"syncing":"synced":"offline"})({activeEnvironment:T,isOnline:v,authStatus:b,actionQueueStatus:O}),[O,b,v,T]),j=(0,s.useMemo)(()=>({syncChanges:I,autoSyncStatus:M}),[I,M]);return(0,o.jsx)(x.Provider,{value:j,children:t})};function S(){let e=(0,s.useContext)(x);if(void 0===e)throw Error("useAutoSync must be used within a AutoSyncProvider");return e}},98033:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var o=n(94160),i=n(63908),a=n(56448);function s(e,t,n){if(!t)return e;let o=e.slice();return t.forEach(e=>{var t;if("Group"===e.value.type&&(null===(t=e.value.config)||void 0===t?void 0:t.fields)){let t={};e.value.config.fields.forEach(e=>{var n;let{value:o}=e,i=null!==(n=t[o.type])&&void 0!==n?n:0;t[o.type]=i+1}),o.push({isInStaticZone:"custom-type"===n,isInSlice:"slice"===n,...t})}}),o}async function l(e){let{changedSlices:t,changedCustomTypes:n,confirmDeleteDocuments:l=!1}=e,u=Date.now(),c={confirmDeleteDocuments:l,changes:[...t.map(e=>({id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status})),...n.map(e=>({id:e.customType.id,type:"CustomType",status:e.status}))]},d=await (0,o.tI)(c);if(d)return o.Xe.track({event:"changes:limit-reach",limitType:d.type}),d;!function(e){let{startTime:t,hasDeletedDocuments:n,changedCustomTypes:l,changedSlices:u}=e,c=l.reduce((e,t)=>t.status===a.GJ.New?{...e,customTypesCreated:e.customTypesCreated+1}:t.status===a.GJ.Modified?{...e,customTypesModified:e.customTypesModified+1}:t.status===a.GJ.Deleted?{...e,customTypesDeleted:e.customTypesDeleted+1}:e,{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),d=u.reduce((e,t)=>t.status===a.GJ.New?{...e,slicesCreated:e.slicesCreated+1}:t.status===a.GJ.Modified?{...e,slicesModified:e.slicesModified+1}:t.status===a.GJ.Deleted?{...e,slicesDeleted:e.slicesDeleted+1}:e,{slicesCreated:0,slicesModified:0,slicesDeleted:0}),p=u.length+l.length,h=u.reduce((e,t)=>e+(0,i.cx)(t.slice),0),m=Date.now()-t;o.Xe.track({event:"changes:pushed",...c,...d,total:p,missingScreenshots:h,duration:m,hasDeletedDocuments:n,_includeEnvironmentKind:!0}),function(e){let{changedCustomTypes:t,changedSlices:n}=e,i=t.reduce((e,t)=>(t.status!==a.GJ.New||t.customType.tabs.forEach(t=>{let n=s(e,t.value,"custom-type");e.push(...n)}),e),[]);[...n.reduce((e,t)=>(t.status!==a.GJ.New||t.slice.model.variations.forEach(t=>{let n=s(e,t.primary,"slice");e.push(...n)}),e),[]),...i].forEach(e=>{o.Xe.track({event:"changes:group-pushed",...e})})}({changedCustomTypes:l,changedSlices:u})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:l,startTime:u})}},75882:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(16442),i=n(56448),a=n(93671);let s=[i.GJ.New,i.GJ.Modified,i.GJ.Deleted];function l(e){let{customTypes:t,libraries:n,slices:i,isOnline:a,authStatus:l}=e,d=c({slices:i,customTypes:t,isOnline:a,authStatus:l}),p=n.flatMap(e=>e.components),h=i.filter(o.yp).map(u),m=p.concat(h).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&s.includes(d.slices[e.model.id])),g=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&s.includes(d.customTypes[(0,o.n5)(e)])),y=m.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>s.includes(e.status));return{changedCustomTypes:g.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>s.includes(e.status)),changedSlices:y,unSyncedCustomTypes:g,unSyncedSlices:m,modelsStatuses:d}}function u(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:s}=e,l=o&&s!=a.t.FORBIDDEN&&s!=a.t.UNAUTHORIZED;return{slices:(0,i.zb)(t,l),customTypes:(0,i.zb)(n,l)}}},13434:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(2784),i=n(56580),a=n(19468),s=n(78254),l=n(7723),u=n(978),c=n(75882);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,s.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,u.L)(),p=(0,a.n)(),h=(0,c.m)({authStatus:p,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>h,[h])}},23710:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(56803),a=n(74930),s=n.n(a),l=n(2784),u=n(88932);let c=e=>{let{actionQueueStatusDelay:t=300,errorMessage:n,retryDelay:a=1e3,retryMessage:c="Retry"}=e,[d,p]=(0,l.useState)({pendingAction:void 0,nextAction:void 0}),[h,m]=(0,l.useState)("done"),[g,y]=(0,l.useState)(h),v=(0,l.useCallback)(e=>{p(t=>({...t,nextAction:e}))},[]),b=(0,l.useCallback)(async e=>{if(e){m("pending");try{await e(),m("done")}catch(e){m("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=s()();u.Am.error(()=>(0,o.jsxs)(i.D,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.bL,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.E,{size:"small",color:"grey",onClick:()=>{u.Am.dismiss(d),l("pending"),setTimeout(()=>{l("done"),c(e=>{var t;return{nextAction:null!==(t=e.nextAction)&&void 0!==t?t:e.pendingAction,pendingAction:void 0}})},n)},children:a})]}),{autoClose:!1,closeOnClick:!1,draggable:!1,toastId:d})}({errorMessage:n,retryDelay:a,retryMessage:c,setActionQueueStatusActual:m,setActionQueueStack:p})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===h&&d.nextAction&&(b(d.nextAction),p({pendingAction:d.nextAction,nextAction:void 0}))},[h,d,b]),(0,l.useEffect)(()=>{if("pending"===h)y("pending");else{let e=setTimeout(()=>{y(h)},t);return()=>{clearTimeout(e)}}},[h,t]),(0,l.useMemo)(()=>({actionQueueStatus:g,setNextAction:v}),[g,v])}},32554:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var o=n(18566),i=n(80148);async function a(){try{return await i.managerClient.project.getAdapterName()}catch(e){throw Error("Error while trying to get adapter name")}}function s(){return(0,o.QT)(a,[])}},19468:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var o=n(56580),i=n(9149);function a(){let{authStatus:e}=(0,o.v9)(e=>({authStatus:(0,i.TA)(e)}));return e}},96317:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var o=n(18566),i=n(80148);async function a(e){try{return await i.managerClient.telemetry.getExperimentVariant(e)}catch(e){console.error("Error while trying to get experiment value",e);return}}function s(e){return(0,o.QT)(a,[e])}},978:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var o=n(2784);let i=()=>{let[e,t]=(0,o.useState)(window.navigator.onLine),n=(0,o.useCallback)(()=>{t(window.navigator.onLine)},[]);return(0,o.useEffect)(()=>(window.addEventListener("offline",n),window.addEventListener("online",n),()=>{window.removeEventListener("offline",n),window.removeEventListener("online",n)}),[n]),e}},30613:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var o=n(56580),i=n(9149);function a(){let{repositoryName:e,apiEndpoint:t}=(0,o.v9)(e=>({repositoryName:(0,i.MY)(e),apiEndpoint:(0,i.Lq)(e)}));return{repositoryName:e,repositoryDomain:new URL(t).hostname.replace(".cdn",""),repositoryUrl:t.replace(".cdn.",".").replace("/api/v2","")}}},14101:function(e,t,n){"use strict";n.d(t,{e:function(){return l},l:function(){return u}});var o=n(52322),i=n(5632),a=n(2784);let s=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(s.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,s]=(0,a.useState)(n),[l,u]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(s(n),u({source:o,destination:n})),l}()});function u(){let e=(0,a.useContext)(s);if(void 0===e)throw Error("useRouteChange must be used within a RouteChangeProvider.");return e}},85606:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var o=n(18566),i=n(80148);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function s(){return(0,o.QT)(a,[])}},59082:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var o=n(18566),i=n(80148);async function a(){let[e,t]=await Promise.all([i.managerClient.versions.checkIsSliceMachineUpdateAvailable(),i.managerClient.versions.checkIsAdapterUpdateAvailable()]);return{sliceMachineUpdateAvailable:e,adapterUpdateAvailable:t}}function s(){return(0,o.QT)(a,[])}},81229:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8536 6.85355C18.0488 6.65829 18.0488 6.34171 17.8536 6.14645C17.6583 5.95118 17.3417 5.95118 17.1464 6.14645L12 11.2929L6.85355 6.14645C6.65829 5.95118 6.34171 5.95118 6.14645 6.14645C5.95118 6.34171 5.95118 6.65829 6.14645 6.85355L11.2929 12L6.14645 17.1464C5.95118 17.3417 5.95118 17.6583 6.14645 17.8536C6.34171 18.0488 6.65829 18.0488 6.85355 17.8536L12 12.7071L17.1464 17.8536C17.3417 18.0488 17.6583 18.0488 17.8536 17.8536C18.0488 17.6583 18.0488 17.3417 17.8536 17.1464L12.7071 12L17.8536 6.85355Z",fill:"currentColor"})})},39180:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 16C23 19.866 19.866 23 16 23C12.134 23 9 19.866 9 16C9 12.134 12.134 9 16 9C19.866 9 23 12.134 23 16ZM24 16C24 20.4183 20.4183 24 16 24C11.5817 24 8 20.4183 8 16C8 11.5817 11.5817 8 16 8C20.4183 8 24 11.5817 24 16ZM14.75 18.5981L18.5 16L14.75 13.4019V18.5981Z",fill:"currentColor"})})},51384:function(e,t,n){"use strict";n.d(t,{LN:function(){return eN},K2:function(){return eK},Xq:function(){return ez},Cx:function(){return eV},RN:function(){return e$},wd:function(){return eW}});var o=n(52322),i=n(56803),a=n(5632),s=n(2784),l=n(43388),u=n(6277),c=n(86099),d=n.n(c);let p=e=>{let{borderTopColor:t="purple",children:n,...i}=e;return(0,o.jsxs)("div",{...i,className:d().root,children:[n,(0,o.jsx)("div",{className:(0,u.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},h=e=>(0,o.jsx)("div",{...e,className:d().pane}),m=e=>(0,o.jsx)("header",{...e,className:d().header}),g=e=>{let{children:t,...n}=e;return(0,o.jsx)("main",{...n,className:d().content,children:(0,o.jsx)("div",{className:d().contentChildren,children:t})})};var y=n(17378),v=n(79795),b=n(94160),A=n(59294),w=n(98564),x=n(30613);function C(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,x.U)(),a=(0,i.cj)({max:"medium"});return(0,o.jsxs)(i.D,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.D,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.bL,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.bL,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.c3,{content:"Open Prismic repository",side:"right",children:(0,o.jsx)(i.aZ,{"data-testid":"prismic-repository-link",icon:"openInNew",onClick:()=>{window.open(n,"_blank")}})})]})}var S=n(59082),_=n(25966),k=n(39180),T=n(39097),R=n.n(T);function O(e){let{title:t,href:n,target:a,active:l,Icon:u,RightElement:c,onClick:d}=e,p=(0,i.cj)({max:"medium"}),h=(0,s.useCallback)(()=>(0,o.jsx)(u,{width:p?28:32}),[u,p]),m=(0,o.jsx)(i.b,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:h,endAdornment:c,selected:l,children:p?null:t});return(0,o.jsx)(i.c3,{content:t,side:"right",visible:p,children:void 0!==n?(0,o.jsx)(R(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,onClick:d,children:m}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:m})})}var I=n(98250);function M(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,I.k)();return e?e.isDismissed?(0,o.jsx)(O,{title:"Get Started",Icon:k.z,onClick:()=>void n()}):(0,o.jsx)(_.TI,{tracking:{track:e=>b.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var j=n(76315);function D(){let e=function(){let e=(0,i.cj)({min:"medium"}),t=(0,S.P)();return e&&!t.sliceMachineUpdateAvailable&&!t.adapterUpdateAvailable}(),t=(0,j.d)().eligible;return e&&t?(0,o.jsx)(M,{}):null}var L=n(83758),P=n(32554);let F={"@slicemachine/adapter-next":{documentationLink:"https://prismic.io/docs/nextjs"},"@slicemachine/adapter-nuxt":{documentationLink:"https://prismic.io/docs/nuxt"},"@slicemachine/adapter-sveltekit":{documentationLink:"https://prismic.io/docs/sveltekit"}},N=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9.5C8 8.67157 8.67157 8 9.5 8H13.382C13.9501 8 14.4695 8.321 14.7236 8.82918L15.809 11H18H22.5C23.3284 11 24 11.6716 24 12.5V22.5001C24 23.3285 23.3284 24.0001 22.5 24.0001H12.25H9.5C8.67157 24.0001 8 23.3285 8 22.5001V11.5V9.5ZM14.691 11L13.8292 9.27639C13.7445 9.107 13.5714 9 13.382 9H9.5C9.22386 9 9 9.22386 9 9.5V11H14.691ZM9 12V22.5001C9 22.7762 9.22386 23.0001 9.5 23.0001H12.25H22.5C22.7761 23.0001 23 22.7762 23 22.5001V12.5C23 12.2239 22.7761 12 22.5 12H18H15.5H9Z",fill:"currentColor"})}),B=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3775 24.9684C14.4175 24.9884 14.5075 24.9884 14.5075 24.9884C14.6775 24.9884 14.8475 24.8984 14.9375 24.7484L20.9375 14.7484C21.0275 14.5984 21.0275 14.3984 20.9375 14.2484C20.8475 14.0984 20.6775 13.9984 20.4975 13.9984H16.9975V7.49842C16.9975 7.27842 16.8475 7.07842 16.6275 7.01842C16.4175 6.95842 16.1875 7.04842 16.0675 7.23842L10.0675 17.2384C9.9775 17.3884 9.9775 17.5884 10.0675 17.7384C10.1575 17.8884 10.3275 17.9884 10.5075 17.9884H14.0075V24.4884C14.0075 24.7084 14.1575 24.9084 14.3775 24.9684ZM11.3875 16.9884H14.5075C14.7875 16.9884 15.0075 17.2084 15.0075 17.4884V22.6784L19.6275 14.9884H16.5075C16.2275 14.9884 16.0075 14.7684 16.0075 14.4884V9.29842L11.3875 16.9884Z",fill:"currentColor"})}),U=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,o.jsx)("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"#6F6E77"})}),W=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12C16 13.1046 15.1046 14 14 14C12.8954 14 12 13.1046 12 12C12 10.8954 12.8954 10 14 10C15.1046 10 16 10.8954 16 12ZM14 9C15.4865 9 16.7205 10.0811 16.9585 11.5H23.5C23.7761 11.5 24 11.7239 24 12C24 12.2761 23.7761 12.5 23.5 12.5H16.9585C16.7205 13.9189 15.4865 15 14 15C12.5135 15 11.2795 13.9189 11.0415 12.5H8.5C8.22386 12.5 8 12.2761 8 12C8 11.7239 8.22386 11.5 8.5 11.5H11.0415C11.2795 10.0811 12.5135 9 14 9ZM21 20C21 21.1046 20.1046 22 19 22C17.8954 22 17 21.1046 17 20C17 18.8954 17.8954 18 19 18C20.1046 18 21 18.8954 21 20ZM16.0415 20.5C16.2795 21.9189 17.5135 23 19 23C20.4865 23 21.7205 21.9189 21.9585 20.5H23.5C23.7761 20.5 24 20.2761 24 20C24 19.7239 23.7761 19.5 23.5 19.5H21.9585C21.7205 18.0811 20.4865 17 19 17C17.5135 17 16.2795 18.0811 16.0415 19.5H8.5C8.22386 19.5 8 19.7239 8 20C8 20.2761 8.22386 20.5 8.5 20.5H16.0415Z",fill:"currentColor"})});var z=n(31860),V=n(67557),K=n(68968);let $=e=>(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M15.5 6L8 15.5L4.5 11",stroke:"#6F6E77",strokeLinecap:"round",strokeLinejoin:"round"})}),H=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_11119_1080440)",children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.32913 10.1715C7.13387 10.3667 7.13387 10.6833 7.32913 10.8786L9.45048 12.9999L7.32906 15.1213C7.1338 15.3166 7.1338 15.6332 7.32906 15.8285C7.52432 16.0237 7.8409 16.0237 8.03616 15.8285L10.1576 13.707L12.2789 15.8283C12.4741 16.0236 12.7907 16.0236 12.986 15.8283C13.1812 15.6331 13.1812 15.3165 12.986 15.1212L10.8647 12.9999L12.9859 10.8787C13.1812 10.6834 13.1812 10.3669 12.9859 10.1716C12.7906 9.97634 12.4741 9.97634 12.2788 10.1716L10.1576 12.2928L8.03624 10.1715C7.84098 9.97621 7.5244 9.97621 7.32913 10.1715Z",fill:"#6F6E77"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11119_1080440",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),q=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 9.79289L13.3536 13.1464L12.6464 13.8536L10.5 11.7071V17.5H9.5V11.7071L7.35355 13.8536L6.64645 13.1464L10 9.79289Z",fill:"#6F6E77"})]});var Z=n(31511),Y=n.n(Z);let Q=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(q,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)($,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(H,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.c3,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:Y().root,children:[t.icon,(0,o.jsx)(i.bL,{className:Y().text,color:"grey11",children:t.text})]})}):t.icon};var J=n(13434),X=n(19468),ee=n(978);let et=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53868 5.08412L11.9985 7.96822V2.20001L8.53868 5.08412ZM16.5459 16.5508L17.3035 17.3084C18.3522 16.2597 19.0664 14.9235 19.3557 13.4689C19.6451 12.0143 19.4966 10.5066 18.929 9.13639C18.3614 7.76618 17.4003 6.59505 16.1672 5.77109C14.934 4.94712 13.4842 4.50733 12.0011 4.50733V5.57857C15.5508 5.57866 18.4284 8.45629 18.4284 12.006C18.4284 13.7809 17.709 15.3877 16.5459 16.5508ZM15.4609 18.9278L11.9989 16.0437L11.9989 21.8119L15.4609 18.9278ZM7.45385 7.46112L6.69631 6.70357C5.6476 7.75228 4.93342 9.08842 4.64408 10.543C4.35474 11.9976 4.50324 13.5054 5.0708 14.8756C5.63835 16.2458 6.59948 17.4169 7.83263 18.2409C9.06578 19.0648 10.5156 19.5046 11.9987 19.5046V18.4333C8.44897 18.4332 5.57139 15.5556 5.57139 12.0059C5.57139 10.2311 6.29077 8.62425 7.45385 7.46112Z",fill:"currentColor"})});var en=n(93671),er=n(54597);let eo=()=>{let{setSeenChangesToolTip:e}=(0,er.Z)(),t=ea(),n=(0,a.useRouter)(),{autoSyncStatus:s}=(0,K.g)(),l=(0,i.cj)({max:"medium"});return(0,o.jsxs)(V.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.D,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===s||"synced"===s||"syncing"===s?(0,o.jsx)(Q,{autoSyncStatus:s}):l?(0,o.jsx)(i.c3,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.D,{position:"relative",children:[(0,o.jsx)(i.aZ,{icon:(0,o.jsx)(et,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.D,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(ei,{color:"purple"})})]})}):(0,o.jsx)(i.E,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.D,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.bL,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(ei,{color:"grey"})]})})}),children:[(0,o.jsx)(V.Ev,{children:"Push your changes"}),(0,o.jsx)(V.LB,{component:"image",src:"/push.png"}),(0,o.jsx)(V.OJ,{children:"When you click Save, your changes are saved locally. Then, you can push your models to Prismic from the Changes page."}),(0,o.jsx)(V.Rp,{children:"Got it"})]})},ei=e=>{let{color:t}=e,n=(0,ee.L)(),a=(0,X.n)(),{unSyncedSlices:s,unSyncedCustomTypes:l}=(0,J.X)(),u=s.length+l.length;return n&&a!==en.t.UNAUTHORIZED&&a!==en.t.FORBIDDEN&&0!==u?(0,o.jsx)(i.D,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.bL,{color:"grey"===t?"grey11":"grey1",variant:"small",children:u>9?"+9":u})}):null},ea=()=>!1;var es=n(37792),el=n(18566),eu=n(80148),ec=n(13718);async function ed(e){await eu.managerClient.project.updateEnvironment({environment:e.domain}),(0,el.gw)(ec.j,[]),(0,el.gw)(b.y0,[])}async function ef(){try{let{environments:e}=await eu.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var ep=n(75882),eh=n(13105),em=n(73757);function eg(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(28316);var ey=s.forwardRef((e,t)=>{let{children:n,...i}=e,a=s.Children.toArray(n),l=a.find(eA);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,o.jsx)(ev,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,o.jsx)(ev,{...i,ref:t,children:n})});ey.displayName="Slot";var ev=s.forwardRef((e,t)=>{let{children:n,...o}=e;if(s.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return s.cloneElement(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?function(...e){return t=>{let n=!1,o=e.map(e=>{let o=eg(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():eg(e[t],null)}}}}(t,a):a})}return s.Children.count(n)>1?s.Children.only(null):null});ev.displayName="SlotClone";var eb=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function eA(e){return s.isValidElement(e)&&e.type===eb}var ew=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=s.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?ey:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ex=s.forwardRef((e,t)=>(0,o.jsx)(ew.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ex.displayName="VisuallyHidden";let eC=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("path",{d:"M0 0h24v24H0z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M7.5 4A1.5 1.5 0 0 0 6 5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-3a.5.5 0 1 0-1 0v3A1.5 1.5 0 0 0 7.5 20h10a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 17.5 4H13zm6.25 8L10 15v-2.5H3.5a.5.5 0 1 1 0-1H10V9z"})]})}),eS=(0,s.forwardRef)((e,t)=>(0,o.jsxs)("svg",{...e,fill:"none",height:"32",ref:t,viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#1A1523",height:"32",rx:"6",width:"32"}),(0,o.jsx)("path",{clipRule:"evenodd",d:"M16.2519 22.6786C19.7531 22.6786 22.5913 19.8404 22.5913 16.3393C22.5913 14.8061 22.0469 13.3999 21.141 12.3037L23.8238 10.7547C23.9923 10.6574 24.05 10.4421 23.9528 10.2736C23.8555 10.1052 23.6401 10.0474 23.4717 10.1447L20.65 11.7738C19.5101 10.6754 17.9599 10 16.2519 10C12.7508 10 9.91263 12.8382 9.91263 16.3393C9.91263 17.7073 10.3459 18.9741 11.0828 20.0099L8.17615 21.688C8.0077 21.7853 7.94999 22.0006 8.04724 22.1691C8.1445 22.3375 8.35989 22.3953 8.52834 22.298L11.5276 20.5664C12.6883 21.8628 14.3749 22.6786 16.2519 22.6786ZM11.5276 20.5664C11.3692 20.3895 11.2207 20.2038 11.0828 20.0099L17.3262 16.4052C17.4946 16.308 17.71 16.3657 17.8073 16.5341C17.9045 16.7026 17.8468 16.918 17.6784 17.0152L11.5276 20.5664ZM20.65 11.7738L14.3216 15.4275C14.1532 15.5247 14.0955 15.7401 14.1927 15.9086C14.29 16.077 14.5054 16.1347 14.6738 16.0375L21.141 12.3037C20.9874 12.1178 20.8235 11.9409 20.65 11.7738Z",fill:"white",fillRule:"evenodd"})]}));var e_=n(6250),ek=n.n(e_);let eE=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:s=[],loading:l=!1,variant:u="default",onLogInClick:c,onSelect:d}=e,p=(0,i.cj)({max:"medium"}),h=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.D,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.D,{position:"relative",children:[p&&s.length>1?(0,o.jsx)(eT,{activeEnvironment:n,disabled:a||l,environments:s,onSelect:d,trigger:(0,o.jsx)(eS,{className:ek().logo})}):(0,o.jsx)(eS,{className:ek().logo}),s.length>1&&(0,o.jsx)(eI,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:ek().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!p&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.D,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===u?(0,o.jsx)(i.bL,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===u?(0,o.jsx)(i.E,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===u?(0,o.jsx)(i.bL,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===u?(0,o.jsx)(i.bL,{component:"span",className:ek().activeEnvironmentName,"data-testid":"active-environment-name",children:h||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.D,{flexShrink:0,children:["unauthenticated"===u?(0,o.jsx)(i.c3,{content:"Log in",side:"right",children:(0,o.jsx)(i.aZ,{icon:(0,o.jsx)(eC,{className:ek().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,s.length>1?(0,o.jsx)(eT,{activeEnvironment:n,disabled:a,environments:s,onSelect:d,trigger:(0,o.jsx)(i.aZ,{icon:l?(0,o.jsx)(i.bg,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eT=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:s,trigger:l}=e,u=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.ar,{modal:!0,children:[(0,o.jsx)(i.c3,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.av,{disabled:n,children:l})}),(0,o.jsxs)(i.as,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.au,{children:"Regular Environments"}):void 0,u.map(e=>(0,o.jsx)(eR,{environment:e,onSelect:s,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.au,{children:"Personal Environment"}),(0,o.jsx)(eR,{environment:c,onSelect:s,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eR=e=>{let{environment:t,onSelect:n,isActive:a}=e,s="prod"===t.kind;return(0,o.jsx)(i.at,{startIcon:(0,o.jsx)(eI,{kind:t.kind,className:ek().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.aX,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:s?"Production":t.name})},eO={prod:"Production",stage:"Staging",dev:"Development"},eI=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,s=eO[t];return(0,o.jsx)("div",{className:(0,u.W)(ek()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(ex,{children:[s," environment"]}):null})};function eM(){let{environments:e,error:t}=(0,el.QT)(ef,[]),{activeEnvironment:n}=(0,v.J)(),{refreshState:i,openLoginModal:a}=(0,er.Z)(),{syncChanges:l}=(0,K.g)(),u=(0,ee.L)(),c=(0,X.n)(),[d,p]=(0,s.useState)(!1),{autoSyncStatus:h}=(0,K.g)();async function m(e){if((null==n?void 0:n.name)===e.name)return;p(!0),b.Xe.track({event:"environment:switch",domain:e.domain}),await ed(e);let t=await (0,b.y0)();i(t);let o=(0,em.R)(t.libraries,t.remoteSlices),a=Object.values((0,eh.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:s,changedSlices:d}=(0,ep.m)({authStatus:c,customTypes:a,isOnline:u,libraries:t.libraries,slices:o});"dev"===e.kind&&(s.length>0||d.length>0)&&l({environment:e,changedCustomTypes:s,changedSlices:d}),p(!1)}if(!u)return(0,o.jsx)(eE,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eE,{environments:e,activeEnvironment:n,onSelect:m,disabled:d||"syncing"===h,loading:d});if((0,es.ff)(t)||(0,es.TW)(t))return(0,o.jsx)(eE,{variant:(0,es.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var ej=n(63470),eD=n(85606);function eL(){let e=(0,eD.d)();return(0,i.cj)({max:"medium"})?null:(0,o.jsxs)(i.bL,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function eP(){let e=(0,i.cj)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,S.P)();return(t||n)&&!e?(0,o.jsx)(i.G,{color:"grey3",padding:16,children:(0,o.jsxs)(i.H,{children:[(0,o.jsx)(i.bL,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.bL,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.E,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(R(),{href:"/changelog",children:"Learn more"})})]})}):null}function eF(){var e;let t=(0,a.useRouter)(),n=(0,L.M)(),{documentationLink:l}=null!==(e=F[(0,P.p)()])&&void 0!==e?e:{},u=(0,ej.k)(),c=(0,P.p)();function d(e){let{type:n}=e;return(0,o.jsx)(O,{title:w.$[n].name({start:!0,plural:!0}),href:A.cd[n].tablePagePathname,active:A.cd[n].matchesTablePagePathname(t.asPath),Icon:A.cd[n].Icon})}return(0,o.jsxs)(i.D,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.D,{flexDirection:"column",gap:16,children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.bx,{height:40}),children:(0,o.jsx)(eM,{})})}),(0,o.jsx)(i.bw,{style:"dashed"}),(0,o.jsx)(C,{}),(0,o.jsx)(eo,{})]}),(0,o.jsxs)(i.D,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.A,{variant:"compact",children:[(0,o.jsx)(d,{type:"page"}),(0,o.jsx)(d,{type:"custom"}),(0,o.jsx)(O,{title:(0,z._)((0,z.f)(u.value)),href:"/slices",Icon:N,active:t.asPath.startsWith("/slices")})]}),(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(eP,{})})})]}),(0,o.jsx)(i.D,{flexDirection:"column",children:(0,o.jsxs)(i.A,{variant:"compact",children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(D,{})})}),(0,o.jsx)(O,{title:"Documentation",href:l,target:"_blank",Icon:U,onClick:()=>{b.Xe.track({event:"navigation:documentation-link-clicked",framework:c})}}),n.eligible&&(0,o.jsx)(O,{title:"Settings",href:"/settings",Icon:W,active:t.asPath.startsWith("/settings")}),(0,o.jsx)(O,{title:"Changelog",href:"/changelog",Icon:B,active:t.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.bx,{height:16}),children:(0,o.jsx)(eL,{})})})})]})})]})}let eN=e=>{let{children:t,...n}=e;return(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsxs)(eU,{...n,children:[(0,o.jsx)(h,{children:(0,o.jsx)(eF,{})}),t]})})})},eB={prod:"purple",stage:"indigo",dev:"amber"},eU=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,v.J)(),a=i?eB[i.kind]:"purple";return(0,o.jsx)(p,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},eW=e=>{let{children:t,...n}=e;return(0,o.jsx)(m,{...n,children:(0,o.jsx)(i.D,{alignItems:"center",gap:8,children:t})})},ez=e=>{let{url:t,...n}=e,s=(0,a.useRouter)();return(0,o.jsx)(i.E,{...n,onClick:()=>{s.push(t)},startIcon:"arrowBack",color:"grey"})},eV=e=>(0,o.jsx)(i.D,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),eK=e=>(0,o.jsx)(i.F,{...e}),e$=e=>(0,o.jsx)(g,{...e})},55862:function(e,t,n){"use strict";var o=n(52322);n(2784);var i=n(37149),a=n.n(i);t.Z=e=>{var t,n;let i={content:{padding:"0px",top:"10%",maxWidth:"950px",margin:"auto",border:"0",background:"0",borderRadius:"6px",...null===(t=e.style)||void 0===t?void 0:t.content},overlay:{backgroundColor:"rgba(11, 11, 12, 0.9)",backdropFilter:"blur(3px)",overflow:"auto",...null===(n=e.style)||void 0===n?void 0:n.overlay}};return(0,o.jsx)(a(),{...e,style:i})}},39204:function(e,t,n){"use strict";n.d(t,{GX:function(){return u},kQ:function(){return c}});var o=n(52322);n(2784);var i=n(65186),a=n(88932),s=n(31860);let l=e=>{let{type:t}=e;switch(t){case a.Am.TYPE.INFO:return(0,o.jsx)(i.vVM,{});case a.Am.TYPE.ERROR:return(0,o.jsx)(i.JSF,{});case a.Am.TYPE.SUCCESS:return(0,o.jsx)(i.vB0,{});case a.Am.TYPE.WARNING:return(0,o.jsx)(i.YTL,{});default:return null}};t.ZP=()=>(0,o.jsx)(a.Ix,{autoClose:2500,hideProgressBar:!0,transition:a.Mi,closeButton:!1,position:a.Am.POSITION.TOP_CENTER,icon:l,style:{left:"50%"}});let u=e=>{let{message:t,path:n}=e,i=n.length<=28?n:n.slice(0,28)+"...";return(0,o.jsxs)("span",{children:[t,(0,o.jsx)("code",{children:i})]})},c=e=>(0,o.jsx)(u,{message:"".concat((0,s.f)(e.sectionsNamingExperiment.value)," saved successfully at "),...e})},94840:function(e,t,n){"use strict";n.d(t,{Dc:function(){return A},L$:function(){return v}});var o=n(88866),i=n(10082),a=n(45974),s=n(32521),l=n(40878),u=n(49219),c=n(44772),d=n(13365);let p=s.type({key:s.string,value:s.array(s.type({key:s.string,value:s.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),h={fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM slicezone")})(d.DynamicSlices.decode({type:"Slices",fieldset:"Slice Zone",config:{choices:e.value.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}})),toSM(e,t){var n;return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic slicezone")})(p.decode({key:e,value:Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||[]).map(e=>{let[t,n]=e;return{key:t,value:n}})}))}},m=s.array(s.type({key:s.string,value:s.union([o.NestableWidget,o.UID,u.GT])})),g=s.intersection([s.type({key:s.string,value:m}),s.partial({sliceZone:p})]),y={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&h.toSM(n[0],n[1]);return{key:e,value:Object.entries(t).reduce((e,t)=>{let[n,o]=t;switch(o.type){case"Choice":case"Slices":return e;case"Group":return[...e,{key:n,value:u.Fl.toSM(o)}];default:return[...e,{key:n,value:o}]}},[]),...o?{sliceZone:o}:{}}},fromSM:e=>e.value.reduce((e,t)=>{let{key:n,value:o}=t;return"Group"===o.type?[...e,[n,u.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,h.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},v={fromSM:e=>"Group"===e.type?u.Fl.fromSM(e):e},b=s.exact(s.intersection([s.type({id:s.string,label:i.StringOrNull,format:(0,l.X)(s.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(s.boolean,!0),tabs:s.array(g),status:(0,l.X)(s.boolean,!0)}),s.partial({hash:s.string})])),A={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return y.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(b.decode({...e,tabs:t}))},fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM custom type.")})(o.CustomType.decode({...e,json:e.tabs.reduce((e,t)=>({...e,[t.key]:y.fromSM(t)}),{})}))}},7459:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var o=n(88866),i=n(32521);let a=i.array(i.type({key:i.string,value:o.NestableWidget}))},49219:function(e,t,n){"use strict";n.d(t,{Fl:function(){return m},GT:function(){return h}});var o=n(88866),i=n(59050),a=n(10082),s=n(45974),l=n(32521),u=n(7459);let c=e=>l.exact(l.partial({label:a.StringOrNull,repeat:l.boolean,fields:e})),d=e=>l.exact(l.intersection([l.type({type:l.literal("Group")}),l.partial({fieldset:a.StringOrNull,icon:l.string,description:l.string,config:c(e)})])),p=d(u.F),h=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,p])}))),m={fromSM(e){let t=(()=>{var t;if(null===(t=e.config)||void 0===t?void 0:t.fields)return e.config.fields.reduce((e,t)=>{let{key:n,value:o}=t;return o.type===i.GroupFieldType?{...e,[n]:m.fromSM(o)}:{...e,[n]:o}},{})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(i.Group.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))},toSM(e){let t=(()=>{var t,n;if(null===(t=e.config)||void 0===t?void 0:t.fields)return Object.entries((null===(n=e.config)||void 0===n?void 0:n.fields)||{}).map(e=>{let[t,n]=e;return n.type===i.GroupFieldType?{key:t,value:m.toSM(n)}:{key:t,value:n}})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(h.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))}}},16442:function(e,t,n){"use strict";function o(e){return"local"in e&&"remote"in e}function i(e){return"local"in e}function a(e){return"remote"in e}function s(e){return a(e)&&!i(e)}function l(e){return i(e)?e.local.id:e.remote.id}n.d(t,{TG:function(){return i},n5:function(){return l},qt:function(){return o},wU:function(){return a},yp:function(){return s}})},56448:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(16442),s=n(69378),l=n.n(s);let u=e=>({...e,variations:e.variations.map(e=>({...e,imageUrl:void 0}))});(o=i||(i={})).New="NEW",o.Modified="MODIFIED",o.Synced="SYNCED",o.Deleted="DELETED",o.Unknown="UNKNOWN";let c=e=>"variations"in e.local&&"variations"in e.remote;function d(e,t){return e.reduce((e,n)=>{var o,s,d;let{status:p}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(s=o.remote,d=o.localScreenshots,s.variations.every(e=>{var t;let n=null===(t=d[e.id])||void 0===t?void 0:t.hash,o=e.imageUrl;return void 0===n?void 0===o:null==o?void 0:o.includes(n)})&&l()(u(o.local),u(o.remote)))?i.Synced:i.Modified:l()(o.local,o.remote)?i.Synced:i.Modified,model:o}:{status:"NEW",model:o}:{status:"DELETED",model:o}:{status:"UNKNOWN",model:o});return{...e,[(0,a.TG)(n)?n.local.id:n.remote.id]:p}},{})}},26109:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},bB:function(){return g},id:function(){return y}});var o,i,a=n(88866),s=n(45974),l=n(32521),u=n(7459),c=n(49219);(o=i||(i={})).Primary="primary",o.Items="items";let d=l.union([c.GT,a.NestableWidget]),p=l.array(l.type({key:l.string,value:d})),h=l.intersection([l.type({id:l.string,name:l.string,description:l.string,docURL:l.string,version:l.string}),l.partial({imageUrl:l.string,primary:p,items:u.F,display:l.string})]),m=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(h)}),l.partial({description:l.string})]),g={fromSM(e){var t,n;return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM slice variation.")})(a.Variation.decode({...e,primary:null===(t=e.primary)||void 0===t?void 0:t.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o.type===a.GroupFieldType?c.Fl.fromSM(o):o}},{}),items:null===(n=e.items)||void 0===n?void 0:n.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}))},toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(h.decode({...e,imageUrl:"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"===e.imageUrl?void 0:e.imageUrl,primary:Object.entries(e.primary||{}).map(e=>{let[t,n]=e;return{key:t,value:n.type===a.GroupFieldType?c.Fl.toSM(n):n}}),items:Object.entries(e.items||{}).map(e=>{let[t,n]=e;return{key:t,value:n}})}))},y={fromSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(g.fromSM)})),toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(m.decode({...e,variations:e.variations.map(g.toSM)}))}},13105:function(e,t,n){"use strict";n.d(t,{$:function(){return o},d:function(){return i}});let o=(e,t)=>t?{[e.id]:{local:e,remote:t}}:{[e.id]:{local:e}},i=(e,t)=>{let n={};return e.forEach(e=>n[e.id]={local:e}),t.forEach(e=>n[e.id]={...n[e.id],remote:e}),n}},73757:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});let o=(e,t)=>{let n={};return e.flatMap(e=>e.components).forEach(e=>{n[e.model.id]={local:e.model,localScreenshots:e.screenshots}}),t.forEach(e=>{n[e.id]={...n[e.id],remote:e}}),Object.values(n)}},358:function(e,t,n){"use strict";n.d(t,{MP:function(){return a},T3:function(){return l},Ti:function(){return i},lV:function(){return u}});let o=/-(\w)/g;function i(e){return e.includes("-")?"['".concat(e,"']"):".".concat(e)}function a(e){return e?(e=e.replace(/_/g,"-").replace(o,(e,t)=>t?t.toUpperCase():""))[0].toUpperCase()+e.slice(1):""}let s=/\B([A-Z])/g;function l(e){return e.replace(s,"-$1").toLowerCase().replace(/-/g,"_")}let u=e=>e.trim().replace(/ /g,"_").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},80148:function(e,t,n){"use strict";let o;function i(e,t,n){e.setUint32(t,Math.floor(n/4294967296)),e.setUint32(t+4,n)}function a(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}n.d(t,{managerClient:function(){return ee}});var s,l,u,c,d=n(34406),p=(void 0===d||(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function h(e){for(var t=e.length,n=0,o=0;o<t;){var i=e.charCodeAt(o++);if((4294967168&i)==0){n++;continue}if((4294965248&i)==0)n+=2;else{if(i>=55296&&i<=56319&&o<t){var a=e.charCodeAt(o);(64512&a)==56320&&(++o,i=((1023&i)<<10)+(1023&a)+65536)}(4294901760&i)==0?n+=3:n+=4}}return n}var m=p?new TextEncoder:void 0,g=p?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,y=(null==m?void 0:m.encodeInto)?function(e,t,n){m.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(m.encode(e),n)};function v(e,t,n){for(var o=t,i=o+n,a=[],s="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var u=63&e[o++];a.push((31&l)<<6|u)}else if((240&l)==224){var u=63&e[o++],c=63&e[o++];a.push((31&l)<<12|u<<6|c)}else if((248&l)==240){var u=63&e[o++],c=63&e[o++],d=(7&l)<<18|u<<12|c<<6|63&e[o++];d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d)}else a.push(l);a.length>=4096&&(s+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(s+=String.fromCharCode.apply(String,a)),s}var b=p?new TextDecoder:null,A=p?void 0!==d&&(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_DECODER)!=="force"?200:0:4294967295,w=function(e,t){this.type=e,this.data=t},x=globalThis&&globalThis.__extends||(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e){function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,Object.create(t.prototype)),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:t.name}),o}return x(t,e),t}(Error),S={type:-1,encode:function(e){var t,n,o,a;return e instanceof Date?function(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=17179869183){if(0===n&&t<=4294967295){var o=new Uint8Array(4),a=new DataView(o.buffer);return a.setUint32(0,t),o}var s=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&s),a.setUint32(4,4294967295&t),o}var o=new Uint8Array(12),a=new DataView(o.buffer);return a.setUint32(0,n),i(a,4,t),o}((n=Math.floor((t=e.getTime())/1e3),a=Math.floor((o=(t-1e3*n)*1e6)/1e9),{sec:n+a,nsec:o-1e9*a})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:var n=t.getUint32(0),o=0;return{sec:n,nsec:0};case 8:var i=t.getUint32(0),n=(3&i)*4294967296+t.getUint32(4),o=i>>>2;return{sec:n,nsec:o};case 12:var n=a(t,4),o=t.getUint32(0);return{sec:n,nsec:o};default:throw new C("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},_=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(S)}return e.prototype.register=function(e){var t=e.type,n=e.encode,o=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=o;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=o}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++){var o=this.builtInEncoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=-1-n;return new w(a,i)}}}for(var n=0;n<this.encoders.length;n++){var o=this.encoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=n;return new w(a,i)}}}return e instanceof w?e:null},e.prototype.decode=function(e,t,n){var o=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return o?o(e,t,n):new w(t,e)},e.defaultCodec=new e,e}();function k(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var T=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===o&&(o=2048),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===s&&(s=!1),void 0===l&&(l=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=o,this.sortKeys=i,this.forceFloat32=a,this.ignoreUndefined=s,this.forceIntegerToFloat=l,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),o=new DataView(t);n.set(this.bytes),this.view=o,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw Error("Too long string: ".concat(e," bytes in UTF-8"))},e.prototype.encodeString=function(e){if(e.length>g){var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),y(e,this.bytes,this.pos),this.pos+=t}else{var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var s=e.charCodeAt(a++);if((4294967168&s)==0){t[i++]=s;continue}if((4294965248&s)==0)t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,s=((1023&s)<<10)+(1023&l)+65536)}(4294901760&s)==0?t[i++]=s>>12&15|224:(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128),t[i++]=s>>6&63|128}t[i++]=63&s|128}}(e,this.bytes,this.pos),this.pos+=t}},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if("object"==typeof e)this.encodeMap(e,t);else throw Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else if(t<4294967296)this.writeU8(198),this.writeU32(t);else throw Error("Too large binary: ".concat(t));var n=k(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw Error("Too large array: ".concat(n));for(var o=0;o<e.length;o++){var i=e[o];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,o=0;o<t.length;o++)void 0!==e[t[o]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw Error("Too large map object: ".concat(o));for(var i=0;i<n.length;i++){var a=n[i],s=e[a];this.ignoreUndefined&&void 0===s||(this.encodeString(a),this.doEncode(s,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else if(t<4294967296)this.writeU8(201),this.writeU32(t);else throw Error("Too large extension object: ".concat(t));this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){var t,n;this.ensureBufferSizeToWrite(8),t=this.view,n=this.pos,t.setUint32(n,e/4294967296),t.setUint32(n+4,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),i(this.view,this.pos,e),this.pos+=8},e}();function R(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var O=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){var o=this.caches[n-1];n:for(var i=0;i<o.length;i++){for(var a=o[i],s=a.bytes,l=0;l<n;l++)if(s[l]!==e[t+l])continue n;return a.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],o={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=o:n.push(o)},e.prototype.decode=function(e,t,n){var o=this.find(e,t,n);if(null!=o)return this.hit++,o;this.miss++;var i=v(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),I=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function s(e){try{u(o.next(e))}catch(e){a(e)}}function l(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}u((o=o.apply(e,t||[])).next())})},M=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},j=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,i){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,i,(t=e[n](t)).done,t.value)})}}},D=globalThis&&globalThis.__await||function(e){return this instanceof D?(this.v=e,this):new D(e)},L=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),a=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){a.push([e,t,n,o])>1||l(e,t)})})}function l(e,t){try{var n;(n=i[e](t)).value instanceof D?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},P=function(e){var t=typeof e;return"string"===t||"number"===t},F=new DataView(new ArrayBuffer(0)),N=new Uint8Array(F.buffer),B=function(){try{F.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),U=new B("Insufficient data"),W=new O,z=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===o&&(o=4294967295),void 0===i&&(i=4294967295),void 0===a&&(a=4294967295),void 0===s&&(s=4294967295),void 0===l&&(l=W),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=F,this.bytes=N,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=k(e),o=new Uint8Array(t.length+n.length);o.set(t),o.set(n,t.length),this.setBuffer(o)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return M(this,function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:if(!this.hasRemaining(1))return[3,3];return[4,this.doDecodeSync()];case 2:return t.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(e){var t,n,o,i;return I(this,void 0,void 0,function(){var a,s,l,u,c,d,p;return M(this,function(h){switch(h.label){case 0:a=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=j(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof B))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:h.sent()},[3,12];case 7:if(h.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(o)throw o.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,c=u.headByte,d=u.pos,p=u.totalPos,RangeError("Insufficient data in parsing ".concat(R(c)," at ").concat(p," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return L(this,arguments,function(){var n,o,i,a,s,l,u,c;return M(this,function(d){switch(d.label){case 0:n=t,o=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),i=j(e),d.label=2;case 2:return[4,D(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(s=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),n&&(o=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,D(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:if(d.sent(),0==--o)return[3,8];return[3,5];case 8:return[3,10];case 9:if(!((l=d.sent())instanceof B))throw l;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u={error:d.sent()},[3,19];case 14:if(d.trys.push([14,,17,18]),!(a&&!a.done&&(c=i.return)))return[3,16];return[4,D(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(u)throw u.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){r:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192){if(e<128)t=e;else if(e<144){var n=e-128;if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(e<160){var n=e-144;if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else{var o=e-160;t=this.decodeUtf8String(o,0)}}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e){var o=this.lookU8();t=this.decodeUtf8String(o,1)}else if(218===e){var o=this.lookU16();t=this.decodeUtf8String(o,2)}else if(219===e){var o=this.lookU32();t=this.decodeUtf8String(o,4)}else if(220===e){var n=this.readU16();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(221===e){var n=this.readU32();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(222===e){var n=this.readU16();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(223===e){var n=this.readU32();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(196===e){var n=this.lookU8();t=this.decodeBinary(n,1)}else if(197===e){var n=this.lookU16();t=this.decodeBinary(n,2)}else if(198===e){var n=this.lookU32();t=this.decodeBinary(n,4)}else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e){var n=this.lookU8();t=this.decodeExtension(n,1)}else if(200===e){var n=this.lookU16();t=this.decodeExtension(n,2)}else if(201===e){var n=this.lookU32();t=this.decodeExtension(n,4)}else throw new C("Unrecognized type byte: ".concat(R(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(0===a.type){if(a.array[a.position]=t,a.position++,a.position===a.size)i.pop(),t=a.array;else continue r}else if(1===a.type){if(!P(t))throw new C("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new C("The key __proto__ is not allowed");a.key=t,a.type=2;continue r}else if(a.map[a.key]=t,a.readCount++,a.readCount===a.size)i.pop(),t=a.map;else{a.key=null,a.type=1;continue r}}return t}},e.prototype.readHeadByte=function(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new C("Unrecognized array type byte: ".concat(R(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new C("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new C("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){if(e>this.maxStrLength)throw new C("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw U;var n,o,i,a=this.pos+t;return this.stateIsMapKey()&&(null===(o=this.keyDecoder)||void 0===o?void 0:o.canBeCached(e))?i=this.keyDecoder.decode(this.bytes,a,e):e>A?(n=this.bytes.subarray(a,a+e),i=b.decode(n)):i=v(this.bytes,a,e),this.pos+=t+e,i},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new C("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw U;var n=this.pos+t,o=this.bytes.subarray(n,n+e);return this.pos+=t+e,o},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new C("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),o=this.decodeBinary(e,t+1);return this.extensionCodec.decode(o,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=a(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),V={};let K=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,$=e=>K(e)&&"R19Error"===e.name&&"procedurePath"in e,H=e=>{if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await q(e[o],t);return n}if(H(e)){let n={};for(let o in e)n[o]=await q(e[o],t);return n}return await t(e)};var Z=Object.defineProperty,Y=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(Y(e,"symbol"!=typeof t?t+"":t,n),n);class J extends Error{constructor(e,t={}){super(),Q(this,"procedurePath"),Q(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,J),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let X=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>X(e,[...t,o.toString()])}),ee=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return X(async(n,o)=>{var i,a,s,l;let u=await q(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new J("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:u},new T((a={ignoreUndefined:!0}).extensionCodec,a.context,a.maxDepth,a.initialBufferSize,a.sortKeys,a.forceFloat32,a.ignoreUndefined,a.forceIntegerToFloat).encodeSharedRef(i)),d=await t(e.serverURL,{method:"POST",body:c,headers:{"Content-Type":"application/msgpack"}}),p=(s=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=V),new z(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(s));if(!("error"in p))return q(p.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=p.error;if($(e)){let t=new J(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(K(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new J("An unexpected response was received from the RPC server.",{procedurePath:n,procedureArgs:o,cause:p})}})})({serverURL:(o={serverURL:"/_manager"}).serverURL,fetch:o.fetch})},78254:function(e,t,n){"use strict";n.d(t,{Vo:function(){return w},t7:function(){return h},Hm:function(){return g},jP:function(){return m},hr:function(){return p},W6:function(){return v},YS:function(){return b},Ch:function(){return y},Jk:function(){return A}});var o=n(17620),i=n.n(o),a=n(32145),s=n(16442),l=n(13105);let u=(e,t)=>void 0===e?e:{...e,tabs:e.tabs.map(e=>{var n;return e.sliceZone?{...e,sliceZone:{...e.sliceZone,value:null===(n=e.sliceZone)||void 0===n?void 0:n.value.filter(e=>e.key!==t)}}:e})};var c=n(9149),d=n(7723);let p=(0,a.createAction)("CUSTOM_TYPE/SAVE_SUCCESS")(),h=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),g=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),y=e=>Object.values(e.availableCustomTypes),v=e=>Object.keys(e.availableCustomTypes),b=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),A=(e,t)=>e.availableCustomTypes[t],w=(e,t)=>{if(!e)return null;switch(t.type){case(0,a.getType)(c.U1):return{...(0,l.d)(t.payload.localCustomTypes,t.payload.remoteCustomTypes)};case(0,a.getType)(h):{let n=(0,l.$)(t.payload.newCustomType);return{...e,...n}}case(0,a.getType)(p):{let n=t.payload.newCustomType;return{...e,[n.id]:{...e[n.id],local:n}}}case(0,a.getType)(m):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(g):{let n=e[t.payload.customTypeId];if((0,s.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,s.TG)(n))return i()(e,t.payload.customTypeId);return e}case(0,a.getType)(d.xg):{let n=t.payload.sliceId;return Object.entries(e).map(e=>{let[t,o]=e;return(0,s.TG)(o)?[t,{...o,local:u(o.local,n)}]:[t,o]}).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})}default:return e}}},9149:function(e,t,n){"use strict";n.d(t,{Ak:function(){return p},Lq:function(){return c},MY:function(){return u},TA:function(){return h},U1:function(){return i},gZ:function(){return d},wW:function(){return m},x0:function(){return l},zj:function(){return s}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),s=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,u=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,p=e=>e.environment.packageManager,h=e=>e.userContext.authStatus,m=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(i):return{...e,...t.payload.env};case(0,o.getType)(a):return{...e,manifest:{...e.manifest,localSliceSimulatorURL:t.payload.value}};default:return e}}},13347:function(e,t,n){"use strict";n.d(t,{CK:function(){return c},HP:function(){return u},U:function(){return p},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),s=n(17392);let l={...i()(s.z,()=>!1)},u=(0,a.createAction)("LOADING/START")(),c=(0,a.createAction)("LOADING/STOP")(),d=(e,t)=>e.loading[t],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(u):return{...e,[t.payload.loadingKey]:!0};case(0,a.getType)(c):return{...e,[t.payload.loadingKey]:!1};default:return e}}},17392:function(e,t,n){"use strict";var o;n.d(t,{z:function(){return o}}),(o||(o={})).LOGIN="LOGIN"},75966:function(e,t,n){"use strict";n.d(t,{XV:function(){return p},ZR:function(){return c},gP:function(){return d},re:function(){return u}});var o=n(34519),i=n.n(o),a=n(32145),s=n(34830);let l={...i()(s.q,()=>!1)},u=(0,a.createAction)("MODAL/CLOSE")(),c=(0,a.createAction)("MODAL/OPEN")(),d=(e,t)=>e.modal[t],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(u):return l;case(0,a.getType)(c):return{...l,[t.payload.modalKey]:!0};default:return e}}},34830:function(e,t,n){"use strict";var o,i;n.d(t,{q:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.SCREENSHOT_PREVIEW="SCREENSHOT_PREVIEW",i.SCREENSHOTS="SCREENSHOTS"},7723:function(e,t,n){"use strict";n.d(t,{Kg:function(){return l},Sd:function(){return h},dS:function(){return s},ek:function(){return d},og:function(){return p},sT:function(){return m},xB:function(){return y},xC:function(){return g},xg:function(){return u},zy:function(){return c}});var o=n(32145),i=n(73757),a=n(9149);let s=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),u=(0,o.createAction)("SLICES/DELETE_SUCCESS")(),c=(0,o.createAction)("SLICE/UPDATE_SUCCESS")(),d=(0,o.createAction)("SLICE/GENERATE_CUSTOM_SCREENSHOT_SUCCESS")(),p=(0,o.createAction)("SLICE/UPDATE_MOCK_SUCCESS")(),h=e=>e.slices.libraries,m=e=>e.slices.remoteSlices,g=e=>(0,i.R)(e.slices.libraries,m(e)),y=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(a.U1):return{...e,libraries:t.payload.libraries,remoteSlices:t.payload.remoteSlices};case(0,o.getType)(s):return{...e,libraries:t.payload.libraries};case(0,o.getType)(l):{let{libName:n,renamedSlice:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.map(e=>e.model.id!==o.id?e:{...e,model:o})});return{...e,libraries:i}}case(0,o.getType)(c):{let n=t.payload.component,o=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id!==n.model.id?e:n)});return{...e,libraries:o}}case(0,o.getType)(d):{let{component:n,screenshot:o,variationId:i}=t.payload,a=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id===n.model.id?{...n,screenshots:{...n.screenshots,[i]:o}}:e)});return{...e,libraries:a}}case(0,o.getType)(u):{let{libName:n,sliceId:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.filter(e=>e.model.id!==o)});return{...e,libraries:i}}case(0,o.getType)(p):{let{libraryID:n,sliceID:o,mocks:i}=t.payload,a=e.libraries.map(e=>{if(e.name!==n)return e;let t=e.components.map(e=>e.model.id!==o?e:{...e,mocks:i});return{...e,components:t}});return{...e,libraries:a}}default:return e}}},54597:function(e,t,n){"use strict";var o=n(56580),i=n(94840),a=n(78254),s=n(9149),l=n(13347),u=n(17392),c=n(75966),d=n(34830),p=n(7723),h=n(79384);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,s.U1)({env:t.env,remoteCustomTypes:t.remoteCustomTypes,localCustomTypes:t.customTypes,libraries:t.libraries,remoteSlices:t.remoteSlices,clientError:t.clientError}))},openScreenshotsModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOTS})),openLoginModal:()=>e((0,c.ZR)({modalKey:d.q.LOGIN})),startLoadingLogin:()=>e((0,l.HP)({loadingKey:u.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:u.z.LOGIN})),deleteCustomTypeSuccess:t=>e((0,a.Hm)({customTypeId:t})),renameCustomTypeSuccess:t=>e((0,a.jP)({renamedCustomType:i.Dc.toSM(t)})),saveCustomTypeSuccess:t=>e((0,a.hr)({newCustomType:i.Dc.toSM(t)})),saveSliceSuccess:t=>{e((0,p.zy)({component:t}))},saveSliceCustomScreenshotSuccess:(t,n,o)=>{e((0,p.ek)({variationId:t,screenshot:n,component:o}))},createSliceSuccess:t=>e((0,p.dS)({libraries:t})),renameSliceSuccess:(t,n)=>e((0,p.Kg)({renamedSlice:n,libName:t})),deleteSliceSuccess:(t,n)=>e((0,p.xg)({sliceId:t,libName:n})),setSeenSimulatorToolTip:()=>e((0,h.kd)()),setSeenChangesToolTip:()=>e((0,h.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,h.po)()),createCustomTypeSuccess:t=>e((0,a.t7)({newCustomType:i.Dc.toSM(t)})),updateSliceMockSuccess:t=>e((0,p.og)(t))}}},79384:function(e,t,n){"use strict";n.d(t,{bv:function(){return d},e4:function(){return p},kd:function(){return l},mw:function(){return u},po:function(){return c}});var o=n(32145),i=n(93671),a=n(9149);let s={hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/VIEW_SIMULATOR_TOOL_TIP")(),u=(0,o.createAction)("USER_CONTEXT/VIEW_CHANGES_TOOL_TIP")(),c=(0,o.createAction)("USER_CONTEXT/CHANGES_PUSH_SUCCESS")(),d=e=>e.userContext.hasSeenSimulatorToolTip||!1,p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):return{...e,hasSeenSimulatorToolTip:!0};case(0,o.getType)(u):return{...e,hasSeenChangesToolTip:!0};case(0,o.getType)(a.U1):return{...e,authStatus:h(t.payload.clientError)};case(0,o.getType)(c):return{...e,lastSyncChange:Date.now()};default:return e}},h=e=>{switch(null==e?void 0:e.status){case void 0:return i.t.AUTHORIZED;case 403:return i.t.UNAUTHORIZED;case 401:return i.t.FORBIDDEN;default:return i.t.UNKNOWN}}},93671:function(e,t,n){"use strict";var o,i;n.d(t,{t:function(){return o}}),(i=o||(o={})).AUTHORIZED="authorized",i.UNAUTHORIZED="unauthorized",i.FORBIDDEN="forbidden",i.UNKNOWN="unknown"},89062:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tw}});var o,i,a,s,l,u,c,d,p,h,m,g,y=n(52322);n(5758),n(34112),n(10802),n(52422),n(32172),n(83171),n(62400),n(42447),n(43002),n(79048),n(46248),n(57),n(28460),n(68870);var v=n(56803),b=function(){return(b=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},A={fromJS:function(e){return e},getIn:function(e,t){for(var n=e,o=0;o<t.length&&n;++o)n=n[t[o]];return n},merge:function(e,t){return b(b({},e),t)}},w=n(2784),x=n(56580),C=n(5632),S=n.n(C),_="@@router/LOCATION_CHANGE",k=function(e){return{type:_,payload:{location:e}}},T=n(38398),R=function(e){var t=(0,T.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},O=n(28316),I=function(e,t){var n={set:e.router.set};return e.router.set=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.set?new Promise(function(i,a){O.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(k(R(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},M=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:R(e)})}};M(A);var j=(h=A.merge,m=M(A)(),function(e,t){return(void 0===e&&(e=m),t.type===_)?h(e,t.payload):e}),D=(g=A.getIn,function(e){var t=e.Router||S(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,w.useRef)(0),s=(0,w.useRef)(!0),l=(0,w.useRef)(!1);function u(){s.current=--a.current<=0}function c(){s.current=++a.current<=0}return(0,w.useEffect)(function(){return i.subscribe(function(){if(s.current){var e=g(i.getState(),[o,"location"]),n=e.pathname,a=e.search,u=e.hash,c=e.href,d=R(t.asPath),p=d.pathname,h=d.search,m=d.hash;if(p!==n||h!==a||u!==m){var y="".concat(n).concat(a).concat(u);l.current=!0,t.replace(c,y)}}})},[t,i,o]),(0,w.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==g(i.getState(),[o,"location"]).href&&i.dispatch(k(R(e))),u()}return t.ready(function(){e=I(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",u),t.events.on("routeChangeComplete",n),t.events.on("hashChangeStart",c),t.events.on("hashChangeComplete",n)}),function(){e(),t.events.off("routeChangeStart",c),t.events.off("routeChangeError",u),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),w.createElement(w.Fragment,{},e.children)}),L=n(25237),P=n.n(L),F=n(97729),N=n.n(F);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){var t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var e,t,o,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=(e=(t=U(n)).call.apply(t,[this].concat(a)))&&("object"===B(e)||"function"==typeof e)?e:W(this),V(W(o),"state",{bootstrapped:!1}),V(W(o),"_unsubscribe",void 0),V(W(o),"handlePersistorState",function(){o.props.persistor.getState().bootstrapped&&(o.props.onBeforeLift?Promise.resolve(o.props.onBeforeLift()).finally(function(){return o.setState({bootstrapped:!0})}):o.setState({bootstrapped:!0}),o._unsubscribe&&o._unsubscribe())}),o}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(w.PureComponent);V(K,"defaultProps",{children:null,loading:null});var $=n(59326),H=n(62273),q=n(28165);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Y=function(e){return"--theme-ui-"+e.replace("-__default","")},Q=function(e){return"var("+Y(e)+")"},J=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},X=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),ee=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],s=J(n,i);if(a&&"object"==typeof a){o[i]=e(a,s);continue}if(X.has(i)){o[i]=a;continue}o[i]=Q(s)}return o},et=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=J(t,i),s=n[i];s&&"object"==typeof s?o=Z({},o,e(a,s)):o[Y(a)]=s}return o},en=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,s=e.rawColors||e.colors;if(!s||!1===a)return{};if(!1===n)return(0,H.iv)({color:"text",bg:"background"})(e);var l=s.modes||{},u=er(s,l);if(i){var c=l[i];c||i!==o||(c=s),c?u["@media print"]=et("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:s,printColorModeName:i})}var d=function(e){return Q("colors-"+e)};return(0,H.iv)(Z({},u,{color:d("text"),bg:d("background")}))(e)};function er(e,t){var n=et("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=et("colors",t[e])}),n}var eo="theme-ui-color-mode",ei="(prefers-color-scheme: dark)",ea={get:function(){try{return window.localStorage.getItem(eo)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}},set:function(e){try{window.localStorage.setItem(eo,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},es=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(ei).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},el="undefined"==typeof window?function(){}:w.useLayoutEffect,eu=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,s=i.useColorSchemeMediaQuery,l=i.useLocalStorage,u=(0,w.useState)(function(){return!1!==s&&es()||a}),c=u[0],d=u[1];el(function(){var e=!1!==l&&ea.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==s&&e&&e!==c&&(c=e,d(e))},[]),(0,w.useEffect)(function(){c&&!1!==l&&ea.set(c)},[c,l]);var p=(0,w.useCallback)(function(){d(es()||a)},[a]);(0,w.useEffect)(function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.addEventListener?e.addEventListener("change",p):"function"==typeof e.addListener&&e.addListener(p)}return function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.removeEventListener?e.removeEventListener("change",p):"function"==typeof e.removeListener&&e.removeListener(p)}}},[s,p]);var h=ed({colorMode:c,outerTheme:o}),m=Z({},t,{theme:h,colorMode:c,setColorMode:d});return w.createElement($.vg,{context:m},w.createElement(ef,{theme:h}),n)},ec=function(e){var t=Z({},e);return delete t.modes,t};function ed(e){var t=e.outerTheme,n=e.colorMode;return(0,w.useMemo)(function(){var e=Z({},t),o=(0,H.U2)(e,"colors.modes",{}),i=(0,H.U2)(o,n,{});n&&(e.colors=Z({},e.colors,i));var a=t.config||t,s=a.useCustomProperties,l=a.initialColorModeName,u=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==s){var d=null!=e.rawColors,p=e.colors||{};if(d)!function e(t,n){for(var o=0,i=Object.entries(t);o<i.length;o++){var a=i[o],s=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var u=Z({},n[s]);e(l,u),n[s]=u}}else n[s]=l}}(p,c=Z({},c)),c.modes&&(c.modes[u]=ec(c)),e.rawColors=c;else if("modes"in c){var h,m=Z(((h={})[u]=ec(c),h),c.modes);e.rawColors=Z({},p,{modes:m})}else e.rawColors=p;e.colors=ee(ec(c),"colors")}return e},[n,t])}function ef(e){var t=e.theme;return(0,$.tZ)(q.xB,{styles:function(){return{html:en(t)}}})}function ep(e){var t,n=e.outerCtx,o=e.children,i=ed({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,w.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),s=a[0],l=a[1];el(function(){l(!1)},[]);var u=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,w.useMemo)(function(){if(!1===c)return{};var e=u||{};return(0,H.iv)(er(e,e.modes||{}))(i)},[i,u,c]);return w.createElement($.vg,{context:Z({},n,{theme:i})},(0,$.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(s),suppressHydrationWarning:!0,css:d,children:o}))}var eh=function(e){var t=e.children,n=(0,$.B7)();return"function"!=typeof n.setColorMode?w.createElement(eu,{outerCtx:n},t):w.createElement(ep,{outerCtx:n},t)},em=function(){return(0,$.tZ)(q.xB,{styles:function(e){if(!1===(e.config||e).useRootStyles||e.styles&&!e.styles.root)return null;var t,n=(null==(t=e.config)?void 0:t.useBorderBox)===!1?void 0:"border-box";return(0,H.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},eg=function(e){var t=e.theme,n=e.children,o=(0,$.B7)()===$.yo;return w.createElement($.f6,{theme:t},w.createElement(eh,null,o&&w.createElement(em,null),n))},ey=n(94160),ev=n(17378),eb=n(68968),eA=n(14101),ew=n(65077),ex=n(88581),eC=n(49857),eS=n(54597),e_=()=>{let{refreshState:e}=(0,eS.Z)(),t=(0,w.useCallback)(e,[]),{data:n}=(0,eC.ZP)("getState",async()=>await (0,ey.y0)());(0,w.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),ex.av({id:n.env.shortId}),ex.YA("repository",n.env.repo),ex.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},ek=n(7723),eE=n(80148),eT=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)})),t=(0,C.useRouter)();(0,w.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);ey.Xe.group({manualLibsCount:e.filter(e=>e.meta.isManual).length,downloadedLibsCount:t.length,npmLibsCount:e.filter(e=>e.meta.isNodeModule).length,downloadedLibs:t.map(e=>{var t;return null!==(t=e.meta.name)&&void 0!==t?t:"Unknown"})})})(e),eR()},[]),(0,w.useEffect)(()=>{let e=()=>{eR()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eR(){let e=await eE.managerClient.project.getAdapterName();return ey.Xe.track({event:"page-view",url:window.location.href,path:window.location.pathname,search:window.location.search,title:document.title,referrer:document.referrer,adapter:e,outerWidth:window.outerWidth,outerHeight:window.outerHeight,screenWidth:window.screen.width,screenHeight:window.screen.height})}var eO=n(51384),eI=n(37149),eM=n.n(eI),ej=n(88932),eD=n(75289),eL=n(13718),eP=n(75882),eF=n(55862),eN=n(13105),eB=n(73757);async function eU(e,t,n,o){let i=0,a=(s,l)=>{Promise.resolve(e()).then(e=>{t(e)?s(e):i<o?(i+=1,setTimeout(a,n,s,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eW=n(9149),ez=n(13347),eV=n(17392),eK=n(75966),e$=n(34830),eH=n(93671),eq=()=>{eM().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,eK.gP)(e,e$.q.LOGIN),isLoginLoading:(0,ez.hg)(e,eV.z.LOGIN),env:(0,eW.zj)(e)})),{syncChanges:o}=(0,eb.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:s}=(0,eS.Z)(),l=function(e){try{let t=new URL(e),n=[".wroom.io",".wroom.test",".dev-tools-wroom.com",".marketing-tools-wroom.com",".platform-wroom.com"].find(e=>t.hostname.endsWith(e));if(void 0!==n)return t.hostname=n.slice(1),t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),u="".concat(function(e){let t=t=>"".concat(e).concat(t);return{Dashboard:{index:t("dashboard"),cliLogin:t("dashboard/cli/login?source=slice-machine"),cliSignup:t("dashboard/cli/signup?source=slice-machine")}}}(l+"/").Dashboard.cliLogin,"&port=").concat(window.location.port||"9999","&path=/api/auth"),c=async()=>{if(u)try{a(),await (0,ey.Yf)(),window.open(u,"_blank"),await eU(ey.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),ej.Am.success("Logged in"),s(),i();let e=await (0,ey.y0)(),t=(0,eB.R)(e.libraries,e.remoteSlices),n=Object.values((0,eN.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eP.m)({authStatus:eH.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eL.j)();(null==d?void 0:d.kind)==="dev"&&(l.length>0||c.length>0)&&o({environment:d,loggedIn:!0,changedCustomTypes:l,changedSlices:c})}catch(e){s(),ej.Am.error("Login failed")}};return(0,y.jsx)(eF.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:i,contentLabel:"login_modal",style:{content:{position:"static",display:"flex",margin:"auto",minHeight:"initial"},overlay:{display:"flex"}},children:(0,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.kC,{sx:{p:"16px",bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,y.jsx)(eD.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,y.jsx)(eD.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,y.jsx)(eD.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,y.jsxs)(y.Fragment,{children:["Not seeing the browser tab? ",(0,y.jsx)("br",{}),(0,y.jsx)(eD.rU,{target:"_blank",href:u,children:"Click here"})]}):(0,y.jsxs)(y.Fragment,{children:["Your session has expired.",(0,y.jsx)("br",{}),"Please log in again."]})}),(0,y.jsx)(eD.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,y.jsx)(eD.$j,{color:"#FFF",size:16}):(0,y.jsx)(y.Fragment,{children:"Log in to Prismic"})})]})]})})};let eG=()=>(0,y.jsxs)(eD.xu,{children:[(0,y.jsxs)("p",{children:["We could not find any local library in your project.",(0,y.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,y.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var eZ=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)}));return eT(),e_(),(0,y.jsxs)(y.Fragment,{children:[n.length>0?t:(0,y.jsx)(eO.LN,{children:(0,y.jsx)(eO.RN,{children:(0,y.jsx)(ew.xR,{children:(0,y.jsx)(eG,{})})})}),(0,y.jsx)(eq,{})]})},eY=e=>{let{children:t}=e;return(0,y.jsx)(eD.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},eQ=()=>(0,y.jsx)(eY,{children:(0,y.jsx)(eD.$j,{variant:"styles.spinner",id:"spinner"})}),eJ=n(39204),eX=n(18717),e0="persist:",e1="persist/FLUSH",e2="persist/REHYDRATE",e5="persist/PAUSE",e3="persist/PERSIST",e6="persist/PURGE",e4="persist/REGISTER";function e8(e){return(e8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function e9(e,t,n,o){o.debug;var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e7(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e7(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===e8(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function te(e){return JSON.stringify(e)}function tt(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:e0).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:tn,i.getItem(o).then(function(e){if(e)try{var o={},i=t(e);return Object.keys(i).forEach(function(e){o[e]=n.reduceRight(function(t,n){return n.out(t,e,i)},t(i[e]))}),o}catch(e){throw e}})}function tn(e){return JSON.parse(e)}function tr(e){}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ta(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tu={registry:[],bootstrapped:!1},tc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e4:return tl({},e,{registry:[].concat(ta(e.registry),[t.key])});case e2:var n=e.registry.indexOf(t.key),o=ta(e.registry);return o.splice(n,1),tl({},e,{registry:o,bootstrapped:0===o.length});default:return e}},td=n(14549),tf=n(78254),tp=n(79384),th=()=>(0,eX.UY)({modal:eK.XV,loading:ez.U,userContext:tp.e4,environment:eW.wW,availableCustomTypes:tf.Vo,slices:ek.xB,router:j});let tm={key:"root",storage:td.Z,whitelist:["userContext"]},tg=(void 0===o&&(o={}),s=void 0===(a=o.Router)?S():a,u=void 0===(l=o.methods)?{}:l,d=void 0===(c=o.reducerKey)?"router":c,p=["push","prefetch","replace"].reduce(function(e,t){return e[t]=u[t]?u[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(s&&!i&&o!==_){var a=A.getIn(e.getState(),[d,"location"]);s.asPath!==a.href&&t(k(R(s.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,u=l.args,c=p[l.method];"go"!==c||i||"number"!=typeof u[0]?c&&Object.prototype.hasOwnProperty.call(s,c)&&s[c].apply(s,u):window.history.go(u[0])}}});var ty=n(12170),tv=()=>({initialColorModeName:"light",colors:{text:"#25252D",textClear:"#6F6E77",grayLight:"#E8E8ED",hoverBackground:"#f2f2f2",background:"#FFF",backgroundClear:"#FFF",primary:"#5D40F7",purpleLight:"#F6F1FC",purpleLight01:"#6548FF1A",purple12:"#F1EEFE",purpleStrong:"#5842C3",whiteButtonText:"#1A1523",codeBlockBackground:"#32275F",failedConnectText:"#86848D",changesWarning:{background:"#FFECC7",color:"#5C0C17"},greyIcon:"#6F6E77",greyIconDisabled:"#C9D0D8",missingScreenshotBanner:{color:"#5C0C17",bg:"#FFECC7"},badge:{new:{bg:"#DBEDDB",color:"#05644D"},modified:{bg:"#FFECC7",color:"#5C0C17"},synced:{bg:"purple12",color:"#5842C3"},deleted:{bg:"rgba(203, 36, 49, 0.1)"},unknown:{bg:"#F3F5F7",color:"#9AA4AF"}},codeBlockBorder:"#545454",secondary:"#F9FAFB",danger:"#CB2431",highlight:"hsl(10, 40%, 90%)",purple:"#5B3DF5",purple08:"#5842C3",muted:"#F9F9FB",icons:"#8091A5",gray:"#F8F9FA",grey01:"#F3F5F7",grey02:"#E6E6EA",grey03:"#F4F2F4",grey04:"#9AA4AF",grey05:"#667587",grey07:"#F9F8F9",grey10:"#86848D",grey12:"#1A1523",greyTransparent:"rgba(37, 37, 45, 0.4)",borders:"#E4E2E4",bordersFocused:"#6E56CF",deep:"#0E2150",deep1:"#A0ADE7",lightGreen:"#EBF8F1",lightOrange:"#FDF4EC",darkOrange:"#C17C10",error:"#E55737",success:"#3AB97A",headSection:"#fff",warning:"#E67E22",warning02:"#ED811C",sidebar:"#F1F1F4",link:"#6E56CF",choggleBox:"#5163BA",darkBorder:"#DCDBDD",code:{border:"#DFE1E5",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},modes:{dark:{text:"#fff",textClear:"#6E707B",hoverBackground:"#202020",grey02:"#E6E6EA",background:"#202022",backgroundClear:"#28282C",primary:"#4E54D7",secondary:"#28282C",icons:"#5D5D71",gray:"#1D1D1F",borders:"#3A3A46",deep:"#28282C",headSection:"#28282C",warning:"#E67E22",sidebar:"#28282C",code:{border:"#5D5D6F",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},link:"#A9A9C6",choggleBox:"#fff"}}},fonts:{body:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",monospace:"Menlo, monospace"},fontSizes:[12,14,16,20,24,32,48,64,72],breakpoints:["40em","56em","64em"],fontWeights:{thin:300,body:400,heading:500,label:500,bold:600,display:900},lineHeights:{body:1.5,heading:1.25},textStyles:{heading:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"},display:{variant:"textStyles.heading",fontSize:[5,6],fontWeight:"display",letterSpacing:"-0.03em",mt:3}},sizes:{leftSidebar:220,sidebar:340},text:{xs:{fontWeight:"400",color:"textClear",fontSize:1,fontFamily:"body"},small:{fontWeight:"500",fontSize:2,fontFamily:"body"},labelError:{color:"error",fontWeight:"body",fontSize:1,marginLeft:2,marginBottom:"0!important"},secondary:{color:"greyIcon",fontSize:1},pre:{fontSize:1,fontWeight:"400",color:"textClear",bg:"grey01",p:"2px"},heading:{fontWeight:"500"},grey:{color:"#4E4E55"}},badges:{SYNCED:{fontWeight:"body",color:"badge.synced.color",bg:"badge.synced.bg",px:1,py:"1px"},NEW:{fontWeight:"body",color:"badge.new.color",bg:"badge.new.bg",px:1,py:"1px"},MODIFIED:{fontWeight:"body",color:"badge.modified.color",bg:"badge.modified.bg",px:1,py:"1px"},DELETED:{fontWeight:"body",color:"danger",bg:"badge.deleted.bg",px:1,py:"1px"},UNKNOWN:{fontWeight:"body",color:"badge.unknown.color",bg:"badge.unknown.bg",px:1,py:"1px"},circle:{borderRadius:"50%",fontSize:"10px"},primary:{color:"text",bg:"primary"},"circle-right":{top:"-8px",right:"-8px",height:"24px",width:"24px",display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",borderRadius:"50%"},outline:{color:"primary",fontSize:"14px",fontWeight:"500",bg:"transparent",border:"none",borderColor:"borders"}},boxes:{centered:{height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"}},buttons:{primary:{color:"white",fontSize:1,fontFamily:"body",fontWeight:"body",lineHeight:"24px",padding:"7px 15px",borderRadius:"4px",userSelect:"none",bg:(0,ty.Fq)("primary",.9),borderColor:"primary",borderStyle:"solid",borderWidth:"1px",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{cursor:"pointer",bg:"primary"},"&:focus":{boxShadow:"0px 0px 0px 1px var(--theme-ui-colors-primary)",borderColor:"white",bg:"primary",outline:"none"},"&:disabled":{cursor:"not-allowed",bg:(0,ty.Fq)("primary",.5),borderColor:"transparent"}},screenSize:{p:0,fontFamily:"body",display:"flex",justifyContent:"center",alignItems:"center",height:"32px",width:"32px",bg:"text",color:"white",cursor:"pointer",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)"},secondary:{bg:"secondary",fontFamily:"body",fontWeight:"body",fontSize:"1",color:"textClear",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))},"&:hover:enabled":{bg:(0,ty._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,ty._j)("secondary",.05),borderColor:(0,ty._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,ty._j)("secondary",.06),outline:"none"}},danger:{bg:"danger",fontFamily:"body",fontWeight:"bold",fontSize:"1",color:"purple12",px:"16px",py:"8px",borderRadius:"6px",border:"1px solid #C61926","&:hover":{bg:(0,ty._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,ty._j)("danger",.05),borderColor:(0,ty._j)("danger",.15),outline:"none"},"&:active":{bg:(0,ty._j)("danger",.06),outline:"none"}},dropDownButton:{fontSize:"1",p:"3px",pl:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"6px",border:"1px solid #DCDBDD",fontWeight:"bold",bg:"secondary",fontFamily:"body",color:"textClear","&:hover":{"&:not([disabled])":{bg:(0,ty._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,ty._j)("secondary",.05),borderColor:(0,ty._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,ty._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,ty.Fq)("textClear",.6)},"&>svg":{pointerEvents:"none"}},small:{bg:"primary",borderRadius:"4px",pl:2,pr:2,pb:1,pt:1,fontFamily:"body",fontSize:"12px",fontWeight:"body"},secondarySmall:{background:"#FFFFFF",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",color:"#1A1523",fontFamily:"body",fontSize:"12px",lineHeight:"16px",pl:2,pr:2,py:"5px",cursor:"pointer","&:hover:enabled":{background:"#F4F2F4"},"&:active:enabled":{background:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"},"&:disabled":{cursor:"not-allowed",opacity:.5}},secondaryMedium:{padding:"4px 8px",borderRadius:"6px",fontSize:"14px",fontWeight:"bold",fontFamily:"body",lineHeight:"24px",letterSpacing:"-0.15px",color:"whiteButtonText",border:"1px solid #DCDBDD",backgroundColor:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer","&:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)",border:"1px solid #6E56CF"},"&:hover":{"&:not([disabled])":{backgroundColor:"#F4F2F4",cursor:"pointer"}},"&:active":{"&:not([disabled])":{backgroundColor:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"}},"&:disabled":{color:"#908E96",cursor:"not-allowed"}},darkSmall:{borderRadius:"4px",color:"white",fontFamily:"body",fontSize:"12px",fontWeight:"body",bg:"text",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty.$n)("text",.05),cursor:"pointer"}},lightSmall:{borderRadius:"4px",color:"text",fontSize:"12px",fontWeight:"body",fontFamily:"body",bg:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty._j)("white",.05),cursor:"pointer"}},actionDelete:{width:"100%",borderRadius:"4px",color:"error",fontSize:"16px",fontFamily:"body",fontWeight:"body",bg:"grey02",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,ty._j)("white",.05),cursor:"pointer"}},disabled:{bg:"#D6CEFC",fontSize:"1",color:"white",fontFamily:"body",cursor:"not-allowed",borderColor:"transparent"},disabledSecondary:{bg:"#F9F9FA",fontSize:"1",color:"#C9D0D8",fontFamily:"body",cursor:"not-allowed",border:"1px solid",borderColor:"1px solid rgba(62, 62, 72, 0.15)"},transparent:{background:"transparent",border:"none",fontFamily:"body",p:1,color:"primary",cursor:"pointer"},selectIcon:{fontFamily:"body","&:hover":{cursor:"pointer"},"&:focus, &:active":{outline:"none"}},textButton:{fontFamily:"body",border:"none",color:"primary",background:"transparent",p:1,position:"relative",top:"1px",ml:1,cursor:"pointer","&:hover":{background:"rgba(0,0,0,0.06) !important",borderRadius:"3px"}},close:{fontFamily:"body",color:"icons","&:hover":{bg:"rgba(0,0,0,0.08)",cursor:"pointer"},"&:focus":{outline:"none"}},icon:{fontFamily:"body","&:hover":{bg:"rgba(0,0,0,0.08)"},"&:focus":{outline:"none"}},round:{fontFamily:"body",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%"},white:{bg:"#FFF",color:"#1A1523",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",fontFamily:"body",fontWeight:"600",fontSize:1,px:3,cursor:"pointer"}},success:{done:{position:"absolute",top:"57px",width:"100%",p:2,bg:"success"},error:{position:"absolute",top:"57px",width:"100%",p:2,bg:"error"},warning:{position:"absolute",top:"57px",width:"100%",p:2,bg:"warning"}},cards:{primary:{bg:"gray",border:"1px solid",borderRadius:4,borderColor:"borders"},large:{py:2,bg:"gray",borderRadius:4,boxShadow:"0 0 8px rgba(0, 0, 0, 0.125)"},drawerCard:{backgroundColor:"white",boxShadow:"0px 2px 1px rgba(0, 0, 0, 0.05)",borderRadius:6,border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},px:16,py:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},forms:{disabled:{bg:"muted",cursor:"not-allowed",pointerEvents:"none"},checkbox:{color:"icons",dark:{color:"#161618",cursor:"pointer"}},radio:{color:"borders","&:checked":{color:"purple"}},input:{fontSize:1,bg:"headSection",borderColor:"borders",fontFamily:"body","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,ty._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},textarea:{fontSize:1,resize:"none",bg:"headSection",fontFamily:"body",borderColor:"borders","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,ty._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.choggleBox}},label:{fontSize:1,primary:{mb:2,fontSize:1,fontWeight:"label",position:"relative","& > span":{mb:1,display:"inline-block",fontWeight:"label"}},border:{fontSize:1,mb:1,fontWeight:"body",pt:"7px",pb:"6px",px:1,borderRadius:"3px",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))}},large:{fontSize:1,color:"grey12"}},switch:{height:"24px",width:"45px",bg:"#EDECEE","input:checked ~ &":{bg:"#6E56CF"},"input ~ & > div":{height:"20px",width:"20px",border:"1px solid #DCDBDD",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ & > div":{height:"20px",width:"20px",border:"1px solid #5842C3",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ &:hover":{bg:"#5842C3"},"input:checked ~ & > div:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)"}}},links:{hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.link},margin:"0 4px",textDecoration:"none",cursor:"pointer",display:"inline-block"},default:{color:"link"},invisible:{color:"text",textDecoration:"none",cursor:"pointer"},sidebar:{fontSize:1,color:"textClear",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{color:"text",bg:"grey02"}},sidebarEmphasis:{fontSize:1,color:"purple",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey02"}},cardSmall:{color:"purple08",fontSize:"12px",textDecoration:"none","&:hover":{textDecoration:"underline"}}},styles:{navLink:{color:"#FFF","&:hover":{color:"#FFF"}},deepNavLink:{color:"deep1"},listItem:{borderRadius:"3px",my:3,listStyleType:"none",justifyContent:"space-between"},Container:{p:3,maxWidth:1024},fixedHeader:{position:"fixed",alignItems:"center",justifyContent:"space-between",height:"48px",width:"100%",bg:"background",p:2,top:"0",left:"0"},success:{position:"absolute",width:"100%",p:2},disabledBox:{position:"absolute",zIndex:"1",height:"100%",width:"100%",background:"rgba(0, 0, 0, .1)"},root:{fontFamily:"body",lineHeight:"body",fontWeight:"body"},h1:{variant:"textStyles.display",fontSize:1},h2:{variant:"textStyles.heading",fontSize:5},h4:{variant:"textStyles.heading",fontSize:3},h5:{variant:"textStyles.heading",fontSize:2},h6:{variant:"textStyles.heading",fontSize:1},ul:{p:0,m:0},li:{listStyleType:"none"},hint:{display:"block",fontStyle:"normal",fontWeight:"normal"},inlineCode:{fontFamily:"monospace",color:"#6E56CF",bg:"#F1EEFE"},"table[data-legacy-component]":{width:"100%",borderCollapse:"collapse",borderSpacing:0,"td, th":{textAlign:"left",borderColor:"muted",borderBottomStyle:"solid"},td:{p:"24px"},"thead tr":{bg:"grey02",borderRadius:"4px",th:{p:"12px 24px"},"th:first-of-type":{borderBottomLeftRadius:"4px",borderTopLeftRadius:"4px"},"th:last-of-type":{borderBottomRightRadius:"4px",borderTopRightRadius:"4px"}},"thead tr.transparent":{bg:"transparent",color:"greyTransparent"},"thead tr.small":{fontSize:"12px"},"tbody tr:not(.disabled)":{cursor:"pointer",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey01"}},"tbody tr.disabled":{cursor:"not-allowed"}},th:{verticalAlign:"bottom",borderBottomWidth:"2px"},td:{verticalAlign:"top",borderBottomWidth:"1px"},hr:{border:0,borderBottom:"1px solid",borderColor:"code.border"},img:{maxWidth:"100%"}},alerts:{primary:{color:"background",bg:"primary"},muted:{color:"text",bg:"muted"}}});let tb=e=>{let{children:t}=e,{setColorMode:n}=(0,$.B7)();return(0,w.useEffect)(()=>{n&&n("light")},[]),(0,y.jsx)(y.Fragment,{children:t})};function tA(e){let{Component:t,pageProps:n}=e,[o,i]=(0,w.useState)(null),[a,s]=(0,w.useState)(null);(0,w.useEffect)(()=>{(async function(){i(await (0,ey.y0)())})()},[]),(0,w.useEffect)(()=>{if(!o||a)return;let e=(0,eN.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,s,l,u,c,d,p,h,m;let g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=[(0,eX.md)(tg)],v=eX.qC,b=th(),A=(e=void 0!==tm.version?tm.version:-1,tm.debug,t=void 0===tm.stateReconciler?e9:tm.stateReconciler,n=tm.getStoredState||tt,o=void 0!==tm.timeout?tm.timeout:5e3,i=null,a=!1,s=!0,l=function(e){return e._persist.rehydrated&&i&&!s&&i.update(e),e},function(u,c){var d,p,h=u||{},m=h._persist,g=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(h,["_persist"]);if(c.type===e3){var y=!1,v=function(e,t){y||(c.rehydrate(tm.key,e,t),y=!0)};if(o&&setTimeout(function(){y||v(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tm.key,'"')))},o),s=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:e0).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:te;var u=e.writeFailHandler||null,c={},d={},p=[],h=null,m=null;function g(){if(0===p.length){h&&clearInterval(h),h=null;return}var e=p.shift(),n=i.reduce(function(t,n){return n.in(t,e,c)},c[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===p.length&&(Object.keys(d).forEach(function(e){void 0===c[e]&&delete d[e]}),m=l.setItem(s,t(d)).catch(v))}function y(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function v(e){u&&u(e)}return{update:function(e){Object.keys(e).forEach(function(t){y(t)&&c[t]!==e[t]&&-1===p.indexOf(t)&&p.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&y(t)&&-1===p.indexOf(t)&&void 0!==c[t]&&p.push(t)}),null===h&&(h=setInterval(g,a)),c=e},flush:function(){for(;0!==p.length;)g();return m||Promise.resolve()}}}(tm)),m)return ti({},b(g,c),{_persist:m});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(tm.key),n(tm).then(function(t){(tm.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){v(e)},function(e){v(void 0,e)})},function(e){v(void 0,e)}),ti({},b(g,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===e6)return a=!0,c.result((d=tm.storage,p="".concat(void 0!==tm.keyPrefix?tm.keyPrefix:e0).concat(tm.key),d.removeItem(p,tr))),ti({},b(g,c),{_persist:m});if(c.type===e1)return c.result(i&&i.flush()),ti({},b(g,c),{_persist:m});if(c.type===e5)s=!0;else if(c.type===e2){if(a)return ti({},g,{_persist:ti({},m,{rehydrated:!0})});if(c.key===tm.key){var A=b(g,c),w=c.payload;return l(ti({},!1!==t&&void 0!==w?t(w,u,A,tm):A,{_persist:ti({},m,{rehydrated:!0})}))}}if(!m)return b(u,c);var x=b(g,c);return x===g?u:l(ti({},x,{_persist:m}))}),w=(0,eX.MT)(A,g,v(...y)),x=(c=!1,d=(0,eX.MT)(tc,tu,void 0),p=function(e){d.dispatch({type:e4,key:e})},h=function(e,t,n){var o={type:e2,payload:t,err:n,key:e};w.dispatch(o),d.dispatch(o),c&&m.getState().bootstrapped&&(c(),c=!1)},m=tl({},d,{purge:function(){var e=[];return w.dispatch({type:e6,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return w.dispatch({type:e1,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){w.dispatch({type:e5})},persist:function(){w.dispatch({type:e3,register:p,rehydrate:h})}}),u&&u.manualPersist||m.persist(),m);return{store:w,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});s({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||eZ;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(N(),{children:(0,y.jsx)("title",{children:"Slice Machine"})}),(0,y.jsx)(eg,{theme:tv,children:(0,y.jsx)(tb,{children:(0,y.jsx)(v.bP,{mode:"light",children:(0,y.jsx)(v.c4,{children:a&&o?(0,y.jsxs)(x.zt,{store:a.store,children:[(0,y.jsx)(D,{Router:S(),children:(0,y.jsx)(K,{loading:null,persistor:a.persistor,children:(0,y.jsx)(ev.S,{renderError:()=>(0,y.jsx)(v.D,{justifyContent:"center",width:"100%",padding:80,children:(0,y.jsx)(v.ax,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,y.jsx)(w.Suspense,{fallback:(0,y.jsx)(eQ,{}),children:(0,y.jsx)(eb.E,{children:(0,y.jsx)(eA.e,{children:(0,y.jsx)(l,{children:(0,y.jsx)(t,{...n})})})})})})})}),(0,y.jsx)(eJ.ZP,{})]}):(0,y.jsx)(eQ,{})})})})})]})}var tw=P()(()=>Promise.resolve(tA),{ssr:!1})},31860:function(e,t,n){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2?arguments[2]:void 0;return 1===t?e:null!=n?n:"".concat(e,"s")}n.d(t,{_:function(){return i},f:function(){return o}})},5758:function(){},32172:function(){},34112:function(){},10802:function(){},52422:function(){},83171:function(){},62400:function(){},42447:function(){},43002:function(){},79048:function(){},46248:function(){},57:function(){},28460:function(){},68870:function(){},10704:function(e){e.exports={reset:"BaseHoverCard_reset__HckHR",container:"BaseHoverCard_container__IZMCG BaseHoverCard_reset__HckHR",arrow:"BaseHoverCard_arrow__gvcjD BaseHoverCard_reset__HckHR"}},62628:function(e){e.exports={items:"Breadcrumb_items__eNDGh"}},56099:function(e){e.exports={block:"HoverCard_block__Fubs4",blockWithDisplayRevert:"HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",root:"HoverCard_root__OaRBr HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",title:"HoverCard_title__dO_Y9 HoverCard_block__Fubs4",titleCloseIcon:"HoverCard_titleCloseIcon__DlZJS HoverCard_block__Fubs4",mediaContainer:"HoverCard_mediaContainer__4Lt3z HoverCard_block__Fubs4",media:"HoverCard_media__U7jSc HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",description:"HoverCard_description__HZ9_z HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",closeButtonContainer:"HoverCard_closeButtonContainer__7JiLA HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4"}},86099:function(e){e.exports={grid:"PageLayout_grid__7Uz4n",root:"PageLayout_root___Ig6N PageLayout_grid__7Uz4n",borderTop:"PageLayout_borderTop__7ioR4","borderTopColor-amber":"PageLayout_borderTopColor-amber__S4eiH","borderTopColor-indigo":"PageLayout_borderTopColor-indigo__kxNiR","borderTopColor-purple":"PageLayout_borderTopColor-purple__xhEfx",pane:"PageLayout_pane__UIqt5 PageLayout_grid__7Uz4n",header:"PageLayout_header__hiJ6I PageLayout_grid__7Uz4n",content:"PageLayout_content__LanfI PageLayout_grid__7Uz4n",contentChildren:"PageLayout_contentChildren__ZjEbL PageLayout_grid__7Uz4n"}},31511:function(e){e.exports={root:"AutoSyncStatusIndicator_root__5KDU5",text:"AutoSyncStatusIndicator_text__UHXHm"}},6250:function(e){e.exports={logo:"SideNavEnvironmentSelector_logo__IFs4z",environmentDotBase:"SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-prod":"SideNavEnvironmentSelector_environmentDot-prod__Acp7Z SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-stage":"SideNavEnvironmentSelector_environmentDot-stage__DaYWK SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-dev":"SideNavEnvironmentSelector_environmentDot-dev__O5Gy7 SideNavEnvironmentSelector_environmentDotBase__abxi3",menuItemEnvironmentDot:"SideNavEnvironmentSelector_menuItemEnvironmentDot__oaC3y",activeEnvironmentDot:"SideNavEnvironmentSelector_activeEnvironmentDot__82bDR",activeEnvironmentName:"SideNavEnvironmentSelector_activeEnvironmentName__qy4rk",loginIcon:"SideNavEnvironmentSelector_loginIcon___VsYZ"}},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}},s=!0;try{t[e](a,a.exports,i),s=!1}finally{s&&delete o[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=b(e));var o,i,a,s,l,u,c,d,p,h=(i=(o=e).auth,a=o.hostname,s=o.protocol||"",l=o.pathname||"",u=o.hash||"",c=o.query||"",d=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",o.host?d=i+o.host:a&&(d=i+(~a.indexOf(":")?"["+a+"]":a),o.port&&(d+=":"+o.port)),c&&"object"==typeof c&&(c=t.encode(c)),p=o.search||c&&"?"+c||"",s&&":"!==s.substr(-1)&&(s+=":"),o.slashes||(!s||n.test(s))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),u&&"#"!==u[0]&&(u="#"+u),p&&"?"!==p[0]&&(p="?"+p),{protocol:s,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:p=p.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var s="http://",l=s+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?b(e):e;e="object"==typeof e?o(e):e;var i=b(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var d=e.match(u);d&&!i.protocol&&(e=e.substr((a=d[1]+(d[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var p=new URL(e,l+"/"),h=new URL(t,p).toString().replace(l,""),m=i.protocol||n.protocol;return m+=n.slashes||i.slashes?"//":"",!a&&m?h=h.replace(s,m):a&&(h=h.replace(s,"")),c.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),a&&(h=a+("/"===h[0]?h.substr(1):h)),h}function p(){}p.prototype.parse=b,p.prototype.format=o,p.prototype.resolve=d,p.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof p)return e;var a=(e=e.trim()).match(m);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var s=!/(^javascript)/.test(e)&&e.match(g),u=y.test(e),c="";s&&(h.test(s[1])||(c=s[1].toLowerCase(),e=""+s[2]+s[3]),s[2]||(u=!1,h.test(s[1])?(c=s[1],e=""+s[3]):e="//"+s[3]),3!==s[2].length&&1!==s[2].length||(c=s[1],e="/"+s[3]));var d,b=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=b&&b[1],w=new p,x="",C="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(C="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return w.protocol=c,w.href=c,w}}w.slashes=u&&!C,w.host="w.w"===d.host?"":d.host,w.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),w.protocol=x?c||null:d.protocol,w.search=d.search.replace(/\\/g,"%5C"),w.hash=d.hash.replace(/\\/g,"%5C");var S=e.split("#");!w.search&&~S[0].indexOf("?")&&(w.search="?"),w.hash||""!==S[1]||(w.hash="#"),w.query=n?t.decode(d.search.substr(1)):w.search.substr(1),w.pathname=C+(s?d.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):d.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=d.port,A&&!w.host.endsWith(A)&&(w.host+=A,w.port=A.slice(1)),w.href=C?""+w.pathname+w.search+w.hash:o(w);var _=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~_.indexOf(e)||(w[e]=w[e]||null)}),w}a.parse=b,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return b(d(e,t))},a.Url=p}(),e.exports=a}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,o,i){n=n||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,p,h,m,g=e[c].replace(s,"%20"),y=g.indexOf(o);(y>=0?(d=g.substr(0,y),p=g.substr(y+1)):(d=g,p=""),h=decodeURIComponent(d),m=decodeURIComponent(p),Object.prototype.hasOwnProperty.call(a,h))?t(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,s,l){return(a=a||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+s;return n(e[i])?o(e[i],function(e){return l+encodeURIComponent(t(e))}).join(a):l+encodeURIComponent(t(e[i]))}).join(a):l?encodeURIComponent(t(l))+s+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},s=!0;try{t[e](a,a.exports,o),s=!1}finally{s&&delete n[e]}return a.exports}o.ab="//";var i={};i.decode=i.parse=o(815),i.encode=i.stringify=o(577),e.exports=i}()},25237:function(e,t,n){e.exports=n(72392)},97729:function(e,t,n){e.exports=n(68792)},39097:function(e,t,n){e.exports=n(14470)},5632:function(e,t,n){e.exports=n(70743)},34406:function(e){var t,n,o,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],c=!1,d=-1;function p(){c&&o&&(c=!1,o.length?u=o.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=l(p);c=!0;for(var t=u.length;t;){for(o=u,u=[];++d<t;)o&&o[d].run();d=-1,t=u.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||c||l(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},68262:function(e,t,n){"use strict";var o=n(23586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,s){if(s!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},68281:function(e,t,n){"use strict";n.d(t,{w_:function(){return u}});var o=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function u(e){return function(t){return o.createElement(c,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,s({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,u=e.title,c=l(e,["attr","size","title"]),d=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&o.createElement("title",null,u),e.children)};return void 0!==a?o.createElement(a.Consumer,null,function(e){return t(e)}):t(i)}},65186:function(e,t,n){"use strict";n.d(t,{$l_:function(){return g},$vK:function(){return C},B4e:function(){return w},BAW:function(){return b},Fwj:function(){return T},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return S},SQS:function(){return A},U8L:function(){return k},XN7:function(){return y},YTL:function(){return m},_b$:function(){return v},eJU:function(){return u},f$3:function(){return s},hs8:function(){return I},iy3:function(){return _},k71:function(){return c},lPv:function(){return R},nwY:function(){return O},vB0:function(){return l},vVM:function(){return h},wr$:function(){return p},xoN:function(){return i}});var o=n(68281);function i(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}}]})(e)}function a(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74L15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z"}}]})(e)}function s(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}}]})(e)}function l(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(e)}function u(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function c(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(e)}function d(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"}}]})(e)}function p(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function h(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function m(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function g(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function y(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4h4zm-6 4h-4v-4h4v4z"}}]})(e)}function v(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}function b(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function A(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M5 4v3h5.5v12h3V7H19V4z"}}]})(e)}function w(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function x(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function C(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}}]})(e)}function S(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"}},{tag:"path",attr:{d:"M6.49 10.5V15h1.15V9h-.87l-1.76 1.27.58.89zM11.47 10.05c.5 0 .81.32.81.72 0 .37-.14.64-.54 1.06-.36.38-1.06 1.08-2.13 2.15V15h3.89v-.99h-2.37l-.03-.05c.68-.68 1.15-1.14 1.4-1.39.61-.6.92-1.22.92-1.86 0-.24-.05-1.04-.91-1.48-.47-.23-1.26-.36-1.95-.03-.82.39-.99 1.13-1 1.15l1.01.42c.1-.33.38-.72.9-.72zM16.99 13.94c-.83 0-.99-.76-1.02-.86l-1.03.41c.45 1.59 2.01 1.51 2.05 1.51 1.2 0 1.68-.72 1.76-.85.32-.49.36-1.24-.01-1.76-.17-.24-.4-.41-.68-.52v-.07c.2-.1.37-.26.52-.48.26-.41.31-1.07-.02-1.57-.08-.11-.53-.75-1.62-.75-1.26 0-1.74.9-1.85 1.24l.99.41c.11-.32.35-.64.85-.64.44 0 .75.26.75.65 0 .58-.55.72-.88.72h-.46v1h.5c.56 0 1.04.24 1.04.79 0 .49-.48.77-.89.77z"}}]})(e)}function _(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-8-4h2v2h2v-2h2v-2h-2v-2h-2v2h-2z"}}]})(e)}function k(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(e)}function T(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}}]})(e)}function R(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(e)}function O(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13l-4-4h8z"}}]})(e)}function I(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}},66866:function(e,t){"use strict";var n,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case a:case l:case s:case h:case m:return e;default:switch(e=e&&e.$$typeof){case d:case c:case p:case y:case g:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.SuspenseList=m,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===y},t.isMemo=function(e){return b(e)===g},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===h},t.isSuspenseList=function(e){return b(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===s||e===h||e===m||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=b},48570:function(e,t,n){"use strict";e.exports=n(66866)},46847:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState((function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}).bind(this))}function a(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},42901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(2784),s=g(a),l=g(n(28316)),u=g(n(13980)),c=g(n(10742)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(66941)),p=n(6259),h=g(p),m=n(46847);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var v=t.portalClassName="ReactModalPortal",b=t.bodyOpenClassName="ReactModal__Body--open",A=p.canUseDOM&&void 0!==l.default.createPortal,w=function(e){return document.createElement(e)},x=function(){return A?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},C=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,i,a=arguments.length,u=Array(a),d=0;d<a;d++)u[d]=arguments[d];return n=i=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.removePortal=function(){A||l.default.unmountComponentAtNode(i.node);var e=(0,i.props.parentSelector)();e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=x()(i,s.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},y(i,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(A||(this.node=w("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),A||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,i=o.isOpen,a=o.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=n.prevParent,l=n.nextParent;l!==s&&(s.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||i)&&(A||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&A?(!this.node&&A&&(this.node=w("div")),x()(s.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){d.setElement(e)}}]),t}(a.Component);C.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(h.default),u.default.instanceOf(p.SafeHTMLCollection),u.default.instanceOf(p.SafeNodeList),u.default.arrayOf(u.default.instanceOf(h.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},C.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:b,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},C.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(C),t.default=C},10742:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2784),l=v(n(13980)),u=y(n(77194)),c=v(n(90026)),d=y(n(66941)),p=y(n(95853)),h=n(6259),m=v(h),g=v(n(66638));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(26736);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},A=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,i=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,l=s&&s().ownerDocument||document;a&&p.remove(l.body,a),i&&p.remove(l.getElementsByTagName("html")[0],i),o&&A>0&&0==(A-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),g.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o=(void 0===t?"undefined":i(t))==="object"?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=o.base;return n.state.afterOpen&&(a=a+" "+o.afterOpen),n.state.beforeClose&&(a=a+" "+o.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&p.add(s.body,i),o&&p.add(s.getElementsByTagName("html")[0],o),n&&(A+=1,d.hide(t)),g.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,a=e.defaultStyles,s=e.children,l=n?{}:a.content,u=i?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},d=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(d,s);return this.props.overlayElement(c,p)}}]),t}(s.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(m.default),l.default.instanceOf(h.SafeHTMLCollection),l.default.instanceOf(h.SafeNodeList),l.default.arrayOf(l.default.instanceOf(m.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=w,e.exports=t.default},66941:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=u(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=u(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,i=(o=n(45982))&&o.__esModule?o:{default:o},a=n(6259),s=null;function l(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},26736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,i=(o=n(66638))&&o.__esModule?o:{default:o},a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe(function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))})},95853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var a=document.body;for(var s in o)i(a,o[s]);n={},o={}},t.log=function(){};var n={},o={};function i(e,t){e.classList.remove(t)}var a=function(e,t,n){n.forEach(function(n){t[n]||(t[n]=0),t[n]+=1,e.add(n)})},s=function(e,t,n){n.forEach(function(n){t[n]&&(t[n]-=1),0===t[n]&&e.remove(n)})};t.add=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))},t.remove=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))}},77194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,i=(o=n(93970))&&o.__esModule?o:{default:o},a=[],s=null,l=!1;function u(){l=!0}function c(){l&&(l=!1,s&&setTimeout(function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()},0))}},66638:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},6259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,i=((o=n(85978))&&o.__esModule?o:{default:o}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM,t.default=a},90026:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length){t.preventDefault();return}var o=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===u){if(!a)return;o=l}if(l!==u||a||(o=s),s===u&&a&&(o=l),o){t.preventDefault(),o.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(u);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d])){t.preventDefault(),(o=a?l:s).focus();return}t.preventDefault(),o.focus()}};var o,i=(o=n(93970))&&o.__esModule?o:{default:o};e.exports=t.default},93970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t,o,i=e.getAttribute("tabindex");null===i&&(i=void 0);var a=isNaN(i);return(a||i>=0)&&(t=!a,o=e.nodeName.toLowerCase(),(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),o=n.getPropertyValue("display");return t?"contents"!==o&&("visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default},37149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(42901))&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},56580:function(e,t,n){"use strict";n.d(t,{zt:function(){return B},$j:function(){return N},I0:function(){return z},v9:function(){return g},oR:function(){return W}});var o=n(33888),i=n(56406),a=n(28316);let s=function(e){e()},l=()=>s;var u=n(2784);let c=(0,u.createContext)(null);function d(){return(0,u.useContext)(c)}let p=()=>{throw Error("uSES not initialized!")},h=p,m=(e,t)=>e===t,g=function(e=c){let t=e===c?d:()=>(0,u.useContext)(e);return function(e,n=m){let{store:o,subscription:i,getServerState:a}=t(),s=h(i.addNestedSub,o.getState,a||o.getState,e,n);return(0,u.useDebugValue)(s),s}}();var y=n(7896),v=n(31461),b=n(73463),A=n.n(b),w=n(48570);let x=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function C(e){return function(t){let n=e(t);function o(){return n}return o.dependsOnOwnProps=!1,o}}function S(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function _(e,t){return function(t,{displayName:n}){let o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=S(e);let i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=S(i),i=o(t,n)),i},o}}function k(e,t){return(n,o)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function T(e,t,n){return(0,y.Z)({},n,e,t)}let R={notify(){},get:()=>[]};function O(e,t){let n;let o=R;function i(){s.onStateChange&&s.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),o=function(){let e=l(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let o=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){o&&null!==t&&(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}let s={addNestedSub:function(e){return a(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:i,isSubscribed:function(){return!!n},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=R)},getListeners:()=>o};return s}let I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!M(e[n[o]],t[n[o]]))return!1;return!0}let D=["reactReduxForwardedRef"],L=p,P=[null,null];function F(e,t){return e===t}var N=function(e,t,n,{pure:o,areStatesEqual:i=F,areOwnPropsEqual:a=j,areStatePropsEqual:s=j,areMergedPropsEqual:l=j,forwardRef:d=!1,context:p=c}={}){let h=e?"function"==typeof e?_(e,"mapStateToProps"):k(e,"mapStateToProps"):C(()=>({})),m=t&&"object"==typeof t?C(e=>(function(e,t){let n={};for(let o in e){let i=e[o];"function"==typeof i&&(n[o]=(...e)=>t(i(...e)))}return n})(t,e)):t?"function"==typeof t?_(t,"mapDispatchToProps"):k(t,"mapDispatchToProps"):C(e=>({dispatch:e})),g=n?"function"==typeof n?function(e,{displayName:t,areMergedPropsEqual:o}){let i,a=!1;return function(e,t,s){let l=n(e,t,s);return a?o(l,i)||(i=l):(a=!0,i=l),i}}:k(n,"mergeProps"):()=>T,b=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:b,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:m,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){var n;let i;let[a,s,l]=(0,u.useMemo)(()=>{let{reactReduxForwardedRef:e}=t,n=(0,v.Z)(t,D);return[t.context,e,n]},[t]),c=(0,u.useMemo)(()=>a&&a.Consumer&&(0,w.isContextConsumer)(u.createElement(a.Consumer,null))?a:p,[a,p]),d=(0,u.useContext)(c),h=!!t.store&&!!t.store.getState&&!!t.store.dispatch,m=!!d&&!!d.store,g=h?t.store:d.store,A=m?d.getServerState:g.getState,C=(0,u.useMemo)(()=>(function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:o,initMergeProps:i}=t,a=(0,v.Z)(t,x),s=n(e,a);return function(e,t,n,o,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let l,u,c,d,p,h=!1;return function(m,g){return h?function(h,m){let g=!a(m,u),y=!i(h,l,m,u);return(l=h,u=m,g&&y)?(c=e(l,u),t.dependsOnOwnProps&&(d=t(o,u)),p=n(c,d,u)):g?(e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(d=t(o,u)),p=n(c,d,u)):y?function(){let t=e(l,u),o=!s(t,c);return c=t,o&&(p=n(c,d,u)),p}():p}(m,g):(c=e(l=m,u=g),d=t(o,u),p=n(c,d,u),h=!0,p)}}(s,o(e,a),i(e,a),e,a)})(g.dispatch,o),[g]),[S,_]=(0,u.useMemo)(()=>{if(!b)return P;let e=O(g,h?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[g,h,d]),k=(0,u.useMemo)(()=>h?d:(0,y.Z)({},d,{subscription:S}),[h,d,S]),T=(0,u.useRef)(),R=(0,u.useRef)(l),M=(0,u.useRef)(),j=(0,u.useRef)(!1);(0,u.useRef)(!1);let F=(0,u.useRef)(!1),N=(0,u.useRef)();I(()=>(F.current=!0,()=>{F.current=!1}),[]);let B=(0,u.useMemo)(()=>()=>M.current&&l===R.current?M.current:C(g.getState(),l),[g,l]),U=(0,u.useMemo)(()=>e=>S?function(e,t,n,o,i,a,s,l,u,c,d){if(!e)return()=>{};let p=!1,h=null,m=()=>{let e,n;if(p||!l.current)return;let m=t.getState();try{e=o(m,i.current)}catch(e){n=e,h=e}n||(h=null),e===a.current?s.current||c():(a.current=e,u.current=e,s.current=!0,d())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}(b,g,S,C,R,T,j,F,M,_,e):()=>{},[S]);n=[R,T,j,l,M,_],I(()=>(function(e,t,n,o,i,a){e.current=o,n.current=!1,i.current&&(i.current=null,a())})(...n),void 0);try{i=L(U,B,A?()=>C(A(),l):B)}catch(e){throw N.current&&(e.message+=`
|
|
130
130
|
The error may be correlated with this previous error:
|
|
131
131
|
${N.current.stack}
|
|
132
132
|
|