slice-machine-ui 1.15.1-dev-next-release.0 → 1.15.1-dev-next-release.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.
Files changed (57) hide show
  1. package/.storybook/preview.tsx +1 -5
  2. package/lib/builders/SliceBuilder/Header/SimulatorButton/index.tsx +3 -2
  3. package/out/404.html +1 -1
  4. package/out/[lib]/[sliceName]/[variation]/screenshot.html +1 -1
  5. package/out/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  6. package/out/[lib]/[sliceName]/[variation].html +1 -1
  7. package/out/_next/static/chunks/113-34b6cf41a62f08ce.js +3 -0
  8. package/out/_next/static/chunks/{740-d0642219804fa9f0.js → 125-84464edfe25651eb.js} +3 -3
  9. package/out/_next/static/chunks/18539003-1bb05c8aa7db2bc2.js +97 -0
  10. package/out/_next/static/chunks/323-9843d325f7ff6913.js +1 -0
  11. package/out/_next/static/chunks/{377-870ca4414847069f.js → 377-3caacee3c3ffdc25.js} +1 -1
  12. package/out/_next/static/chunks/482-93d7a0d3a0353f59.js +1 -0
  13. package/out/_next/static/chunks/{573-aaae870d20e5f86c.js → 573-e92018662d1f6c26.js} +1 -1
  14. package/out/_next/static/chunks/746-2ca4784811bde7c1.js +8 -0
  15. package/out/_next/static/chunks/{799-5ea3393033a9f617.js → 799-5c13484e9f945e5d.js} +1 -1
  16. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]/{simulator-4dcf33735c45c344.js → simulator-c608e0470a8f6099.js} +1 -1
  17. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]-36ba0bde8415ad8b.js +1 -0
  18. package/out/_next/static/chunks/pages/{_app-2e696c5146b70244.js → _app-50e4bd906b82c68e.js} +98 -95
  19. package/out/_next/static/chunks/pages/{changelog-877e16d5731e1966.js → changelog-11c9e241f5a8a4cb.js} +1 -1
  20. package/out/_next/static/chunks/pages/{changes-b85f5f8b616f683f.js → changes-8338c9d0723a7033.js} +1 -1
  21. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-4fe86acfed194773.js → [customTypeId]-9ba8a3f68a048222.js} +1 -1
  22. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-87f5f9704f2c3f2d.js → [pageTypeId]-3144fdf0c6f9af94.js} +1 -1
  23. package/out/_next/static/chunks/pages/{slices-53cb97d901d15d93.js → slices-afa4b34df8f8e1c3.js} +1 -1
  24. package/out/_next/static/css/{d6e6d21ff661397d.css → 26b51745402a92af.css} +1 -1
  25. package/out/_next/static/css/66b3836ab88b0c5c.css +1 -0
  26. package/out/_next/static/css/{2d1eda18406a9ff4.css → b6bfe1e0ef76c2b1.css} +1 -1
  27. package/out/_next/static/l5qzy_xQjzd7ei5tL_M1r/_buildManifest.js +1 -0
  28. package/out/changelog.html +1 -1
  29. package/out/changes.html +1 -1
  30. package/out/custom-types/[customTypeId].html +1 -1
  31. package/out/custom-types.html +1 -1
  32. package/out/index.html +1 -1
  33. package/out/page-types/[pageTypeId].html +1 -1
  34. package/out/slices.html +1 -1
  35. package/package.json +8 -8
  36. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -0
  37. package/src/components/Card/Card.css.ts +182 -0
  38. package/src/components/Card/Card.stories.tsx +166 -0
  39. package/src/components/Card/Card.tsx +171 -0
  40. package/src/components/Card/index.ts +1 -0
  41. package/src/components/HoverCard/HoverCard.stories.tsx +4 -0
  42. package/src/components/Table/Table.tsx +4 -14
  43. package/src/components/TextLink/TextLink.stories.tsx +2 -5
  44. package/src/components/Window/Window.tsx +8 -4
  45. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -13
  46. package/src/icons/AddPhotoAlternateIcon.tsx +19 -0
  47. package/src/icons/ArrowDropDownIcon.tsx +14 -0
  48. package/src/icons/SyncAltIcon.tsx +19 -0
  49. package/out/_next/static/WBN_4NBm93_gAe6XjcmpE/_buildManifest.js +0 -1
  50. package/out/_next/static/chunks/18539003-a714ba731c9448b9.js +0 -101
  51. package/out/_next/static/chunks/323-841ea6a21954aa7e.js +0 -1
  52. package/out/_next/static/chunks/482-cb5b635a7b32f4b0.js +0 -1
  53. package/out/_next/static/chunks/746-1d8d106d76d9a63e.js +0 -8
  54. package/out/_next/static/chunks/780-643ae720f13fb3dc.js +0 -1
  55. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]-e1c66b10113d656e.js +0 -1
  56. package/out/_next/static/css/fe2a2a1cbf3b4092.css +0 -1
  57. /package/out/_next/static/{WBN_4NBm93_gAe6XjcmpE → l5qzy_xQjzd7ei5tL_M1r}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[780],{1611:function(e,t,r){"use strict";r.d(t,{WY:function(){return i},xb:function(){return o}});var n=r(86579);async function i(e,t){let{okType:r,signal:i,headers:o,body:l,timeout:u=1e4,...c}=t,d=new Headers(o);d.has("Content-Type")||d.set("Content-Type","application/json"),"multipart/form-data"===d.get("Content-Type")&&d.delete("Content-Type");let p=s();p&&d.set("Authorization",`Bearer ${p}`);let h="application/json"===d.get("Content-Type")?JSON.stringify(l):l,f=!1;try{let m=new AbortController,y=function(e){let t=new AbortController;function r(){for(let n of(t.abort(),e))n.removeEventListener("abort",r)}for(let n of e){if(n.aborted){r();break}n.addEventListener("abort",r)}return t.signal}([m.signal,i].filter(n.$));setTimeout(()=>{f=!0,m.abort()},u);let g=await fetch(e,{...c,body:h,headers:d,signal:y}),{status:v}=g,_=g.clone(),x=await g.json().catch(e=>_.text());if(g.ok){let b=r.safeParse(x);if(!b.success)throw new a({type:"validation",status:v,cause:b.error});return b.data}throw new a({type:"http",status:v,body:x})}catch(T){var k,w;throw(k=T,k instanceof a)?T:new a((w=T,w instanceof DOMException&&"AbortError"===w.name)?{type:f?"timeout":"abort"}:{type:"unknown",cause:T})}}class a extends Error{constructor(e){super(JSON.stringify(e,null,2)),this.detail=e,this.name="RequestError"}}let s=()=>"";function o(e){return"dev"===e?"same-origin":"include"}},661:function(e,t,r){"use strict";r.d(t,{fW:function(){return eD},Ag:function(){return eF},W7:function(){return eM}}),(ew=eE||(eE={})).assertEqual=e=>e,ew.assertIs=function(e){},ew.assertNever=function(e){throw Error()},ew.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},ew.getValidEnumValues=e=>{let t=ew.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return ew.objectValues(r)},ew.objectValues=e=>ew.objectKeys(e).map(function(t){return e[t]}),ew.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},ew.find=(e,t)=>{for(let r of e)if(t(r))return r},ew.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,ew.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},ew.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(eT=eO||(eO={})).mergeShapes=(e,t)=>({...e,...t});let n=eE.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=e=>{switch(typeof e){case"undefined":return n.undefined;case"string":return n.string;case"number":return isNaN(e)?n.nan:n.number;case"boolean":return n.boolean;case"function":return n.function;case"bigint":return n.bigint;case"symbol":return n.symbol;case"object":if(Array.isArray(e))return n.array;if(null===e)return n.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return n.promise;if("undefined"!=typeof Map&&e instanceof Map)return n.map;if("undefined"!=typeof Set&&e instanceof Set)return n.set;if("undefined"!=typeof Date&&e instanceof Date)return n.date;return n.object;default:return n.unknown}},a=eE.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let o=i.path[s],l=s===i.path.length-1;l?(a[o]=a[o]||{_errors:[]},a[o]._errors.push(t(i))):a[o]=a[o]||{_errors:[]},a=a[o],s++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,eE.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>{let t=new s(e);return t};let o=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===n.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,eE.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${eE.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${eE.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${eE.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:eE.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,eE.assertNever(e)}return{message:r}},l=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a},o="",l=n.filter(e=>!!e).slice().reverse();for(let u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function u(e,t){let r=l({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,o,o].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return d;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t)r.push({key:await n.key,value:await n.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:i,value:a}=n;if("aborted"===i.status||"aborted"===a.status)return d;"dirty"===i.status&&e.dirty(),"dirty"===a.status&&e.dirty(),(void 0!==a.value||n.alwaysSet)&&(r[i.value]=a.value)}return{status:e.value,value:r}}}let d=Object.freeze({status:"aborted"}),p=e=>({status:"dirty",value:e}),h=e=>({status:"valid",value:e}),f=e=>"aborted"===e.status,m=e=>"dirty"===e.status,y=e=>"valid"===e.status,g=e=>"undefined"!=typeof Promise&&e instanceof Promise;(eC=eN||(eN={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eC.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class v{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let _=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new s(e.common.issues);return this._error=r,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};let a=(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError};return{errorMap:a,description:i}}class b{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(g(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:n.path,parent:n});return _(n,a)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r}),a=await (g(n)?n:Promise.resolve(n));return _(r,a)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),s=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new el({schema:this,typeName:eP.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ec.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return W.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return G.create(this,e,this._def)}transform(e){return new el({...x(this._def),schema:this,typeName:eP.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:eP.ZodDefault})}brand(){return new ef({typeName:eP.ZodBranded,type:this,...x(this._def)})}catch(e){return new ep({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:eP.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return em.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let k=/^c[^\s-]{8,}$/i,w=/^[a-z][a-z0-9]*$/,T=/[0-9A-HJKMNP-TV-Z]{26}/,C=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,S=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,E=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,O=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,N=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function A(e,t){return!!(("v4"===t||!t)&&O.test(e)||("v6"===t||!t)&&N.test(e))}class I extends b{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...eN.errToObj(r)}),this.nonempty=e=>this.min(1,eN.errToObj(e)),this.trim=()=>new I({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new I({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new I({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));let t=this._getType(e);if(t!==n.string){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.string,received:r.parsedType}),d}let i=new c,s;for(let o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(u(s=this._getOrReturnCtx(e,s),{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("max"===o.kind)e.data.length>o.value&&(u(s=this._getOrReturnCtx(e,s),{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("length"===o.kind){let l=e.data.length>o.value,p=e.data.length<o.value;(l||p)&&(s=this._getOrReturnCtx(e,s),l?u(s,{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):p&&u(s,{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if("email"===o.kind)S.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"email",code:a.invalid_string,message:o.message}),i.dirty());else if("emoji"===o.kind)E.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:a.invalid_string,message:o.message}),i.dirty());else if("uuid"===o.kind)C.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid"===o.kind)k.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid2"===o.kind)w.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:a.invalid_string,message:o.message}),i.dirty());else if("ulid"===o.kind)T.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:a.invalid_string,message:o.message}),i.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(h){u(s=this._getOrReturnCtx(e,s),{validation:"url",code:a.invalid_string,message:o.message}),i.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;let f=o.regex.test(e.data);f||(u(s=this._getOrReturnCtx(e,s),{validation:"regex",code:a.invalid_string,message:o.message}),i.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty());else if("datetime"===o.kind){let m=P(o);m.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:"datetime",message:o.message}),i.dirty())}else"ip"===o.kind?A(e.data,o.version)||(u(s=this._getOrReturnCtx(e,s),{validation:"ip",code:a.invalid_string,message:o.message}),i.dirty()):eE.assertNever(o);return{status:i.value,value:e.data}}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...eN.errToObj(e)})}url(e){return this._addCheck({kind:"url",...eN.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...eN.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...eN.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...eN.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...eN.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...eN.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...eN.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...eN.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...eN.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...eN.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...eN.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...eN.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...eN.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...eN.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...eN.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function j(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}I.create=e=>{var t;return new I({checks:[],typeName:eP.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class Z extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));let t=this._getType(e);if(t!==n.number){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.number,received:r.parsedType}),d}let i,s=new c;for(let o of this._def.checks)if("int"===o.kind)eE.isInteger(e.data)||(u(i=this._getOrReturnCtx(e,i),{code:a.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty());else if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else if("max"===o.kind){let p=o.inclusive?e.data>o.value:e.data>=o.value;p&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else"multipleOf"===o.kind?0!==j(e.data,o.value)&&(u(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(u(i=this._getOrReturnCtx(e,i),{code:a.not_finite,message:o.message}),s.dirty()):eE.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,eN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,eN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,eN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,eN.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:eN.toString(n)},]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:eN.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:eN.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:eN.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:eN.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:eN.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&eE.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:eP.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class R extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));let t=this._getType(e);if(t!==n.bigint){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.bigint,received:r.parsedType}),d}let i,s=new c;for(let o of this._def.checks)if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else if("max"===o.kind){let p=o.inclusive?e.data>o.value:e.data>=o.value;p&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(u(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):eE.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,eN.toString(t))}gt(e,t){return this.setLimit("min",e,!1,eN.toString(t))}lte(e,t){return this.setLimit("max",e,!0,eN.toString(t))}lt(e,t){return this.setLimit("max",e,!1,eN.toString(t))}setLimit(e,t,r,n){return new R({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:eN.toString(n)},]})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:eN.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:eN.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:eN.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:eN.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:eN.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}R.create=e=>{var t;return new R({checks:[],typeName:eP.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class M extends b{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));let t=this._getType(e);if(t!==n.boolean){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.boolean,received:r.parsedType}),d}return h(e.data)}}M.create=e=>new M({typeName:eP.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class D extends b{_parse(e){this._def.coerce&&(e.data=new Date(e.data));let t=this._getType(e);if(t!==n.date){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.date,received:r.parsedType}),d}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return u(i,{code:a.invalid_date}),d}let s=new c,o;for(let l of this._def.checks)"min"===l.kind?e.data.getTime()<l.value&&(u(o=this._getOrReturnCtx(e,o),{code:a.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),s.dirty()):"max"===l.kind?e.data.getTime()>l.value&&(u(o=this._getOrReturnCtx(e,o),{code:a.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):eE.assertNever(l);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:eN.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:eN.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}D.create=e=>new D({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:eP.ZodDate,...x(e)});class L extends b{_parse(e){let t=this._getType(e);if(t!==n.symbol){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.symbol,received:r.parsedType}),d}return h(e.data)}}L.create=e=>new L({typeName:eP.ZodSymbol,...x(e)});class z extends b{_parse(e){let t=this._getType(e);if(t!==n.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.undefined,received:r.parsedType}),d}return h(e.data)}}z.create=e=>new z({typeName:eP.ZodUndefined,...x(e)});class F extends b{_parse(e){let t=this._getType(e);if(t!==n.null){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.null,received:r.parsedType}),d}return h(e.data)}}F.create=e=>new F({typeName:eP.ZodNull,...x(e)});class $ extends b{constructor(){super(...arguments),this._any=!0}_parse(e){return h(e.data)}}$.create=e=>new $({typeName:eP.ZodAny,...x(e)});class V extends b{constructor(){super(...arguments),this._unknown=!0}_parse(e){return h(e.data)}}V.create=e=>new V({typeName:eP.ZodUnknown,...x(e)});class U extends b{_parse(e){let t=this._getOrReturnCtx(e);return u(t,{code:a.invalid_type,expected:n.never,received:t.parsedType}),d}}U.create=e=>new U({typeName:eP.ZodNever,...x(e)});class B extends b{_parse(e){let t=this._getType(e);if(t!==n.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.void,received:r.parsedType}),d}return h(e.data)}}B.create=e=>new B({typeName:eP.ZodVoid,...x(e)});class W extends b{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==n.array)return u(t,{code:a.invalid_type,expected:n.array,received:t.parsedType}),d;if(null!==i.exactLength){let s=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(s||o)&&(u(t,{code:s?a.too_big:a.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(u(t,{code:a.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(u(t,{code:a.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new v(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let l=[...t.data].map((e,r)=>i.type._parseSync(new v(t,e,t.path,r)));return c.mergeArray(r,l)}get element(){return this._def.type}min(e,t){return new W({...this._def,minLength:{value:e,message:eN.toString(t)}})}max(e,t){return new W({...this._def,maxLength:{value:e,message:eN.toString(t)}})}length(e,t){return new W({...this._def,exactLength:{value:e,message:eN.toString(t)}})}nonempty(e){return this.min(1,e)}}W.create=(e,t)=>new W({type:e,minLength:null,maxLength:null,exactLength:null,typeName:eP.ZodArray,...x(t)});class H extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=eE.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==n.object){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.object,received:r.parsedType}),d}let{status:i,ctx:s}=this._processInputParams(e),{shape:o,keys:l}=this._getCached(),p=[];if(!(this._def.catchall instanceof U&&"strip"===this._def.unknownKeys))for(let h in s.data)l.includes(h)||p.push(h);let f=[];for(let m of l){let y=o[m],g=s.data[m];f.push({key:{status:"valid",value:m},value:y._parse(new v(s,g,s.path,m)),alwaysSet:m in s.data})}if(this._def.catchall instanceof U){let _=this._def.unknownKeys;if("passthrough"===_)for(let x of p)f.push({key:{status:"valid",value:x},value:{status:"valid",value:s.data[x]}});else if("strict"===_)p.length>0&&(u(s,{code:a.unrecognized_keys,keys:p}),i.dirty());else if("strip"===_);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let k of p){let w=s.data[k];f.push({key:{status:"valid",value:k},value:b._parse(new v(s,w,s.path,k)),alwaysSet:k in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of f){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(i,e)):c.mergeObjectSync(i,f)}get shape(){return this._def.shape()}strict(e){return eN.errToObj,new H({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,s;let o=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=eN.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new H({...this._def,unknownKeys:"strip"})}passthrough(){return new H({...this._def,unknownKeys:"passthrough"})}extend(e){return new H({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new H({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:eP.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new H({...this._def,catchall:e})}pick(e){let t={};return eE.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new H({...this._def,shape:()=>t})}omit(e){let t={};return eE.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new H({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof H){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eu.create(e(i))}return new H({...t._def,shape:()=>r})}if(t instanceof W)return new W({...t._def,type:e(t.element)});if(t instanceof eu)return eu.create(e(t.unwrap()));if(t instanceof ec)return ec.create(e(t.unwrap()));if(t instanceof Y)return Y.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return eE.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new H({...this._def,shape:()=>t})}required(e){let t={};return eE.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let n=this.shape[r],i=n;for(;i instanceof eu;)i=i._def.innerType;t[r]=i}}),new H({...this._def,shape:()=>t})}keyof(){return ei(eE.objectKeys(this.shape))}}H.create=(e,t)=>new H({shape:()=>e,unknownKeys:"strip",catchall:U.create(),typeName:eP.ZodObject,...x(t)}),H.strictCreate=(e,t)=>new H({shape:()=>e,unknownKeys:"strict",catchall:U.create(),typeName:eP.ZodObject,...x(t)}),H.lazycreate=(e,t)=>new H({shape:e,unknownKeys:"strip",catchall:U.create(),typeName:eP.ZodObject,...x(t)});class q extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let r of e)if("valid"===r.result.status)return r.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let i=e.map(e=>new s(e.ctx.common.issues));return u(t,{code:a.invalid_union,unionErrors:i}),d});{let n,i=[];for(let o of r){let l={...t,common:{...t.common,issues:[]},parent:null},c=o._parseSync({data:t.data,path:t.path,parent:l});if("valid"===c.status)return c;"dirty"!==c.status||n||(n={result:c,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;let p=i.map(e=>new s(e));return u(t,{code:a.invalid_union,unionErrors:p}),d}}get options(){return this._def.options}}q.create=(e,t)=>new q({options:e,typeName:eP.ZodUnion,...x(t)});let K=e=>{if(e instanceof er)return K(e.schema);if(e instanceof el)return K(e.innerType());if(e instanceof en)return[e.value];if(e instanceof ea)return e.options;if(e instanceof es)return Object.keys(e.enum);else if(e instanceof ed)return K(e._def.innerType);else if(e instanceof z)return[void 0];else if(e instanceof F)return[null];else return null};class X extends b{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.object)return u(t,{code:a.invalid_type,expected:n.object,received:t.parsedType}),d;let r=this.discriminator,i=t.data[r],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(u(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),d)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let i of t){let a=K(i.shape[e]);if(!a)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,i)}}return new X({typeName:eP.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...x(r)})}}class G extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),s=(e,s)=>{if(f(e)||f(s))return d;let o=function e(t,r){let a=i(t),s=i(r);if(t===r)return{valid:!0,data:t};if(a===n.object&&s===n.object){let o=eE.objectKeys(r),l=eE.objectKeys(t).filter(e=>-1!==o.indexOf(e)),u={...t,...r};for(let c of l){let d=e(t[c],r[c]);if(!d.valid)return{valid:!1};u[c]=d.data}return{valid:!0,data:u}}if(a===n.array&&s===n.array){if(t.length!==r.length)return{valid:!1};let p=[];for(let h=0;h<t.length;h++){let f=t[h],m=r[h],y=e(f,m);if(!y.valid)return{valid:!1};p.push(y.data)}return{valid:!0,data:p}}if(a===n.date&&s===n.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return o.valid?((m(e)||m(s))&&t.dirty(),{status:t.value,value:o.data}):(u(r,{code:a.invalid_intersection_types}),d)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r}),]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}G.create=(e,t,r)=>new G({left:e,right:t,typeName:eP.ZodIntersection,...x(r)});class Y extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.array)return u(r,{code:a.invalid_type,expected:n.array,received:r.parsedType}),d;if(r.data.length<this._def.items.length)return u(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),d;let i=this._def.rest;!i&&r.data.length>this._def.items.length&&(u(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new v(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(s).then(e=>c.mergeArray(t,e)):c.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Y({...this._def,rest:e})}}Y.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Y({items:e,typeName:eP.ZodTuple,rest:null,...x(t)})};class J extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.object)return u(r,{code:a.invalid_type,expected:n.object,received:r.parsedType}),d;let i=[],s=this._def.keyType,o=this._def.valueType;for(let l in r.data)i.push({key:s._parse(new v(r,l,r.path,l)),value:o._parse(new v(r,r.data[l],r.path,l))});return r.common.async?c.mergeObjectAsync(t,i):c.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new J(t instanceof b?{keyType:e,valueType:t,typeName:eP.ZodRecord,...x(r)}:{keyType:I.create(),valueType:e,typeName:eP.ZodRecord,...x(t)})}}class Q extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.map)return u(r,{code:a.invalid_type,expected:n.map,received:r.parsedType}),d;let i=this._def.keyType,s=this._def.valueType,o=[...r.data.entries()].map(([e,t],n)=>({key:i._parse(new v(r,e,r.path,[n,"key"])),value:s._parse(new v(r,t,r.path,[n,"value"]))}));if(r.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let e of o){let r=await e.key,n=await e.value;if("aborted"===r.status||"aborted"===n.status)return d;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),l.set(r.value,n.value)}return{status:t.value,value:l}})}{let c=new Map;for(let p of o){let h=p.key,f=p.value;if("aborted"===h.status||"aborted"===f.status)return d;("dirty"===h.status||"dirty"===f.status)&&t.dirty(),c.set(h.value,f.value)}return{status:t.value,value:c}}}}Q.create=(e,t,r)=>new Q({valueType:t,keyType:e,typeName:eP.ZodMap,...x(r)});class ee extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.set)return u(r,{code:a.invalid_type,expected:n.set,received:r.parsedType}),d;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(u(r,{code:a.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(u(r,{code:a.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return d;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>s._parse(new v(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ee({...this._def,minSize:{value:e,message:eN.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:eN.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:eP.ZodSet,...x(t)});class et extends b{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.function)return u(t,{code:a.invalid_type,expected:n.function,received:t.parsedType}),d;function r(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o,o,].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function i(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o,o,].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},p=t.data;return this._def.returns instanceof eo?h(async(...e)=>{let t=new s([]),n=await this._def.args.parseAsync(e,c).catch(n=>{throw t.addIssue(r(e,n)),t}),a=await p(...n),o=await this._def.returns._def.type.parseAsync(a,c).catch(e=>{throw t.addIssue(i(a,e)),t});return o}):h((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new s([r(e,t.error)]);let n=p(...t.data),a=this._def.returns.safeParse(n,c);if(!a.success)throw new s([i(n,a.error)]);return a.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:Y.create(e).rest(V.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new et({args:e||Y.create([]).rest(V.create()),returns:t||V.create(),typeName:eP.ZodFunction,...x(r)})}}class er extends b{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}er.create=(e,t)=>new er({getter:e,typeName:eP.ZodLazy,...x(t)});class en extends b{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return u(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),d}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new ea({values:e,typeName:eP.ZodEnum,...x(t)})}en.create=(e,t)=>new en({value:e,typeName:eP.ZodLiteral,...x(t)});class ea extends b{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return u(t,{expected:eE.joinValues(r),received:t.parsedType,code:a.invalid_type}),d}if(-1===this._def.values.indexOf(e.data)){let n=this._getOrReturnCtx(e),i=this._def.values;return u(n,{received:n.data,code:a.invalid_enum_value,options:i}),d}return h(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ea.create(e)}exclude(e){return ea.create(this.options.filter(t=>!e.includes(t)))}}ea.create=ei;class es extends b{_parse(e){let t=eE.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==n.string&&r.parsedType!==n.number){let i=eE.objectValues(t);return u(r,{expected:eE.joinValues(i),received:r.parsedType,code:a.invalid_type}),d}if(-1===t.indexOf(e.data)){let s=eE.objectValues(t);return u(r,{received:r.data,code:a.invalid_enum_value,options:s}),d}return h(e.data)}get enum(){return this._def.values}}es.create=(e,t)=>new es({values:e,typeName:eP.ZodNativeEnum,...x(t)});class eo extends b{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.promise&&!1===t.common.async)return u(t,{code:a.invalid_type,expected:n.promise,received:t.parsedType}),d;let r=t.parsedType===n.promise?t.data:Promise.resolve(t.data);return h(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eo.create=(e,t)=>new eo({type:e,typeName:eP.ZodPromise,...x(t)});class el extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eP.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null;if("preprocess"===n.type){let i=n.transform(r.data);return r.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:i,path:r.path,parent:r})}let a={addIssue(e){u(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===n.type){let s=e=>{let t=n.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"aborted"===e.status?d:("dirty"===e.status&&t.dirty(),s(e.value).then(()=>({status:t.value,value:e.value}))));{let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===o.status?d:("dirty"===o.status&&t.dirty(),s(o.value),{status:t.value,value:o.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(n.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(l))return l;let c=n.transform(l.value,a);if(c instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}}eE.assertNever(n)}}el.create=(e,t,r)=>new el({schema:e,typeName:eP.ZodEffects,effect:t,...x(r)}),el.createWithPreprocess=(e,t,r)=>new el({schema:t,effect:{type:"preprocess",transform:e},typeName:eP.ZodEffects,...x(r)});class eu extends b{_parse(e){let t=this._getType(e);return t===n.undefined?h(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:eP.ZodOptional,...x(t)});class ec extends b{_parse(e){let t=this._getType(e);return t===n.null?h(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:eP.ZodNullable,...x(t)});class ed extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===n.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:eP.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ep extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return g(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:eP.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eh extends b{_parse(e){let t=this._getType(e);if(t!==n.nan){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.nan,received:r.parsedType}),d}return{status:"valid",value:e.data}}}eh.create=e=>new eh({typeName:eP.ZodNaN,...x(e)}),Symbol("zod_brand");class ef extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class em extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){let n=async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?d:"dirty"===e.status?(t.dirty(),p(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})};return n()}{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?d:"dirty"===i.status?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:eP.ZodPipeline})}}H.lazycreate,(eS=eP||(eP={})).ZodString="ZodString",eS.ZodNumber="ZodNumber",eS.ZodNaN="ZodNaN",eS.ZodBigInt="ZodBigInt",eS.ZodBoolean="ZodBoolean",eS.ZodDate="ZodDate",eS.ZodSymbol="ZodSymbol",eS.ZodUndefined="ZodUndefined",eS.ZodNull="ZodNull",eS.ZodAny="ZodAny",eS.ZodUnknown="ZodUnknown",eS.ZodNever="ZodNever",eS.ZodVoid="ZodVoid",eS.ZodArray="ZodArray",eS.ZodObject="ZodObject",eS.ZodUnion="ZodUnion",eS.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eS.ZodIntersection="ZodIntersection",eS.ZodTuple="ZodTuple",eS.ZodRecord="ZodRecord",eS.ZodMap="ZodMap",eS.ZodSet="ZodSet",eS.ZodFunction="ZodFunction",eS.ZodLazy="ZodLazy",eS.ZodLiteral="ZodLiteral",eS.ZodEnum="ZodEnum",eS.ZodEffects="ZodEffects",eS.ZodNativeEnum="ZodNativeEnum",eS.ZodOptional="ZodOptional",eS.ZodNullable="ZodNullable",eS.ZodDefault="ZodDefault",eS.ZodCatch="ZodCatch",eS.ZodPromise="ZodPromise",eS.ZodBranded="ZodBranded",eS.ZodPipeline="ZodPipeline";let ey=I.create,eg=Z.create,ev=(eh.create,R.create,M.create),e_=(D.create,L.create,z.create,F.create,$.create,V.create,U.create,B.create,W.create),ex=H.create,eb=(H.strictCreate,q.create,X.create),ek=(G.create,Y.create,J.create,Q.create,ee.create,et.create,er.create,en.create);ea.create,es.create,eo.create,el.create,eu.create,ec.create,el.createWithPreprocess,em.create;var ew,eT,eC,eS,eE,eO,eN,eP,eA=r(87322),eI=r(1611);let ej=eb("status",[ex({status:ek("unclassified")}),ex({status:ek("published")}),ex({status:ek("release"),release_id:ey()}),ex({status:ek("archived")})]).and(ex({version_id:ey(),tags:e_(ey()),custom_type_label:ey(),preview_summary:ey().optional(),preview_image:ey().optional()})),eZ=ex({id:ey(),custom_type_id:ey(),title:ey(),versions:e_(ej),locale:ey(),group_lang_id:ey()}),eR=ex({total:eg(),cursor:ey().optional(),results:e_(eZ)});function eM(e,t,r,n,i){let a=new URLSearchParams({limit:i.toString(),...t&&{cursor:t}});return(0,eI.WY)(`${e}/documents?${a.toString()}&${n}`,{credentials:(0,eI.xb)(r),okType:eR})}function eD(e){return e.reduce((e,t)=>{let r=t.values.map(e=>[t.name,e]);return e.concat(r)},[])}let eL=ex({id:ey(),name:ey(),is_master:ev()}),ez=ex({simulator_url:ey().url().nullish(),languages:e_(eL).transform(e=>(0,eA.DY)(e,e=>e.name))});function eF(e,t){return(0,eI.WY)(e,{credentials:(0,eI.xb)(t),okType:ez})}},32184:function(e,t,r){"use strict";function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){try{return new URL(e)}catch{return}}function a(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(n).at(0)??""}catch{return""}}r.d(t,{S:function(){return a},j:function(){return i}})},34821:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},79959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=r(34821),s=r(75538);i(r(75538),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?a.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},75538:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(34821),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=o;var l=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=s.ElementType.Directive,n}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var a=e.call(this,n)||this;return a.name=t,a.attribs=r,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function b(e){return e.type===s.ElementType.Root}function k(e,t){if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(_(e))r=new c(e.data);else if(y(e)){var r,n=t?w(e.children):[],i=new m(e.name,a({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),r=i}else if(g(e)){var n=t?w(e.children):[],s=new h(n);n.forEach(function(e){return e.parent=s}),r=s}else if(b(e)){var n=t?w(e.children):[],o=new f(n);n.forEach(function(e){return e.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(x(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function w(e){for(var t=e.map(function(e){return k(e,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=y,t.isCDATA=g,t.isText=v,t.isComment=_,t.isDirective=x,t.isDocument=b,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k},8401:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},58166:function(e){var t,r="html",n="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,o=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h="object"==typeof document?document.createElement("template"):{};h.content&&(t=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,d,p,h,f=e.match(a);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case r:return d=u(e),!s.test(e)&&(p=d.querySelector(n))&&p.parentNode.removeChild(p),!o.test(e)&&(p=d.querySelector(i))&&p.parentNode.removeChild(p),d.querySelectorAll(r);case n:case i:if(h=(d=l(e)).querySelectorAll(c),o.test(e)&&s.test(e))return h[0].parentNode.childNodes;return h;default:if(t)return t(e);return(p=l(e,i).querySelector(i)).childNodes}}},50307:function(e,t,r){var n=r(58166),i=r(41594).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(a);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},41594:function(e,t,r){for(var n,i=r(79959),a=r(8401).CASE_SENSITIVE_TAG_NAMES,s=i.Comment,o=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},d=0,p=a.length;d<p;d++)c[(n=a[d]).toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function f(e){var t,r=c[t=e=e.toLowerCase()];return r||e}t.formatAttributes=h,t.formatDOM=function e(t,r,n){r=r||null;for(var i=[],a=0,c=t.length;a<c;a++){var d,p,m=t[a];switch(m.nodeType){case 1:d=f(m.nodeName),(p=new o(d,h(m.attributes))).children=e("template"===d?m.content.childNodes:m.childNodes,p);break;case 3:p=new u(m.nodeValue);break;case 8:p=new s(m.nodeValue);break;default:continue}var y=i[a-1]||null;y&&(y.next=p),p.parent=r,p.prev=y,p.next=null,i.push(p)}return n&&((p=new l(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},72670:function(e,t,r){var n=r(79959),i=r(50307),a=r(13683),s=r(69239);i="function"==typeof i.default?i.default:i;var o={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:s(i(e,(t=t||{}).htmlparser2||o),t)}l.domToReact=s,l.htmlToDOM=i,l.attributesToProps=a,l.Comment=n.Comment,l.Element=n.Element,l.ProcessingInstruction=n.ProcessingInstruction,l.Text=n.Text,e.exports=l,l.default=l},13683:function(e,t,r){var n=r(18701),i=r(54848),a=["checked","value"],s=["input","select","textarea"],o={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}e.exports=function(e,t){var r,u,c,d,p,h={},f=(e=e||{}).type&&o[e.type];for(r in e){if(c=e[r],n.isCustomAttribute(r)){h[r]=c;continue}if(d=l(u=r.toLowerCase())){switch(p=n.getPropertyInfo(d),-1===a.indexOf(d)||-1===s.indexOf(t)||f||(d=l("default"+u)),h[d]=c,p&&p.type){case n.BOOLEAN:h[d]=!0;break;case n.OVERLOADED_BOOLEAN:""===c&&(h[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(h[r]=c)}return i.setStyleProp(e.style,h),h}},69239:function(e,t,r){var n=r(2784),i=r(13683),a=r(54848),s=a.setStyleProp,o=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var a,u,c,d,p,h=(r=r||{}).library||n,f=h.cloneElement,m=h.createElement,y=h.isValidElement,g=[],v="function"==typeof r.replace,_=r.trim,x=0,b=t.length;x<b;x++){if(a=t[x],v&&y(c=r.replace(a))){b>1&&(c=f(c,{key:c.key||x})),g.push(c);continue}if("text"===a.type){if((u=!a.data.trim().length)&&a.parent&&!o(a.parent)||_&&u)continue;g.push(a.data);continue}switch(d=a.attribs,l(a)?s(d.style,d):d&&(d=i(d,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,r));break;default:continue}b>1&&(d.key=x),g.push(m(a.name,d,p))}return 1===g.length?g[0]:g}},54848:function(e,t,r){var n=r(2784),i=r(91618).default,a={reactCompat:!0},s=n.version.split(".")[0]>=16,o=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var r,n,i="function"==typeof t,a={},s={};for(r in e){if(n=e[r],i&&(a=t(r,n))&&2===a.length){s[a[0]]=a[1];continue}"string"==typeof n&&(s[n]=r)}return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(r){t.style={}}},canTextBeChildOfNode:function(e){return!o.has(e.name)},elementsWithNoTextChildren:o}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(r);t&&(c+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}f.prototype.content=e;var m=[];function y(t){var r=Error(l.source+":"+c+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=c,r.column=d,r.source=e,l.silent)m.push(r);else throw r}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function v(){g(n)}function _(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return d+=2,p(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function b(){var e=h(),r=g(i);if(r){if(x(),!g(a))return y("property missing ':'");var n=g(s),l=e({type:"declaration",property:u(r[0].replace(t,"")),value:n?u(n[0].replace(t,"")):""});return g(o),l}}return v(),function(){var e,t=[];for(_(t);e=b();)!1!==e&&(t.push(e),_(t));return t}()}},18701:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){a[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t,r,s=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(l){o=!0,n=l}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e,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.")}(),o=s[0],l=s[1];a[o]=new i(o,1,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){a[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var s=/[\-\:]([a-z])/g,o=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=r(52558),u=l.CAMELCASE,c=l.SAME,d=l.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce(function(e,t){var r=d[t];return r===c?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=h},52558:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},91618:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(85653)),a=r(31380);t.default=function(e,t){var r={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,n){e&&n&&(r[(0,a.camelCase)(e,t)]=n)}),r}},31380:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")},u=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||r.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(n,o))};t.camelCase=u},85653:function(e,t,r){var n=r(6299);function i(e,t){var r,i,a,s=null;if(!e||"string"!=typeof e)return s;for(var o=n(e),l="function"==typeof t,u=0,c=o.length;u<c;u++)i=(r=o[u]).property,a=r.value,l?t(i,a,r):a&&(s||(s={}),s[i]=a);return s}e.exports=i,e.exports.default=i},86741:function(e,t,r){"use strict";r.d(t,{W_:function(){return a},du:function(){return i}});var n=r(72670),i=n.domToReact;n.htmlToDOM,n.attributesToProps,n.Comment;var a=n.Element;n.ProcessingInstruction,n.Text,t.ZP=n},33402:function(e,t,r){"use strict";function n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{Z:function(){return n}})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[759],{45662:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lib]/[sliceName]/[variation]",function(){return t(18363)}])},61931:function(e,n,t){"use strict";t.d(n,{q:function(){return u}});var i=t(62230),r=t(52322),o=t(2784),a=t(75289),l=t(65186),s=(0,o.memo)(function(e){var n=e.src;return(0,r.jsx)(a.Ee,{src:n,alt:"Preview image",sx:{maxHeight:"100%"}})}),u=function(e){var n=e.hideMissingWarning,t=e.src,o=e.sx;return(0,r.jsx)(a.kC,{sx:(0,i.Z)({position:"relative",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundImage:"url(/pattern.png)",backgroundColor:"headSection",backgroundRepeat:"repeat",backgroundSize:"20px",borderRadius:"4px"},o),children:void 0!==n&&n?null:(0,r.jsx)(r.Fragment,{children:void 0!==t?(0,r.jsx)(s,{src:t}):(0,r.jsxs)(a.xv,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,r.jsx)(l.eJU,{}),"You have no screenshot yet."]})})})}},38986:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(62230),r=t(52322),o=t(2784),a=t(19909),l=t(75289),s=function(e){var n=e.defaultValue,t=e.variations,i=e.MenuItemAction,o=e.onChange;return(0,r.jsxs)(l.xu,{sx:{py:0,flexDirection:"column",backgroundColor:"headSection",overflow:"auto",display:"flex",borderRadius:"4px",border:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)},boxShadow:"0 10px 10px rgba(0, 0, 0, 0.05)",maxHeight:340,minWidth:250,maxWidth:350,color:"text"},children:[(0,r.jsxs)(l.xv,{sx:{p:3,fontSize:12,color:"textClear"},children:[t.length," VARIATION",t.length>1?"S":""]}),(0,r.jsxs)(l.kC,{sx:{p:0,flexDirection:"column"},children:[t.map(function(e){return(0,r.jsx)(u,{value:e,isActive:e.id===n.id,onClick:o},e.id)}),i||null]})]})},u=function(e){var n=e.value,t=e.isActive,i=e.onClick;return(0,r.jsx)(l.xu,{sx:{px:3,py:2,color:t?"primary":"",cursor:"pointer",borderLeft:function(e){var n=e.colors;return"2px solid ".concat(t?null==n?void 0:n.primary:null==n?void 0:n.background)},borderRadius:0,bg:"background",":hover":{bg:"hoverBackground",borderLeft:function(e){var n=e.colors;return"2px solid ".concat(null==n?void 0:n.primary)}}},onClick:function(){return i(n)},children:n.name})},c=t(75100),d=function(e){var n=e.buttonSx,t=e.defaultValue,u=e.variations,d=e.onNewVariation,f=e.onChange,p=e.sx,v=e.disabled,h=(0,o.useState)(!1),x=h[0],m=h[1],b=(0,o.useState)(t||u[0]),g=b[0],y=b[1];(0,o.useEffect)(function(){t&&y(t)},[t]);var j=function(e){m(!1),y(e),setTimeout(function(){return f(e)},210)},S=(0,r.jsx)(l.xu,{sx:{p:2},children:(0,r.jsx)(l.zx,{variant:"transparent",sx:{color:"text"},onClick:function(){m(!1),d&&d()},children:"+ Add new variation"})});return(0,r.jsx)(l.xu,{sx:p,children:(0,r.jsx)(a.Popover,{align:"start",isOpen:x,onClickOutside:function(){return m(!1)},positions:["bottom"],padding:10,content:function(){return(0,r.jsx)(s,{defaultValue:g,variations:u,onChange:j,MenuItemAction:d?S:void 0})},containerClassName:"variationSelectorContainer",children:(0,r.jsxs)(l.zx,{sx:(0,i.Z)({},n),variant:"dropDownButton",onClick:function(){return m(!x)},disabled:v,children:[g.name," ",x?(0,r.jsx)(c.bOz,{size:"16px","aria-label":"Collapse variations"}):(0,r.jsx)(c.mEq,{size:"16px","aria-label":"Expand variations"})]})})})}},25474:function(e,n,t){"use strict";function i(e){var n=e.lib,t=e.sliceName,i=e.variationId,r=e.options,o=void 0===r?{}:r,a=e.isSimulator,l="/[lib]/[sliceName]/[variation]".concat(a?"/simulator":""),s="/".concat(n,"/").concat(t,"/").concat(i).concat(a?"/simulator":"");return{href:l,as:s,options:o,all:[l,s,o]}}t.d(n,{P:function(){return i}})},18363:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eS}});var i=t(52322),r=t(97729),o=t.n(r),a=t(62230),l=t(10873),s=t(2784),u=t(57282),c=t(65077),d=t(75289),f=t(47560),p=t(38876),v=t(96377),h=t(4092),x=t(2353),m=t(44384),b=t(90374),g=t(53559),y=function(e){var n=e.variation,t=(0,b.Z)(),r=t.addSliceWidget,o=t.replaceSliceWidget,a=t.reorderSliceWidget,l=t.removeSliceWidget,s=t.updateSliceWidgetMock,u=t.deleteSliceWidgetMock,c=function(e){return function(t){u(n.id,e,t),l(n.id,e,t)}},y=function(e){return function(t){var i=t.apiId,r=t.newKey,a=t.value,l=t.mockValue;l?s(n.id,e,i,r,l):u(n.id,e,r),o(n.id,e,i,r,a)}},j=function(e){return function(t){var i=t.id,o=t.label,a=t.widgetTypeName,l=x[a];l||console.log('Could not find widget with type name "'.concat(a,'". Please contact us!')),r(n.id,e,i,l.create(o))}},S=function(e){return function(t){var i,r;(0,f.uS)(t)||a(n.id,e,t.source.index,null!==(r=null===(i=t.destination)||void 0===i?void 0:i.index)&&void 0!==r?r:void 0)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.Z,{zoneType:"slice",tabId:void 0,title:"Non-Repeatable Zone",dataTip:" The non-repeatable zone\n is for fields<br/> that should appear once, like a<br/>\n section title.\n",fields:n.primary,EditModal:h.Z,widgetsArray:m.Z,onDeleteItem:c(g.Rt.Primary),onSave:y(g.Rt.Primary),onSaveNewField:j(g.Rt.Primary),onDragEnd:S(g.Rt.Primary),poolOfFieldsToCheck:n.primary||[],renderHintBase:function(e){var n=e.item;return"slice.primary".concat((0,p.Ti)(n.key))},renderFieldAccessor:function(e){return"slice.primary".concat((0,p.Ti)(e))},dataCy:"slice-non-repeatable-zone",isRepeatableCustomType:void 0}),(0,i.jsx)(d.xu,{mt:4}),(0,i.jsx)(v.Z,{zoneType:"slice",tabId:void 0,isRepeatable:!0,title:"Repeatable Zone",dataTip:"The repeatable zone is for a group<br/>\n of fields that you want to be able to repeat an<br/>\n indeterminate number of times, like FAQs",widgetsArray:m.Z,fields:n.items,EditModal:h.Z,onDeleteItem:c(g.Rt.Items),onSave:y(g.Rt.Items),onSaveNewField:j(g.Rt.Items),onDragEnd:S(g.Rt.Items),poolOfFieldsToCheck:n.items||[],renderHintBase:function(e){var n=e.item;return"item".concat((0,p.Ti)(n.key))},renderFieldAccessor:function(e){return"slice.items[i]".concat((0,p.Ti)(e))},dataCy:"slice-repeatable-zone",isRepeatableCustomType:void 0})]})},j=t(54132),S=t(39295),k=t(61931),w=t(84449),C=t(47731),T=t(56577),Z=t(951),R=t(33710),E=function(){return(0,i.jsx)(S.X,{children:(0,i.jsx)(R.Z,{clickable:!0,place:"bottom",effect:"solid",delayHide:500,id:"update-screenshot-button-tooltip",children:"Save your work in order to update the screenshot"})})},I=function(e){var n,t=e.component,r=e.variation,o=e.isTouched,a=t.screenshots,l=(0,C.H)().openScreenshotsModal;return(0,i.jsxs)(d.xu,{children:[(0,i.jsx)(j.Z,{bg:"headSection",bodySx:{p:0},Footer:function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.kC,{"data-tip":!0,"data-tip-disable":!1,"data-for":"update-screenshot-button-tooltip",sx:{width:"fit-content"},children:(0,i.jsx)(T.z,{onClick:l,variant:"secondarySmall",sx:{fontWeight:"bold"},Icon:Z.rJU,iconFill:"#1A1523",label:"Update screenshot",disabled:o})}),o&&(0,i.jsx)(E,{})]})},footerSx:{padding:2},sx:{overflow:"hidden"},children:(0,i.jsx)(k.q,{src:null===(n=a[r.id])||void 0===n?void 0:n.url,sx:{height:"198px",borderBottom:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)},borderRadius:"4px 4px 0 0"}})}),(0,i.jsx)(w.Z,{slices:[t],defaultVariationSelector:{sliceID:t.model.id,variationID:r.id}})]})},L=t(81541),A=t(22710),z=t(85244),F=t(99267),V=t(55658),N=t(63397),O=t(25812),P=function(e){var n=e.children,t=e.FooterContent,r=e.HeaderContent,o=e.close,l=e.sx,s=e.headerSx,u=void 0===s?{}:s;return(0,i.jsx)(j.Z,{borderFooter:!0,footerSx:{p:0},bodySx:{pt:2,pb:4,px:4},sx:(0,a.Z)({border:"none"},void 0===l?{}:l),Header:function(e){var n=e.radius;return(0,i.jsxs)(d.kC,{sx:(0,a.Z)({p:3,pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)}},u),children:[r,o?(0,i.jsx)(d.x8,{onClick:o,type:"button"}):null]})},Footer:t?(0,i.jsxs)(d.kC,{sx:{alignItems:"space-between",bg:"headSection",p:3},children:[(0,i.jsx)(d.xu,{sx:{ml:"auto"}}),t]}):null,children:n})},_=t(36131),M=function(e){var n=e.msg;return(0,i.jsx)(d.xv,{as:"span",sx:{fontSize:12,color:"error",mt:"5px",ml:2},children:n||"Error!"})},D=function(e){var n=e.isOpen,t=e.onClose,r=e.onSubmit,o=e.initialVariation,l=e.variations,u=function(e){var n=e.id,t=e.name,i=e.origin,r=n&&n.length?null:{id:"Required!"},o=l.find(function(e){return e.id===n})?{id:"This id already exists!"}:null,s=t&&t.length?null:{name:"Required!"},u=i.value.length&&l.find(function(e){return e.id===i.value})?null:{id:"Yuu must select an existing variation!"},c=n&&n.length&&!/^[A-Za-z0-9]+([A-Za-z0-9]+)*$/.exec(n)&&{id:"No special characters allowed"};return(0,a.Z)({},r,o,s,u,c)},c=function(e){j(V.e.generateId(e))},f=function(e){Z(e),k&&c(e)},p=function(e){w(!1),c(e)},v=function(){h(),t()},h=function(){j(""),Z(""),b({}),w(!0),I({value:o.id,label:o.name})},x=(0,s.useState)({}),m=x[0],b=x[1],g=(0,s.useState)(""),y=g[0],j=g[1],S=(0,s.useState)(!0),k=S[0],w=S[1],C=(0,s.useState)(""),T=C[0],Z=C[1],R=(0,s.useState)({value:o.id,label:o.name}),E=R[0],I=R[1];function L(){return D.apply(this,arguments)}function D(){return(D=(0,A.Z)(function(){var e,n;return(0,F.__generator)(this,function(t){return Object.keys(e=u({id:y,name:T,origin:E})).length?b(e):(n=l.find(function(e){return e.id===E.value}))&&(r(y,T,n),v()),[2]})})).apply(this,arguments)}return(0,s.useEffect)(function(){h()},[o,n]),(0,i.jsx)(O.Z,{isOpen:n,shouldCloseOnOverlayClick:!0,onRequestClose:function(){return v()},contentLabel:"Widget Form Modal",style:{content:{maxWidth:"700px"}},children:(0,i.jsx)(N.J9,{initialValues:{id:y,name:T,origin:E},onSubmit:L,children:(0,i.jsx)(N.l0,{id:"variation-add",onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),L())},children:(0,i.jsx)(d.xu,{children:(0,i.jsxs)(P,{sx:{textAlign:"left"},HeaderContent:(0,i.jsx)(d.xv,{as:"h2",children:"Add new Variation"}),FooterContent:(0,i.jsxs)(d.kC,{sx:{justifyContent:"flex-end"},children:[(0,i.jsx)(d.zx,{onClick:v,mr:2,variant:"secondary",children:"Cancel"}),(0,i.jsx)(d.zx,{type:"submit",children:"Submit"})]}),close:v,children:[(0,i.jsxs)(d.xu,{sx:{pb:4,mt:4},children:[(0,i.jsxs)(d.__,{htmlFor:"name",sx:{mb:1},children:["Variation name*",m.name?(0,i.jsx)(M,{msg:m.name}):""]}),(0,i.jsx)(N.gN,{autoComplete:"off",id:"name",name:"name",placeholder:"e.g. Grid - With Icon",as:d.II,maxLength:30,value:T,onChange:function(e){return f(e.currentTarget.value)}}),(0,i.jsx)(d.xv,{children:"It will appear here in Slice Machine, and in the page editor in Prismic"})]}),(0,i.jsxs)(d.xu,{sx:{pb:4},children:[(0,i.jsxs)(d.__,{htmlFor:"id",sx:{mb:1},children:["Variation ID*",m.id?(0,i.jsx)(M,{msg:m.id}):""]}),(0,i.jsx)(N.gN,{autoComplete:"off",id:"id",name:"id",placeholder:"e.g. GridWithIcon",as:d.II,maxLength:30,value:y,onChange:function(e){return p(e.currentTarget.value)}}),(0,i.jsx)(d.xv,{children:"It's generated automatically based on the variation name and will appear in the API responses."})]}),(0,i.jsxs)(d.xu,{sx:{pb:4},children:[(0,i.jsx)(d.__,{htmlFor:"origin",sx:{mb:1},children:"Duplicate from"}),(0,i.jsx)(_.ZP,{name:"origin",options:l.map(function(e){return{value:e.id,label:e.name}}),onChange:function(e){e&&I(e)},defaultValue:E,maxMenuHeight:150,theme:function(e){return(0,z.Z)((0,a.Z)({},e),{colors:(0,z.Z)((0,a.Z)({},e.colors),{text:"text",primary:"background"})})}})]})]})})})})})},W=t(5632),H=t(25474),q=t(38986),K=function(e){var n,t=e.component,r=e.variation,o=(0,W.useRouter)(),a=(0,s.useState)(!1),l=a[0],u=a[1],c=(0,b.Z)().copyVariationSlice;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.kC,{children:[(0,i.jsx)(q.Z,{defaultValue:r,variations:t.model.variations,onNewVariation:function(){return u(!0)},onChange:function(e){(n=o).push.apply(n,(0,L.Z)(H.P({lib:t.href,sliceName:t.model.name,variationId:e.id}).all))}}),(0,i.jsx)(d.xu,{ml:2,children:(0,i.jsxs)(d.xv,{variant:"xs",children:["Variation id : ",r.id]})})]}),(0,i.jsx)(D,{isOpen:l,onClose:function(){return u(!1)},onSubmit:function(e,n,i){c(e,n,i),o.push.apply(o,(0,L.Z)(H.P({lib:t.href,sliceName:t.model.name,variationId:e}).all))},initialVariation:r,variations:t.model.variations})]})},B=t(56580),J=t(25251),X=t(75329),G=t(42189),U=t(17036),Q=t(82770),Y=t(2352),$=function(){return(0,i.jsx)(S.X,{children:(0,i.jsxs)(R.Z,{clickable:!0,place:"bottom",effect:"solid",delayHide:500,id:"simulator-button-tooltip",children:[(0,i.jsx)(d.xv,{as:"b",children:"Framework not supported"}),(0,i.jsx)(d.xv,{as:"p",children:"Slice Simulator does not support your framework yet."})]})})},ee=function(e){var n=e.children,t=e.open,r=e.onClose;return(0,i.jsxs)(Y.zs,{open:t,trigger:n,onClose:r,children:[(0,i.jsx)(Y.Ev,{children:"Simulate your slices"}),(0,i.jsx)(Y.LB,{component:"video",cloudName:"dmtf1daqp",loop:!1,autoPlay:!1,publicId:X.Sn,poster:"/simulator-video-thumbnail.png",controls:!0,onPlay:function(){Q.Xe.track({event:"open-video-tutorials",video:X.Sn})}}),(0,i.jsx)(Y.OJ,{children:"Minimize context-switching by previewing your Slice components in the simulator."}),(0,i.jsx)(Y.Rp,{children:"Got It"})]})},en=function(){return(0,i.jsx)(S.X,{children:(0,i.jsx)(R.Z,{clickable:!0,place:"bottom",effect:"solid",delayHide:500,id:"simulator-button-tooltip",children:"Save your work in order to simulate"})})},et=function(e){var n=e.isSimulatorAvailableForFramework,t=e.isTouched,r=(0,W.useRouter)(),o=(0,s.useRef)(null),a=(0,b.Z)().setSeenSimulatorToolTip,u=(0,B.v9)(function(e){return{hasSeenSimulatorTooltip:(0,U.bv)(e),hasSeenTutorialsToolTip:(0,U.ER)(e)}}),c=u.hasSeenSimulatorTooltip,d=u.hasSeenTutorialsToolTip;(0,s.useEffect)(function(){var e=o.current;e&&n&&!c&&d&&setTimeout(function(){return R.Z.show(e)},5e3)},[n,c,d,]);var f=function(){if(a(),o.current){var e=o.current;R.Z.hide(e)}},p=n&&!c&&d;return(0,i.jsxs)("span",{"data-tip":!0,"data-tip-disable":!1,"data-for":"simulator-button-tooltip",ref:o,children:[(0,i.jsx)(ee,{open:p,onClose:f,children:(0,i.jsx)(l.zx,{"data-tip":!0,"data-testid":"simulator-open-button",onClick:function(){f(),window.open("".concat(r.asPath,"/simulator"),X.pq)},disabled:!n||t,renderStartIcon:function(){return(0,i.jsx)(G.z,{height:l.TV.size[20],style:{transform:"scale(calc(4 / 3))"},width:l.TV.size[20]})},variant:"secondary",children:"Simulate"})}),!1===n?(0,i.jsx)($,{}):n&&!1===p&&t?(0,i.jsx)(en,{}):null]})},ei=t(17329),er=t(40147);function eo(e){return ea.apply(this,arguments)}function ea(){return(ea=(0,A.Z)(function(e){var n,t,i;return(0,F.__generator)(this,function(r){switch(r.label){case 0:return[4,er.j.customTypes.readCustomType({id:e})];case 1:if(t=(n=r.sent()).errors,i=n.model,t.length>0)throw t;return[2,i]}})})).apply(this,arguments)}var el=t(67445),es=t(64722),eu=t(20812),ec=function(e){return(0,i.jsxs)("svg",(0,z.Z)((0,a.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,i.jsx)("path",{d:"M9.5 12L6 9.5L9.5 7V9.5V12Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6 9.5H11C14.3 9.5 17 12.2 17 15.5V17.5M6 9.5L9.5 12V9.5V7L6 9.5Z",stroke:"currentColor",strokeLinecap:"round"})]}))},ed=function(){var e,n,t=(e=(0,es.l)().source,n=(0,el.Ag)(e.query),void 0!==n&&(0,el.ne)(e.asPath,n)?n:void 0);return void 0!==t?(0,i.jsx)(l.SV,{children:(0,i.jsx)(s.Suspense,{children:(0,i.jsx)(l.xu,{bottom:32,justifyContent:"center",position:"fixed",right:0,width:"100vw",children:(0,i.jsx)(ef,{sourceCustomTypeId:t})})})}):null},ef=function(e){var n,t=(n=e.sourceCustomTypeId,(0,ei.QT)(eo,[n])),r=(0,s.useState)(!0),o=r[0],a=r[1],u=(0,W.useRouter)();if(void 0===t||!o)return null;var c=t.format,d=t.id,f=el.cd[c].getBuilderPagePathname(d);return(0,i.jsxs)(l.hE,{density:"compact",variant:"tertiary",children:[(0,i.jsxs)(l.zx,{onClick:function(){u.push(f)},renderStartIcon:function(){return(0,i.jsx)(ec,{height:l.TV.size[20],width:l.TV.size[20]})},children:["Return to ",t.label]}),(0,i.jsx)(l.zx,{onClick:function(){a(!1)},renderStartIcon:function(){return(0,i.jsx)(eu.T,{height:l.TV.size[20],width:l.TV.size[20]})}})]})},ep=t(39092),ev=t(92521),eh=t(75992),ex=t(71685),em={imageLoading:!1,loading:!1,done:!1,error:null,status:null},eb=function(e){var n=e.slice,t=e.variation,r=(0,b.Z)(),o=r.openToaster,a=r.updateSlice,l=(0,B.v9)(function(e){return{isTouched:(0,ev.sY)(e,n.from,n.model.id),remoteSlice:(0,eh.O_)(e,n.model.id)}}),c=l.isTouched,d=l.remoteSlice,f=(0,s.useState)(em),p=f[0],v=f[1];return((0,s.useEffect)(function(){c&&v(em)},[c]),(0,s.useEffect)(function(){if(p.done){var e,n;n=p,n.done&&o(n.message,n.error?u.Jf.ERROR:n.warning?u.Jf.WARNING:u.Jf.SUCCESS)}},[p]),t)?(0,i.jsx)(eg,{updateSlice:a.bind(null,n,v),slice:n,variation:t,remoteSlice:d,isTouched:c,data:p}):(0,i.jsx)(J.LN,{})},eg=function(e){var n=e.updateSlice,t=e.slice,r=e.variation,o=e.remoteSlice,s=e.isTouched,u=e.data,f=(0,B.v9)(function(e){return{isSimulatorAvailableForFramework:(0,ep.Ql)(e)}}).isSimulatorAvailableForFramework,p=(0,a.Z)({local:t.model,localScreenshots:t.screenshots},o?{remote:o}:{}),v=(0,ex.J)({slices:[p]}).modelsStatuses;return(0,i.jsxs)(J.LN,{children:[(0,i.jsxs)(J.wd,{children:[(0,i.jsx)(J.Xq,{url:"/slices"}),(0,i.jsx)(J.Cx,{folder:"Slices",page:t.model.name}),(0,i.jsxs)(J.K2,{children:[(0,i.jsx)(et,{isSimulatorAvailableForFramework:f,isTouched:!!s}),(0,i.jsx)(l.zx,{loading:u.loading,disabled:!s||u.loading,onClick:n,"data-cy":"builder-save-button",children:"Save"})]})]}),(0,i.jsxs)(J.RN,{children:[(0,i.jsxs)(c.xR,{children:[(0,i.jsx)(K,{component:t,status:v.slices[t.model.id],variation:r,imageLoading:u.imageLoading}),(0,i.jsxs)(d.rj,{columns:"1fr 320px",gap:"16px",sx:{pt:4},children:[(0,i.jsx)(d.xu,{children:(0,i.jsx)(y,{variation:r})}),(0,i.jsx)(I,{component:t,variation:r,isTouched:s})]})]}),(0,i.jsx)(ed,{})]})]})},ey=t(28684),ej=(0,t(57880).y)(eb);function eS(){var e=(0,ey.Z)().slice;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:e?(0,i.jsxs)("title",{children:[e.model.name," - Slice Machine"]}):null}),(0,i.jsx)(ej,{})]})}},28684:function(e,n,t){"use strict";var i=t(92521),r=t(90374),o=t(5632),a=t(2784),l=t(56580),s=function(){var e=(0,o.useRouter)(),n=(0,r.Z)().initSliceStore,t=(0,l.v9)(function(n){return{slice:(0,i.tL)(n,e.query.lib,e.query.sliceName)}}).slice;if((0,a.useEffect)(function(){t?n(t):e.replace("/")},[n,t,e]),!t)return{};var s=t.model.variations.find(function(n){return n.id===e.query.variation});return s?{slice:t,variation:s}:(e.replace("/"),{})};n.Z=s},57880:function(e,n,t){"use strict";t.d(n,{y:function(){return l}});var i=t(62230),r=t(52322);t(2784);var o=t(28684),a=t(95583),l=function(e){return function(n){var t=n.pageProps,l=(0,o.Z)(),s=l.slice,u=l.variation;return s&&u?(0,r.jsx)(e,(0,i.Z)({slice:s,variation:u},t)):((0,a.gx)("/"),null)}}},76473:function(e,n,t){"use strict";t.d(n,{y1:function(){return y}});var i=t(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}t(52322);var o=["shift","alt","meta","mod","ctrl"],a={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function l(e){return(a[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function s(e,n){return void 0===n&&(n=","),e.split(n)}function u(e,n,t){void 0===n&&(n="+");var i,a=e.toLocaleLowerCase().split(n).map(function(e){return l(e)});return r({},{alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod")},{keys:a.filter(function(e){return!o.includes(e)}),description:t})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&f([l(e.key),l(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&p([l(e.key),l(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){c.clear()});var c=new Set;function d(e){return Array.isArray(e)}function f(e){var n=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(function(e){var n;return!o.includes(e)&&c.delete(e.toLowerCase())}),n.forEach(function(e){return c.add(e.toLowerCase())})}function p(e){var n=Array.isArray(e)?e:[e];"meta"===e?c.clear():n.forEach(function(e){return c.delete(e.toLowerCase())})}function v(e,n){var t=e.target;void 0===n&&(n=!1);var i=t&&t.tagName;return d(n)?Boolean(i&&n&&n.some(function(e){return e.toLowerCase()===i.toLowerCase()})):Boolean(i&&n&&!0===n)}var h=function(e,n,t){void 0===t&&(t=!1);var i,r,o=n.alt,a=n.meta,s=n.mod,u=n.shift,f=n.ctrl,p=n.keys,v=e.key,h=e.code,x=e.ctrlKey,m=e.metaKey,b=e.shiftKey,g=e.altKey,y=l(h),j=v.toLowerCase();if(!t){if(!g===o&&"alt"!==j||!b===u&&"shift"!==j)return!1;if(s){if(!m&&!x)return!1}else if(!m===a&&"meta"!==j&&"os"!==j||!x===f&&"ctrl"!==j&&"control"!==j)return!1}return!!(p&&1===p.length&&(p.includes(j)||p.includes(y)))||(p?(void 0===r&&(r=","),(d(i=p)?i:i.split(r)).every(function(e){return c.has(e.trim().toLowerCase())})):!p)},x=(0,i.createContext)(void 0),m=(0,i.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),b=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},g="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function y(e,n,t,r){var o,a,c=(0,i.useRef)(null),y=(0,i.useRef)(!1),j=t instanceof Array?r instanceof Array?void 0:r:t,S=d(e)?e.join(null==j?void 0:j.splitKey):e,k=t instanceof Array?t:r instanceof Array?r:void 0,w=(0,i.useCallback)(n,null!=k?k:[]),C=(0,i.useRef)(w);k?C.current=w:C.current=n;var T=(!function e(n,t){return n&&t&&"object"==typeof n&&"object"==typeof t?Object.keys(n).length===Object.keys(t).length&&Object.keys(n).reduce(function(i,r){return i&&e(n[r],t[r])},!0):n===t}((a=(0,i.useRef)(void 0)).current,j)&&(a.current=j),a.current),Z=(0,i.useContext)(m).enabledScopes,R=(0,i.useContext)(x);return g(function(){if((null==T?void 0:T.enabled)!==!1&&(e=Z,n=null==T?void 0:T.scopes,0===e.length&&n?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!n||e.some(function(e){return n.includes(e)})||e.includes("*")))){var e,n,t=function(e,n){var t,i;if(void 0===n&&(n=!1),!(v(e,["input","textarea","select"])&&!v(e,null==T?void 0:T.enableOnFormTags)||null!=T&&null!=T.ignoreEventWhen&&T.ignoreEventWhen(e))){if(null!==c.current&&document.activeElement!==c.current&&!c.current.contains(document.activeElement)){b(e);return}(null==(t=e.target)||!t.isContentEditable||null!=T&&T.enableOnContentEditable)&&s(S,null==T?void 0:T.splitKey).forEach(function(t){var i,r,o,a,l,s,c,d=u(t,null==T?void 0:T.combinationKey);if(h(e,d,null==T?void 0:T.ignoreModifiers)||null!=(c=d.keys)&&c.includes("*")){if(n&&y.current)return;if(i=e,r=d,("function"==typeof(o=null==T?void 0:T.preventDefault)&&o(i,r)||!0===o)&&i.preventDefault(),a=e,l=d,"function"==typeof(s=null==T?void 0:T.enabled)?!s(a,l):!0!==s&&void 0!==s){b(e);return}C.current(e,d),n||(y.current=!0)}})}},i=function(e){void 0!==e.key&&(f(l(e.code)),((null==T?void 0:T.keydown)===void 0&&(null==T?void 0:T.keyup)!==!0||null!=T&&T.keydown)&&t(e))},r=function(e){void 0!==e.key&&(p(l(e.code)),y.current=!1,null!=T&&T.keyup&&t(e,!0))},o=c.current||(null==j?void 0:j.document)||document;return o.addEventListener("keyup",r),o.addEventListener("keydown",i),R&&s(S,null==T?void 0:T.splitKey).forEach(function(e){return R.addHotkey(u(e,null==T?void 0:T.combinationKey,null==T?void 0:T.description))}),function(){o.removeEventListener("keyup",r),o.removeEventListener("keydown",i),R&&s(S,null==T?void 0:T.splitKey).forEach(function(e){return R.removeHotkey(u(e,null==T?void 0:T.combinationKey,null==T?void 0:T.description))})}}},[S,T,Z]),c}}},function(e){e.O(0,[789,909,573,377,774,888,179],function(){return e(e.s=45662)}),_N_E=e.O()}]);