1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,646818,e=>{"use strict";var t=e.i(255403);let r=(0,t.createServerReference)("00b179365f9ffe73abf8f76a8168999dc33e477b3d",t.callServer,void 0,t.findSourceMapURL,"revalidateAccountAfterQuitPlanChange");e.s(["revalidateAccountAfterQuitPlanChange",0,r])},111773,e=>{"use strict";let t=e=>!!(e.selectedTips&&e.selectedTips.length>0||e.questions&&e.questions.some(e=>(e.answers?.length??0)>0))||!!e.selectedBasicTiles&&!!(e.selectedBasicTiles.length>0)||void 0!==e.addictionLevelInfo;e.s(["hasAnswerContent",0,t,"planHasRecordedAnswer",0,e=>Object.values(e).some(t)])},276,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BLOCKS",{enumerable:!0,get:function(){return i}});var n,i=((n={}).DOCUMENT="document",n.PARAGRAPH="paragraph",n.HEADING_1="heading-1",n.HEADING_2="heading-2",n.HEADING_3="heading-3",n.HEADING_4="heading-4",n.HEADING_5="heading-5",n.HEADING_6="heading-6",n.OL_LIST="ordered-list",n.UL_LIST="unordered-list",n.LIST_ITEM="list-item",n.HR="hr",n.QUOTE="blockquote",n.EMBEDDED_ENTRY="embedded-entry-block",n.EMBEDDED_ASSET="embedded-asset-block",n.EMBEDDED_RESOURCE="embedded-resource-block",n.TABLE="table",n.TABLE_ROW="table-row",n.TABLE_CELL="table-cell",n.TABLE_HEADER_CELL="table-header-cell",n)},882715,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INLINES",{enumerable:!0,get:function(){return i}});var n,i=((n={}).ASSET_HYPERLINK="asset-hyperlink",n.EMBEDDED_ENTRY="embedded-entry-inline",n.EMBEDDED_RESOURCE="embedded-resource-inline",n.ENTRY_HYPERLINK="entry-hyperlink",n.HYPERLINK="hyperlink",n.RESOURCE_HYPERLINK="resource-hyperlink",n)},843029,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"MARKS",{enumerable:!0,get:function(){return i}});var n,i=((n={}).BOLD="bold",n.ITALIC="italic",n.UNDERLINE="underline",n.CODE="code",n.SUPERSCRIPT="superscript",n.SUBSCRIPT="subscript",n.STRIKETHROUGH="strikethrough",n)},273918,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={get CONTAINERS(){return m},get HEADINGS(){return y},get LIST_ITEM_BLOCKS(){return p},get TABLE_BLOCKS(){return f},get TEXT_CONTAINERS(){return g},get TOP_LEVEL_BLOCKS(){return d},get V1_MARKS(){return b},get V1_NODE_TYPES(){return v},get VOID_BLOCKS(){return h}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:Object.getOwnPropertyDescriptor(n,i).get});var a,s=e.r(276),o=e.r(882715),l=e.r(843029);function u(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 c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE,s.BLOCKS.TABLE],p=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],f=[s.BLOCKS.TABLE,s.BLOCKS.TABLE_ROW,s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL],h=[s.BLOCKS.HR,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],m=(c(a={},s.BLOCKS.OL_LIST,[s.BLOCKS.LIST_ITEM]),c(a,s.BLOCKS.UL_LIST,[s.BLOCKS.LIST_ITEM]),c(a,s.BLOCKS.LIST_ITEM,p),c(a,s.BLOCKS.QUOTE,[s.BLOCKS.PARAGRAPH]),c(a,s.BLOCKS.TABLE,[s.BLOCKS.TABLE_ROW]),c(a,s.BLOCKS.TABLE_ROW,[s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL]),c(a,s.BLOCKS.TABLE_CELL,[s.BLOCKS.PARAGRAPH,s.BLOCKS.UL_LIST,s.BLOCKS.OL_LIST]),c(a,s.BLOCKS.TABLE_HEADER_CELL,[s.BLOCKS.PARAGRAPH]),a),y=[s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6],g=[s.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return u(e)}(y)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(y)||function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,void 0)}}(y)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=[s.BLOCKS.DOCUMENT,s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.LIST_ITEM,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,o.INLINES.HYPERLINK,o.INLINES.ENTRY_HYPERLINK,o.INLINES.ASSET_HYPERLINK,o.INLINES.EMBEDDED_ENTRY,"text"],b=[l.MARKS.BOLD,l.MARKS.CODE,l.MARKS.ITALIC,l.MARKS.UNDERLINE]},41645,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0})},26061,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},333925,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return i}});var n=e.r(276),i={nodeType:n.BLOCKS.DOCUMENT,data:{},content:[{nodeType:n.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}},335266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={get isBlock(){return u},get isEmptyParagraph(){return d},get isInline(){return l},get isText(){return c},get stripEmptyTrailingParagraphFromDocument(){return p}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:Object.getOwnPropertyDescriptor(n,i).get});var a=e.r(276),s=e.r(882715);function o(e,t){var r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(t===e[o])return!0}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1}function l(e){return o(s.INLINES,e.nodeType)}function u(e){return o(a.BLOCKS,e.nodeType)}function c(e){return"text"===e.nodeType}function d(e){if(e.nodeType!==a.BLOCKS.PARAGRAPH||1!==e.content.length)return!1;var t=e.content[0];return"text"===t.nodeType&&""===t.value}function p(e){var t,r;return!(null!=e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"content"in e&&Array.isArray(e.content))||e.content.length<2?e:d(e.content[e.content.length-1])?(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={content:e.content.slice(0,-1)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t):e}},422865,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={get enumError(){return u},get maxSizeError(){return l},get minSizeError(){return o},get requiredPropertyError(){return d},get typeMismatchError(){return s},get unknownPropertyError(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:Object.getOwnPropertyDescriptor(n,i).get});function a(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}var s=function(e){var t=e.path,r=e.property,n=e.typeName,i=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:i}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},l=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},u=function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:((function(e){if(Array.isArray(e))return a(e)})(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(),path:n.toArray(),value:r}},c=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},d=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}},806449,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ObjectAssertion",{enumerable:!0,get:function(){return u}});var n,i=(n=e.r(383410))&&n.__esModule?n:{default:n},a=e.r(422865);function s(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 o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(){var e;function t(e,r){var n=this,s=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");o(this,"obj",void 0),o(this,"path",void 0),o(this,"_errors",void 0),o(this,"catch",void 0),o(this,"exists",void 0),o(this,"object",void 0),o(this,"string",void 0),o(this,"number",void 0),o(this,"array",void 0),o(this,"enum",void 0),o(this,"empty",void 0),o(this,"minLength",void 0),o(this,"noAdditionalProperties",void 0),o(this,"each",void 0),this.obj=e,this.path=r,this._errors=[],this.catch=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=s._errors).push.apply(e,l(r))},this.exists=function(e){return e in n.obj||(n.catch((0,a.requiredPropertyError)({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t,r=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if((0,i.default)(r))return!0;var s=e?n.path.of(e):n.path,o=null!=(t=null!=e?e:n.path.last())?t:"value";return n.catch((0,a.typeMismatchError)({typeName:"Object",property:o,path:s,value:r})),!1},this.string=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&("string"==typeof t||(n.catch((0,a.typeMismatchError)({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!!t&&!(e in n.obj)||!!n.exists(e)&&(!("number"!=typeof r||Number.isNaN(r))||(n.catch((0,a.typeMismatchError)({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&(!!Array.isArray(t)||(n.catch((0,a.typeMismatchError)({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!!("string"==typeof r&&t.includes(r))||(n.catch((0,a.enumError)({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch((0,a.maxSizeError)({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch((0,a.minSizeError)({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch((0,a.unknownPropertyError)({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],i=!1;r.forEach(function(r,a){if(!i){var s=t(r,n.path.of(e).of(a));s.length>0&&(i=!0),n.catch.apply(n,l(s))}})}}}return e=[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},221133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={get EntityLinkAssertion(){return v},get HyperLinkAssertion(){return b},get NodeAssertion(){return g},get VOID_CONTENT(){return y},get assert(){return _},get assertLink(){return E}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:Object.getOwnPropertyDescriptor(n,i).get});var a=e.r(806449);function s(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 o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,r){var n,i,a;return t=d(t),n=e,(i=m()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))&&("object"==((a=i)&&"u">typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof i)?i:o(n)}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
1function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}var y=[],g=function(){var e;function t(e,r){u(this,t),c(this,"contentRule",void 0),c(this,"validateData",void 0),this.contentRule=e,this.validateData=r}return e=[{key:"assert",value:function(e,t){var r=new a.ObjectAssertion(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),i=n.nodeTypes,s=n.min,o=void 0===s?0:s;if(0===i.length&&o>0)throw Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(o," with no nodeTypes"));if(r.minLength("content",o),0===i.length?r.empty("content"):r.each("content",function(e,t){var r=new a.ObjectAssertion(e,t);return r.object()&&r.enum("nodeType",i),r.errors}),r.object("data")){var l,u,c=null!=(u=null==(l=this.validateData)?void 0:l.call(this,e.data,t.of("data")))?u:[];r.catch.apply(r,h(c))}return r.errors}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),v=function(e){function t(e,r){var n;return u(this,t),c(n=l(this,t,[r,function(e,t){return o(n).assertLink(e,t)}]),"linkType",void 0),c(n,"type",void 0),c(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new a.ObjectAssertion(e,t);if(r.object("target")){var i=new a.ObjectAssertion(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),r.catch.apply(r,h(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return p(t,e),t}(g),b=function(e){function t(){var e;return u(this,t),c(e=l(this,t,[["text"],function(t,r){return o(e).assertLink(t,r)}]),"assertLink",function(e,t){var r=new a.ObjectAssertion(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return p(t,e),t}(g),_=function(e,t){return new g(e,t)},E=function(e,t){return new v(e,t)}},889449,(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){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Path",{enumerable:!0,get:function(){return a}});var a=function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(this instanceof e))throw TypeError("Cannot call a class as a function");i(this,"path",void 0),i(this,"of",void 0),i(this,"isRoot",void 0),i(this,"last",void 0),i(this,"toArray",void 0),this.path=r,this.of=function(r){var i;return new e(((function(e){if(Array.isArray(e))return n(e)})(i=t.path)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}},432671,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"assertText",{enumerable:!0,get:function(){return i}});var n=e.r(806449);function i(e,t){var r=new n.ObjectAssertion(e,t);return r.object()&&(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,t){var r=new n.ObjectAssertion(e,t);return r.object()&&r.string("type"),r.errors}),r.string("value")),r.errors}},778111,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"validateRichTextDocument",{enumerable:!0,get:function(){return b}});var n,i=e.r(276),a=e.r(882715),s=e.r(273918),o=e.r(806449),l=e.r(221133),u=e.r(889449),c=e.r(432671);function d(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 p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return d(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=(0,l.assert)(f(Object.values(a.INLINES)).concat(["text"]).sort()),m=(0,l.assert)([i.BLOCKS.LIST_ITEM]),y=(0,l.assertLink)("Entry",l.VOID_CONTENT),g=(0,l.assert)(function(){return{nodeTypes:[i.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),v=(p(n={},i.BLOCKS.DOCUMENT,(0,l.assert)(s.TOP_LEVEL_BLOCKS)),p(n,i.BLOCKS.PARAGRAPH,h),p(n,i.BLOCKS.HEADING_1,h),p(n,i.BLOCKS.HEADING_2,h),p(n,i.BLOCKS.HEADING_3,h),p(n,i.BLOCKS.HEADING_4,h),p(n,i.BLOCKS.HEADING_5,h),p(n,i.BLOCKS.HEADING_6,h),p(n,i.BLOCKS.QUOTE,(0,l.assert)(s.CONTAINERS[i.BLOCKS.QUOTE])),p(n,i.BLOCKS.EMBEDDED_ENTRY,y),p(n,i.BLOCKS.EMBEDDED_ASSET,(0,l.assertLink)("Asset",l.VOID_CONTENT)),p(n,i.BLOCKS.EMBEDDED_RESOURCE,(0,l.assertLink)("Contentful:Entry",l.VOID_CONTENT)),p(n,i.BLOCKS.HR,(0,l.assert)(l.VOID_CONTENT)),p(n,i.BLOCKS.OL_LIST,m),p(n,i.BLOCKS.UL_LIST,m),p(n,i.BLOCKS.LIST_ITEM,(0,l.assert)(f(s.LIST_ITEM_BLOCKS).sort())),p(n,i.BLOCKS.TABLE,(0,l.assert)(function(){return{nodeTypes:[i.BLOCKS.TABLE_ROW],min:1}})),p(n,i.BLOCKS.TABLE_ROW,(0,l.assert)(function(){return{nodeTypes:[i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],min:1}})),p(n,i.BLOCKS.TABLE_CELL,g),p(n,i.BLOCKS.TABLE_HEADER_CELL,g),p(n,a.INLINES.HYPERLINK,new l.HyperLinkAssertion),p(n,a.INLINES.EMBEDDED_ENTRY,y),p(n,a.INLINES.EMBEDDED_RESOURCE,(0,l.assertLink)("Contentful:Entry",l.VOID_CONTENT)),p(n,a.INLINES.ENTRY_HYPERLINK,(0,l.assertLink)("Entry",["text"])),p(n,a.INLINES.ASSET_HYPERLINK,(0,l.assertLink)("Asset",["text"])),p(n,a.INLINES.RESOURCE_HYPERLINK,(0,l.assertLink)("Contentful:Entry",["text"])),n),b=function(e){var t=new u.Path,r=new o.ObjectAssertion(e,t);return(r.object()&&r.enum("nodeType",[i.BLOCKS.DOCUMENT]),r.errors.length>0)?r.errors:function e(t,r){if("text"===t.nodeType)return(0,c.assertText)(t,r);var n=v[t.nodeType].assert(t,r);if(n.length>0)return n;var i=new o.ObjectAssertion(t,r);return i.each("content",function(t,r){return e(t,r)}),i.errors}(e,t)}},839972,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={get BLOCKS(){return a.BLOCKS},get EMPTY_DOCUMENT(){return l.EMPTY_DOCUMENT},get INLINES(){return s.INLINES},get MARKS(){return o.MARKS},get helpers(){return u},get validateRichTextDocument(){return c.validateRichTextDocument}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:Object.getOwnPropertyDescriptor(n,i).get});var a=e.r(276),s=e.r(882715),o=e.r(843029);d(e.r(273918),r),d(e.r(41645),r),d(e.r(26061),r);
1var l=e.r(333925),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(e.r(335266)),c=e.r(778111);function d(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}},445160,(e,t,r)=>{"use strict";var n=e.r(878384),i=e.r(839972);let a={[i.BLOCKS.DOCUMENT]:(e,t)=>t,[i.BLOCKS.PARAGRAPH]:(e,t)=>n.createElement("p",null,t),[i.BLOCKS.HEADING_1]:(e,t)=>n.createElement("h1",null,t),[i.BLOCKS.HEADING_2]:(e,t)=>n.createElement("h2",null,t),[i.BLOCKS.HEADING_3]:(e,t)=>n.createElement("h3",null,t),[i.BLOCKS.HEADING_4]:(e,t)=>n.createElement("h4",null,t),[i.BLOCKS.HEADING_5]:(e,t)=>n.createElement("h5",null,t),[i.BLOCKS.HEADING_6]:(e,t)=>n.createElement("h6",null,t),[i.BLOCKS.EMBEDDED_ENTRY]:(e,t)=>n.createElement("div",null,t),[i.BLOCKS.EMBEDDED_RESOURCE]:(e,t)=>n.createElement("div",null,t),[i.BLOCKS.UL_LIST]:(e,t)=>n.createElement("ul",null,t),[i.BLOCKS.OL_LIST]:(e,t)=>n.createElement("ol",null,t),[i.BLOCKS.LIST_ITEM]:(e,t)=>n.createElement("li",null,t),[i.BLOCKS.QUOTE]:(e,t)=>n.createElement("blockquote",null,t),[i.BLOCKS.HR]:()=>n.createElement("hr",null),[i.BLOCKS.TABLE]:(e,t)=>n.createElement("table",null,n.createElement("tbody",null,t)),[i.BLOCKS.TABLE_ROW]:(e,t)=>n.createElement("tr",null,t),[i.BLOCKS.TABLE_HEADER_CELL]:(e,t)=>
1n.createElement("th",null,t),[i.BLOCKS.TABLE_CELL]:(e,t)=>n.createElement("td",null,t),[i.INLINES.ASSET_HYPERLINK]:e=>o(i.INLINES.ASSET_HYPERLINK,e),[i.INLINES.ENTRY_HYPERLINK]:e=>o(i.INLINES.ENTRY_HYPERLINK,e),[i.INLINES.RESOURCE_HYPERLINK]:e=>l(i.INLINES.RESOURCE_HYPERLINK,e),[i.INLINES.EMBEDDED_ENTRY]:e=>o(i.INLINES.EMBEDDED_ENTRY,e),[i.INLINES.EMBEDDED_RESOURCE]:(e,t)=>l(i.INLINES.EMBEDDED_RESOURCE,e),[i.INLINES.HYPERLINK]:(e,t)=>n.createElement("a",{href:e.data.uri},t)},s={[i.MARKS.BOLD]:e=>n.createElement("b",null,e),[i.MARKS.ITALIC]:e=>n.createElement("i",null,e),[i.MARKS.UNDERLINE]:e=>n.createElement("u",null,e),[i.MARKS.CODE]:e=>n.createElement("code",null,e),[i.MARKS.SUPERSCRIPT]:e=>n.createElement("sup",null,e),[i.MARKS.SUBSCRIPT]:e=>n.createElement("sub",null,e),[i.MARKS.STRIKETHROUGH]:e=>n.createElement("s",null,e)};function o(e,t){return n.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function l(e,t){return n.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}r.documentToReactComponents=function(e,t={}){if(!e)return null;let r=e;return t.stripEmptyTrailingParagraph&&(r=i.helpers.stripEmptyTrailingParagraphFromDocument(e)),function e(t,r){let{renderNode:a,renderMark:s,renderText:o,preserveWhitespace:l}=r;if(i.helpers.isText(t)){let e=o?o(t.value):t.value;if(l&&!o){let t=(e=e.replace(/ {2,}/g,e=>"Â ".repeat(e.length))).split("\n"),r=[];t.forEach((e,i)=>{r.push(e),i!==t.length-1&&r.push(n.createElement("br",null))}),e=r}return t.marks.reduce((e,t)=>s[t.type]?s[t.type](e):e,e)}{var u;let i=(u=t.content,u.map((t,i)=>{var a;return a=e(t,r),n.isValidElement(a)&&null===a.key?n.cloneElement(a,{key:i}):a}));return t.nodeType&&a[t.nodeType]?a[t.nodeType](t,i):n.createElement(n.Fragment,null,i)}}(r,{renderNode:{...a,...t.renderNode},renderMark:{...s,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}},935140,e=>{"use strict";var t=e.i(279743),r=e.i(204039),n=new class extends t.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!r.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,n])},889747,e=>{"use strict";let t,r,n,i,a,s;var o=e.i(608839).systemSetTimeoutZero,l=(t=[],r=0,n=e=>{e()},i=e=>{e()},a=o,{batch:e=>{let s;r++;try{s=e()}finally{let e;--r||(e=t,t=[],e.length&&a(()=>{i(()=>{e.forEach(e=>{n(e)})})}))}return s},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s=e=>{r?t.push(e):a(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{a=e}});e.s(["notifyManager",0,l])},868259,170434,297805,879714,702872,525003,e=>{"use strict";var t=e.i(204039),r=e.i(889747),n=e.i(935140),i=e.i(279743),a=new class extends i.Subscribable{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!t.isServer&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function s(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function o(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||a.isOnline()}e.s(["onlineManager",0,a],170434),e.s(["pendingThenable",0,s],297805);
1var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let r,i=!1,c=0,d=s(),p=()=>n.focusManager.isFocused()&&("always"===e.networkMode||a.isOnline())&&e.canRun(),f=()=>l(e.networkMode)&&e.canRun(),h=e=>{"pending"===d.status&&(r?.(),d.resolve(e))},m=e=>{"pending"===d.status&&(r?.(),d.reject(e))},y=()=>new Promise(t=>{r=e=>{("pending"!==d.status||p())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===d.status&&e.onContinue?.()}),g=()=>{let r;if("pending"!==d.status)return;let n=0===c?e.initialPromise:void 0;try{r=n??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(h).catch(r=>{if("pending"!==d.status)return;let n=e.retry??3*!t.isServer,a=e.retryDelay??o,s="function"==typeof a?a(c,r):a,l=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,r);i||!l?m(r):(c++,e.onFail?.(c,r),(0,t.sleep)(s).then(()=>p()?void 0:y()).then(()=>{i?m(r):g()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);m(r),e.onCancel?.(r)}},continue:()=>(r?.(),d),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:f,start:()=>(f()?g():y().then(g),d)}}e.s(["CancelledError",0,u,"canFetch",0,l,"createRetryer",0,c],879714);var d=e.i(608839),p=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#i=d.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(t.isServer?1/0:3e5))}clearGcTimeout(){this.#i&&(d.timeoutManager.clearTimeout(this.#i),this.#i=void 0)}};e.s(["Removable",0,p],702872);var f=class extends p{#a;#s;#o;#l;#u;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#o=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=y(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=y(this.options);void 0!==e.data&&(this.setState(m(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,r){let n=(0,t.replaceData)(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#u?.promise;return this.#u?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#d?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,r){let n;if("idle"!==this.state.fetchStatus&&this.#u?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,i.signal)}
1)},s=()=>{let e,n=(0,t.ensureQueryFn)(this.options,r),i=(a(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#d=!1,this.options.persister)?this.options.persister(n,i,this):n(i)},o=(a(n={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:s}),n);this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#p({type:"fetch",meta:o.fetchOptions?.meta}),this.#u=c({initialPromise:r?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof u&&e.revert&&this.setState({...this.#s,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#u.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u){if(e.silent)return this.#u.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...h(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...m(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function h(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:l(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function m(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function y(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,f,"fetchState",0,h],868259);var g=e.i(878384),v=e.i(530295),b=g.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,v.jsx)(b.Provider,{value:e,children:t})),"useQueryClient",0,e=>{let t=g.useContext(b);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],525003)},279743,e=>{"use strict";e.s(["Subscribable",0,class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}])},204039,608839,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#f=t;#h=!1;setTimeoutProvider(e){this.#f=e}setTimeout(e,t){return this.#f.setTimeout(e,t)}clearTimeout(e){this.#f.clearTimeout(e)}setInterval(e,t){return this.#f.setInterval(e,t)}clearInterval(e){this.#f.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],608839);var n="u"<typeof window||"Deno"in globalThis;function i(e,t){return(t?.queryKeyHashFn||a)(e)}function a(e){return JSON.stringify(e,(e,t)=>u(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function s(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>s(e[r],t[r]))}var o=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!c(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!c(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}var d=Symbol();e.s(["addToEnd",0,function(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n},"addToStart",0,function(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,a,"hashQueryKeyByOptions",0,i,"isServer",0,n,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(a(t.options.mutationKey)!==a(o))return!1}
1else if(!s(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:l,stale:u}=e;if(l){if(n){if(t.queryHash!==i(l,t.options))return!1}else if(!s(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!a||a===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,s,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=l(t)&&l(r);if(!n&&!(u(t)&&u(r)))return r;let i=(n?t:Object.keys(t)).length,a=n?r:Object.keys(r),s=a.length,c=n?Array(s):{},d=0;for(let l=0;l<s;l++){let s=n?l:a[l],u=t[s],p=r[s];if(u===p){c[s]=u,(n?l<i:o.call(t,s))&&d++;continue}if(null===u||null===p||"object"!=typeof u||"object"!=typeof p){c[s]=p;continue}let f=e(u,p);c[s]=f,f===u&&d++}return i===s&&d===i?t:c}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],204039)},383410,(e,t,r)=>{"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},387670,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},791898,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(e){return e.replace(s,e=>a[e])}function c(e){return e.replace(l,e=>o[e])}},178903,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return v}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(836437),s=e.r(56421),o=e.r(530295),l=a._(e.r(421145)),u=s._(e.r(878384)),c=e.r(508002),d=e.r(464967),p=e.r(387670),f=e.r(791898),h=new Map,m=new Set,y=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:s="",strategy:o="afterInteractive",onError:u,stylesheets:c}=e,p=r||t;if(p&&m.has(p))return;if(h.has(t)){m.add(p),h.get(t).then(n,u);return}let f=()=>{i&&i(),m.add(p)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),f()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(y.innerHTML=a.__html||"",f()):s?(y.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",f()):t&&(y.src=t,h.set(t,g)),(0,d.setAttributesFromProps)(y,e),"worker"===o&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",o),c&&(e=>
1{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(y)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>y(e))}):y(e)}function v(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:a="afterInteractive",onError:s,stylesheets:d,...h}=e,{updateScripts:g,scripts:v,getIsSsr:b,appDir:_,nonce:E}=(0,u.useContext)(c.HeadManagerContext);E=h.nonce||E;let x=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;x.current||(i&&e&&m.has(e)&&i(),x.current=!0)},[i,t,r]);let O=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!O.current){if("afterInteractive"===a)y(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>y(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>y(e))}));O.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(g?(v[a]=(v[a]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:s,...h,nonce:E}]),g(v)):b&&b()?m.add(t||r):b&&!b()&&y({...e,nonce:E})),_){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin}),(0,o.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===a&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let _=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},972224,(e,t,r)=>{t.exports={name:"next",version:"16.3.3",description:"The React Framework",main:"./dist/server/next.js",license:"MIT",repository:"vercel/next.js",bugs:"https://github.com/vercel/next.js/issues",homepage:"https://nextjs.org",types:"index.d.ts",files:["AGENTS.md","dist","app.js","app.d.ts","babel.js","babel.d.ts","client.js","client.d.ts","compat","cache.js","cache.d.ts","constants.js","constants.d.ts","document.js","document.d.ts","dynamic.js","dynamic.d.ts","error.js","error.d.ts","future","legacy","script.js","script.d.ts","server.js","server.d.ts","head.js","head.d.ts","image.js","image.d.ts","link.js","link.d.ts","offline.js","offline.d.ts","form.js","form.d.ts","router.js","router.d.ts","jest.js","jest.d.ts","og.js","og.d.ts","root-params.js","root-params.d.ts","types.d.ts","types.js","index.d.ts","types/global.d.ts","types/compiled.d.ts","image-types/global.d.ts","navigation-types/navigation.d.ts","navigation-types/compat/navigation.d.ts","font","navigation.js","navigation.d.ts","headers.js","headers.d.ts","navigation-types","web-vitals.js","web-vitals.d.ts","experimental/testing/server.js","experimental/testing/server.d.ts","experimental/testmode/playwright.js","experimental/testmode/playwright.d.ts","experimental/testmode/playwright/msw.js","experimental/testmode/playwright/msw.d.ts","experimental/testmode/proxy.js","experimental/testmode/proxy.d.ts"],bin:{next:"./dist/bin/next"},dependencies:{"@next/env":"16.3.3","@swc/helpers":"0.5.23","baseline-browser-mapping":"^2.9.19","caniuse-lite":"^1.0.30001579",postcss:"8.5.23","styled-jsx":"5.1.6"}
1,peerDependencies:{"@opentelemetry/api":"^1.1.0","@playwright/test":"^1.51.1","babel-plugin-react-compiler":"*",react:"^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0","react-dom":"^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",sass:"^1.3.0"},peerDependenciesMeta:{"babel-plugin-react-compiler":{optional:!0},sass:{optional:!0},"@opentelemetry/api":{optional:!0},"@playwright/test":{optional:!0}},optionalDependencies:{sharp:"^0.35.3","@next/swc-darwin-arm64":"16.3.3","@next/swc-darwin-x64":"16.3.3","@next/swc-linux-arm64-gnu":"16.3.3","@next/swc-linux-arm64-musl":"16.3.3","@next/swc-linux-x64-gnu":"16.3.3","@next/swc-linux-x64-musl":"16.3.3","@next/swc-win32-arm64-msvc":"16.3.3","@next/swc-win32-x64-msvc":"16.3.3"},keywords:["react","framework","nextjs","web","server","node","front-end","backend","cli","vercel"],engines:{node:">=20.9.0"}}},164126,(e,t,r)=>{"use strict";function n(){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},82519,(e,t,r)=>{t.exports=e.r(178903)},286604,595523,e=>{"use strict";let t="consent";e.i(479578);var r=e.i(114245);let n=e=>{let t=window.localStorage.getItem(e);return t||null},i=(e,t)=>{window.localStorage.setItem(e,t)},a=e=>{localStorage.removeItem(e)},s=()=>{a(t)},o=()=>{let e=JSON.parse(n(t));return!!e&&(e.expiry<Date.now()?(s(),!1):e.given)};e.s(["getItemWithConsent",0,e=>{if(!o())return null;let t=n(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return r.logger.error("Error parsing item from localStorage",{error:e}),null}},"giveConsent",0,()=>{i(t,JSON.stringify({given:!0,timestamp:Date.now(),expiry:Date.now()+31536e6}))},"hasConsent",0,o,"removeItemWithConsent",0,e=>{o()&&a(e)},"revokeConsent",0,s,"setItemWithConsent",0,(e,t)=>{o()&&i(e,JSON.stringify(t))}],595523),e.s([],286604)},859860,e=>{"use strict";let t;var r,n,i,a,s,o,l,u=e.i(90373),c=e.i(530295),d=e.i(365177),p=e.i(878384),f=e.i(280744),h=e.i(801401);async function m(e){try{let t=await fetch(e.src);if(423===t.status)return await new Promise(e=>setTimeout(e,500)),await m(e);if(!t.ok)return{success:!1,status:t.status,error:t.headers.get("x-cld-error")||"Unknown error"};return{success:!0,status:t.status}}catch(e){return{success:!1,status:500,error:e.message||"Network error"}}}var y=/\/v\d+\//,g=/\.(ai|avif|gif|png|webp|bmp|bw|djvu|dng|ps|ept|eps|eps3|fbx|flif|gif|glb|gltf|heif|heic|ico|indd|jpg|jpe|jpeg|jp2|wdp|jxr|hdp|obj|pdf|ply|png|psd|arw|cr2|svg|tga|tif|tiff|u3ma|usdz|webp|3g2|3gp|avi|flv|m3u8|ts|m2ts|mts|mov|mkv|mp4|mpeg|mpd|mxf|ogv|webm|wmv)$/i,v=/https?:\/\/(?<host>[^/]+)\/(?<cloudName>[^/]+)?\/?(?<assetType>image|images|video|videos|raw|files)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)?\/?(?<signature>s--([a-zA-Z0-9_-]{8}|[a-zA-Z0-9_-]{32})--)?\/?(?<transformations>(?:[^_/]+_[^,/]+,?\/?)*\/)*(?<version>v\d+|\w{1,2})\/(?<publicId>[^\s]+)$/,b=["images","videos","files"];function _(e){if("string"!=typeof e)throw Error("Failed to parse URL - Invalid src: Is not a string");if(!y.test(e))throw Error("Failed to parse URL - Invalid src: Does not include version (Ex: /v1234/)");let[t,r]=e.split("?"),n=E(t),i=t;n&&(i=t.replace(RegExp(`${n}$`),""));let a=i.match(v),s=a?.groups?.transformations?.split("/").filter(e=>!!e),o={...a?.groups,format:n,seoSuffix:void 0,transformations:s||[],queryParams:{},version:a?.groups?.version?parseInt(a.groups.version.replace("v","")):void 0};if("res.cloudinary.com"===o.host&&!o.cloudName)throw Error("Failed to parse URL - Invalid src: Cloudinary URL delivered from res.cloudinary.com must include Cloud Name (ex: res.cloudinary.com/<Cloud Name>/image/...)");if(r&&(o.queryParams=r.split("&").reduce((e,t)=>{let[r,n]=t.split("=");return e[r]=n,e},{})),o.assetType&&b.includes(o.assetType)){let e=o.publicId?.split("/")||[];o.seoSuffix=e.pop(),o.publicId=e.join("/")}return o.publicId&&(o.publicId=decodeURIComponent(o.publicId)),o}function E(e){let t=e.match(g);if(null!==t)return t[0]}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.s([],180703),e.i(180703),(r=a||(a={})).assertEqual=e=>{},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},r.getValidEnumValues=e=>{let t=r.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return r.objectValues(n)},r.objectValues=e=>r.objectKeys(e).map(function(t){return e[t]}),r.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},r.find=(e,t)=>{for(let r of e)if(t(r))return r},r.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,r.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},r.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let O=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),S=e=>{switch(typeof e){case"undefined":return O.undefined;case"string":return O.string;case"number":return Number.isNaN(e)?O.nan:O.number;case"boolean":return O.boolean;case"function":return O.function;case"bigint":return O.bigint;case"symbol":return O.symbol;case"object":if(Array.isArray(e))return O.array;if(null===e)return O.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return O.promise;if("u">typeof Map&&e instanceof Map)return O.map;if("u">typeof Set&&e instanceof Set)return O.set;if("u">typeof Date&&e instanceof Date)return O.date;return O.object;default:return O.unknown}};e.s(["ZodParsedType",0,O,"getParsedType",0,S,"objectUtil",0,s,"util",0,a],458728);
1let A=a.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"]),w=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class T extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}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 e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof T))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}T.create=e=>new T(e),e.s(["ZodError",0,T,"ZodIssueCode",0,A,"quotelessJson",0,w],559413);let j=(e,t)=>{let r;switch(e.code){case A.invalid_type:r=e.received===O.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,a.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:r=`Unrecognized key(s) in object: ${a.joinValues(e.keys,", ")}`;break;case A.invalid_union:r="Invalid input";break;case A.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${a.joinValues(e.options)}`;break;case A.invalid_enum_value:r=`Invalid enum value. Expected ${a.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}"`:a.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||"bigint"===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;
vendor: 7,572 bytes, line 1
1case 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,a.assertNever(e)}return{message:r}},C=j;function N(e){C=e}function I(){return C}e.s(["getErrorMap",0,I,"setErrorMap",0,N],725827),e.i(725827),e.s(["defaultErrorMap",0,j,"getErrorMap",0,I,"setErrorMap",0,N],279407),e.i(279407);let L=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}},k=[];function R(e,t){let r=I(),n=L({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===j?void 0:j].filter(e=>!!e)});e.common.issues.push(n)}class D{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 P;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return D.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return P;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let P=Object.freeze({status:"aborted"}),B=e=>({status:"dirty",value:e}),M=e=>({status:"valid",value:e}),$=e=>"aborted"===e.status,U=e=>"dirty"===e.status,K=e=>"valid"===e.status,Z=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,B,"EMPTY_PATH",0,k,"INVALID",0,P,"OK",0,M,"ParseStatus",0,D,"addIssueToContext",0,R,"isAborted",0,$,"isAsync",0,Z,"isDirty",0,U,"isValid",0,K,"makeIssue",0,L],696555),e.i(696555),e.s([],924326),e.i(924326),e.i(458728),(n=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},n.toString=e=>"string"==typeof e?e:e?.message;class H{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||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let q=(e,t)=>{if(K(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 t=new T(e.common.issues);return this._error=t,this._error}}};function F(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.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class G{get description(){return this._def.description}_getType(e){return S(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:S(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new D,ctx:{common:e.parent.common,data:e.data,parsedType:S(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(Z(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S(e)},n=this._parseSync({data:e,path:r.path,parent:r});return q(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return K(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>K(e)?{value:e.value}:{issues:t.common.issues})}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:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:S(e)},n=this._parse({data:e,path:r.path,parent:r});return q(r,await (Z(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:A.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!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 eU({schema:this,typeName:l.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eK.create(this,this._def)}nullable(){return eZ.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eO.create(this)}promise(){return e$.create(this,this._def)}or(e){return eA.create([this,e],this._def)}and(e){return ej.create(this,e,this._def)}transform(e){return new eU({...F(this._def),schema:this,typeName:l.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eH({...F(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:l.ZodDefault})}brand(){return new ez({typeName:l.ZodBranded,type:this,...F(this._def)})}catch(e){return new eq({...F(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:l.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eV.create(this,e)}readonly(){return eJ.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let z=/^c[^\s-]{8,}
vendor: 25,059 bytes, line 1
1$/i,V=/^[0-9a-z]+$/,J=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Y=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,W=/^[a-z0-9_-]{21}$/i,Q=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,X=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ee=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,et=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,er=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,en=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ei=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ea=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,es=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eo="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",el=RegExp(`^${eo}$`);function eu(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function ec(e){let t=`${eo}T${eu(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class ed extends G{_parse(e){var r,n,i,s;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==O.string){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.string,received:t.parsedType}),P}let l=new D;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(R(o=this._getOrReturnCtx(e,o),{code:A.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("max"===u.kind)e.data.length>u.value&&(R(o=this._getOrReturnCtx(e,o),{code:A.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),l.dirty());else if("length"===u.kind){let t=e.data.length>u.value,r=e.data.length<u.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?R(o,{code:A.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):r&&R(o,{code:A.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),l.dirty())}else if("email"===u.kind)ee.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"email",code:A.invalid_string,message:u.message}),l.dirty());else if("emoji"===u.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:A.invalid_string,message:u.message}),l.dirty());else if("uuid"===u.kind)Y.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:A.invalid_string,message:u.message}),l.dirty());else if("nanoid"===u.kind)W.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:A.invalid_string,message:u.message}),l.dirty());else if("cuid"===u.kind)z.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:A.invalid_string,message:u.message}),l.dirty());else if("cuid2"===u.kind)V.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:A.invalid_string,message:u.message}),l.dirty());else if("ulid"===u.kind)J.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:A.invalid_string,message:u.message}),l.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{R(o=this._getOrReturnCtx(e,o),{validation:"url",code:A.invalid_string,message:u.message}),l.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"regex",code:A.invalid_string,message:u.message}),l.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),l.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:{startsWith:u.value},message:u.message}),l.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:{endsWith:u.value},message:u.message}),l.dirty()):"datetime"===u.kind?ec(u).test(e.data)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:"datetime",message:u.message}),l.dirty()):"date"===u.kind?el.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:"date",message:u.message}),l.dirty()):"time"===u.kind?RegExp(`^${eu(u)}$`).test(e.data)||(R(o=this._getOrReturnCtx(e,o),{code:A.invalid_string,validation:"time",message:u.message}),l.dirty()):"duration"===u.kind?X.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"duration",code:A.invalid_string,message:u.message}),l.dirty()):"ip"===u.kind?(r=e.data,!(("v4"===(n=u.version)||!n)&&et.test(r)||("v6"===n||!n)&&en.test(r))&&1&&(R(o=this._getOrReturnCtx(e,o),{validation:"ip",code:A.invalid_string,message:u.message}),l.dirty())):"jwt"===u.kind?!function(e,t){if(!Q.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(R(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:A.invalid_string,message:u.message}),l.dirty()):"cidr"===u.kind?(i=e.data,!(("v4"===(s=u.version)||!s)&&er.test(i)||("v6"===s||!s)&&ei.test(i))&&1&&(R(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:A.invalid_string,message:u.message}),l.dirty())):"base64"===u.kind?ea.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"base64",code:A.invalid_string,message:u.message}),l.dirty()):"base64url"===u.kind?es.test(e.data)||(R(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:A.invalid_string,message:u.message}),l.dirty()):a.assertNever(u);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:A.invalid_string,...o.errToObj(r)})}_addCheck(e){return new ed({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new ed({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===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 isNANOID(){return!!this._def.checks.find(e=>"nanoid"===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 isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===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}}ed.create=e=>new ed({checks:[],typeName:l.ZodString,coerce:e?.coerce??!1,...F(e)});class ep extends G{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==O.number){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.number,received:t.parsedType}),P}let r=new D;for(let n of this._def.checks)"int"===n.kind?a.isInteger(e.data)||(R(t=this._getOrReturnCtx(e,t),{code:A.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(R(t=this._getOrReturnCtx(e,t),{code:A.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(R(t=this._getOrReturnCtx(e,t),{code:A.not_finite,message:n.message}),r.dirty()):a.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new ep({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new ep({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.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&&a.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;else"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)}}ep.create=e=>new ep({checks:[],typeName:l.ZodNumber,coerce:e?.coerce||!1,...F(e)});class ef extends G{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==O.bigint)return this._getInvalidInput(e);let r=new D;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(R(t=this._getOrReturnCtx(e,t),{code:A.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):a.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.bigint,received:t.parsedType}),P}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new ef({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new ef({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.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}}ef.create=e=>new ef({checks:[],typeName:l.ZodBigInt,coerce:e?.coerce??!1,...F(e)});class eh extends G{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==O.boolean){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.boolean,received:t.parsedType}),P}return M(e.data)}}eh.create=e=>new eh({typeName:l.ZodBoolean,coerce:e?.coerce||!1,...F(e)});class em extends G{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==O.date){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.date,received:t.parsedType}),P}if(Number.isNaN(e.data.getTime()))return R(this._getOrReturnCtx(e),{code:A.invalid_date}),P;let r=new D;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(R(t=this._getOrReturnCtx(e,t),{code:A.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):a.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new em({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.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}}em.create=e=>new em({checks:[],coerce:e?.coerce||!1,typeName:l.ZodDate,...F(e)});class ey extends G{_parse(e){if(this._getType(e)!==O.symbol){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.symbol,received:t.parsedType}),P}return M(e.data)}}ey.create=e=>new ey({typeName:l.ZodSymbol,...F(e)});class eg extends G{_parse(e){if(this._getType(e)!==O.undefined){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.undefined,received:t.parsedType}),P}return M(e.data)}}eg.create=e=>new eg({typeName:l.ZodUndefined,...F(e)});class ev extends G{_parse(e){if(this._getType(e)!==O.null){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.null,received:t.parsedType}),P}return M(e.data)}}ev.create=e=>new ev({typeName:l.ZodNull,...F(e)});class eb extends G{constructor(){super(...arguments),this._any=!0}_parse(e){return M(e.data)}}eb.create=e=>new eb({typeName:l.ZodAny,...F(e)});class e_ extends G{constructor(){super(...arguments),this._unknown=!0}_parse(e){return M(e.data)}}e_.create=e=>new e_({typeName:l.ZodUnknown,...F(e)});class eE extends G{_parse(e){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.never,received:t.parsedType}),P}}eE.create=e=>new eE({typeName:l.ZodNever,...F(e)});class ex extends G{_parse(e){if(this._getType(e)!==O.undefined){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.void,received:t.parsedType}),P}return M(e.data)}}ex.create=e=>new ex({typeName:l.ZodVoid,...F(e)});class eO extends G{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==O.array)return R(t,{code:A.invalid_type,expected:O.array,received:t.parsedType}),P;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(R(t,{code:e?A.too_big:A.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(R(t,{code:A.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(R(t,{code:A.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new H(t,e,t.path,r)))).then(e=>D.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new H(t,e,t.path,r)));return D.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new eO({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new eO({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new eO({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}eO.create=(e,t)=>new eO({type:e,minLength:null,maxLength:null,exactLength:null,typeName:l.ZodArray,...F(t)});class eS extends G{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=a.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==O.object){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.object,received:t.parsedType}),P}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof eE&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new H(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof eE){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(R(r,{code:A.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new H(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>D.mergeObjectSync(t,e)):D.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new eS({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new eS({...this._def,unknownKeys:"strip"})}passthrough(){return new eS({...this._def,unknownKeys:"passthrough"})}extend(e){return new eS({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eS({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:l.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eS({...this._def,catchall:e})}pick(e){let t={};for(let r of a.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new eS({...this._def,shape:()=>t})}omit(e){let t={};for(let r of a.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new eS({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eS){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eK.create(e(i))}return new eS({...t._def,shape:()=>r})}if(t instanceof eO)return new eO({...t._def,type:e(t.element)});if(t instanceof eK)return eK.create(e(t.unwrap()));if(t instanceof eZ)return eZ.create(e(t.unwrap()));if(t instanceof eC)return eC.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of a.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new eS({...this._def,shape:()=>t})}required(e){let t={};for(let r of a.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eK;)e=e._def.innerType;t[r]=e}return new eS({...this._def,shape:()=>t})}keyof(){return eP(a.objectKeys(this.shape))}}eS.create=(e,t)=>
1new eS({shape:()=>e,unknownKeys:"strip",catchall:eE.create(),typeName:l.ZodObject,...F(t)}),eS.strictCreate=(e,t)=>new eS({shape:()=>e,unknownKeys:"strict",catchall:eE.create(),typeName:l.ZodObject,...F(t)}),eS.lazycreate=(e,t)=>new eS({shape:e,unknownKeys:"strip",catchall:eE.create(),typeName:l.ZodObject,...F(t)});class eA extends G{_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 t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new T(e.ctx.common.issues));return R(t,{code:A.invalid_union,unionErrors:r}),P});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new T(e));return R(t,{code:A.invalid_union,unionErrors:i}),P}}get options(){return this._def.options}}eA.create=(e,t)=>new eA({options:e,typeName:l.ZodUnion,...F(t)});let ew=e=>{if(e instanceof eR)return ew(e.schema);if(e instanceof eU)return ew(e.innerType());if(e instanceof eD)return[e.value];if(e instanceof eB)return e.options;if(e instanceof eM)return a.objectValues(e.enum);else if(e instanceof eH)return ew(e._def.innerType);else if(e instanceof eg)return[void 0];else if(e instanceof ev)return[null];else if(e instanceof eK)return[void 0,...ew(e.unwrap())];else if(e instanceof eZ)return[null,...ew(e.unwrap())];else if(e instanceof ez)return ew(e.unwrap());else if(e instanceof eJ)return ew(e.unwrap());else if(e instanceof eq)return ew(e._def.innerType);else return[]};class eT extends G{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==O.object)return R(t,{code:A.invalid_type,expected:O.object,received:t.parsedType}),P;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(R(t,{code:A.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),P)}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 r of t){let t=ew(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new eT({typeName:l.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...F(r)})}}class ej extends G{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if($(e)||$(n))return P;let i=function e(t,r){let n=S(t),i=S(r);if(t===r)return{valid:!0,data:t};if(n===O.object&&i===O.object){let n=a.objectKeys(r),i=a.objectKeys(t).filter(e=>-1!==n.indexOf(e)),s={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};s[n]=i.data}return{valid:!0,data:s}}if(n===O.array&&i===O.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===O.date&&i===O.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?((U(e)||U(n))&&t.dirty(),{status:t.value,value:i.data}):(R(r,{code:A.invalid_intersection_types}),P)};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])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ej.create=(e,t,r)=>new ej({left:e,right:t,typeName:l.ZodIntersection,...F(r)}
1);class eC extends G{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==O.array)return R(r,{code:A.invalid_type,expected:O.array,received:r.parsedType}),P;if(r.data.length<this._def.items.length)return R(r,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),P;!this._def.rest&&r.data.length>this._def.items.length&&(R(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new H(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>D.mergeArray(t,e)):D.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eC({...this._def,rest:e})}}eC.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eC({items:e,typeName:l.ZodTuple,rest:null,...F(t)})};class eN extends G{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!==O.object)return R(r,{code:A.invalid_type,expected:O.object,received:r.parsedType}),P;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new H(r,e,r.path,e)),value:a._parse(new H(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?D.mergeObjectAsync(t,n):D.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eN(t instanceof G?{keyType:e,valueType:t,typeName:l.ZodRecord,...F(r)}:{keyType:ed.create(),valueType:e,typeName:l.ZodRecord,...F(t)})}}class eI extends G{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!==O.map)return R(r,{code:A.invalid_type,expected:O.map,received:r.parsedType}),P;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new H(r,e,r.path,[a,"key"])),value:i._parse(new H(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return P;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return P;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eI.create=(e,t,r)=>new eI({valueType:t,keyType:e,typeName:l.ZodMap,...F(r)});class eL extends G{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==O.set)return R(r,{code:A.invalid_type,expected:O.set,received:r.parsedType}),P;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(R(r,{code:A.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(R(r,{code:A.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return P;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new H(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new eL({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new eL({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eL.create=(e,t)=>new eL({valueType:e,minSize:null,maxSize:null,typeName:l.ZodSet,...F(t)});class ek extends G{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==O.function)return R(t,{code:A.invalid_type,expected:O.function,received:t.parsedType}),P;function r(e,r){return L({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,I(),j].filter(e=>!!e),issueData:{code:A.invalid_arguments,argumentsError:r}})}function n(e,r){return L({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,I(),j].filter(e=>!!e),issueData:{code:A.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof e$){let e=this;return M(async function(...t){let s=new T([]),o=await e._def.args.parseAsync(t,i).c
1atch(e=>{throw s.addIssue(r(t,e)),s}),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw s.addIssue(n(l,e)),s})})}{let e=this;return M(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new T([r(t,s.error)]);let o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new T([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ek({...this._def,args:eC.create(e).rest(e_.create())})}returns(e){return new ek({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ek({args:e||eC.create([]).rest(e_.create()),returns:t||e_.create(),typeName:l.ZodFunction,...F(r)})}}class eR extends G{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eR.create=(e,t)=>new eR({getter:e,typeName:l.ZodLazy,...F(t)});class eD extends G{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return R(t,{received:t.data,code:A.invalid_literal,expected:this._def.value}),P}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eP(e,t){return new eB({values:e,typeName:l.ZodEnum,...F(t)})}eD.create=(e,t)=>new eD({value:e,typeName:l.ZodLiteral,...F(t)});class eB extends G{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return R(t,{expected:a.joinValues(r),received:t.parsedType,code:A.invalid_type}),P}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return R(t,{received:t.data,code:A.invalid_enum_value,options:r}),P}return M(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,t=this._def){return eB.create(e,{...this._def,...t})}exclude(e,t=this._def){return eB.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eB.create=eP;class eM extends G{_parse(e){let t=a.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==O.string&&r.parsedType!==O.number){let e=a.objectValues(t);return R(r,{expected:a.joinValues(e),received:r.parsedType,code:A.invalid_type}),P}if(this._cache||(this._cache=new Set(a.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=a.objectValues(t);return R(r,{received:r.data,code:A.invalid_enum_value,options:e}),P}return M(e.data)}get enum(){return this._def.values}}eM.create=(e,t)=>new eM({values:e,typeName:l.ZodNativeEnum,...F(t)});class e$ extends G{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==O.promise&&!1===t.common.async?(R(t,{code:A.invalid_type,expected:O.promise,received:t.parsedType}),P):M((t.parsedType===O.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}e$.create=(e,t)=>new e$({type:e,typeName:l.ZodPromise,...F(t)});class eU extends G{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===l.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{R(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return P;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?P:"dirty"===n.status||"dirty"===t.value?B(n.value):n});{if("aborted"===t.value)return P;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?P:"dirty"===n.status||"dirty"===t.value?B(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);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(r=>"aborted"===r.status?P:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?P:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.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=>K(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):P);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!K(e))return P;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}a.assertNever(n)}}eU.create=(e,t,r)=>new eU({schema:e,typeName:l.ZodEffects,effect:t,...F(r)}),eU.createWithPreprocess=(e,t,r)=>new eU({schema:t,effect:{type:"preprocess",transform:e},typeName:l.ZodEffects,...F(r)}
vendor: 1,431 bytes, line 1
1);class eK extends G{_parse(e){return this._getType(e)===O.undefined?M(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eK.create=(e,t)=>new eK({innerType:e,typeName:l.ZodOptional,...F(t)});class eZ extends G{_parse(e){return this._getType(e)===O.null?M(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eZ.create=(e,t)=>new eZ({innerType:e,typeName:l.ZodNullable,...F(t)});class eH extends G{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===O.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eH.create=(e,t)=>new eH({innerType:e,typeName:l.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...F(t)});class eq extends G{_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 Z(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new T(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new T(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eq.create=(e,t)=>new eq({innerType:e,typeName:l.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...F(t)});
1class eF extends G{_parse(e){if(this._getType(e)!==O.nan){let t=this._getOrReturnCtx(e);return R(t,{code:A.invalid_type,expected:O.nan,received:t.parsedType}),P}return{status:"valid",value:e.data}}}eF.create=e=>new eF({typeName:l.ZodNaN,...F(e)});let eG=Symbol("zod_brand");class ez extends G{_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 eV extends G{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?P:"dirty"===e.status?(t.dirty(),B(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?P:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eV({in:e,out:t,typeName:l.ZodPipeline})}}class eJ extends G{_parse(e){let t=this._def.innerType._parse(e),r=e=>(K(e)&&(e.value=Object.freeze(e.value)),e);return Z(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eY(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eW(e,t={},r){return e?eb.create().superRefine((n,i)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=eY(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=eY(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}}):eb.create()}eJ.create=(e,t)=>new eJ({innerType:e,typeName:l.ZodReadonly,...F(t)});let eQ={object:eS.lazycreate};(i=l||(l={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly";let eX=(e,t={message:`Input not instance of ${e.name}`})=>eW(t=>t instanceof e,t),e0=ed.create,e1=ep.create,e2=eF.create,e4=ef.create,e9=eh.create,e3=em.create,e8=ey.create,e5=eg.create,e6=ev.create,e7=eb.create,te=e_.create,tt=eE.create,tr=ex.create,tn=eO.create,ti=eS.create,ta=eS.strictCreate,ts=eA.create,to=eT.create,tl=ej.create,tu=eC.create,tc=eN.create,td=eI.create,tp=eL.create,tf=ek.create,th=eR.create,tm=eD.create,ty=eB.create,tg=eM.create,tv=e$.create,tb=eU.create,t_=eK.create,tE=eZ.create,tx=eU.createWithPreprocess,tO=eV.create,tS=()=>e0().optional(),tA=()=>e1().optional(),tw=()=>e9().optional(),tT={string:e=>ed.create({...e,coerce:!0}),number:e=>ep.create({...e,coerce:!0}),boolean:e=>eh.create({...e,coerce:!0}),bigint:e=>ef.create({...e,coerce:!0}),date:e=>em.create({...e,coerce:!0})};e.s(["BRAND",0,eG,"NEVER",0,P,"Schema",0,G,"ZodAny",0,eb,"ZodArray",0,eO,"ZodBigInt",0,ef,"ZodBoolean",0,eh,"ZodBranded",0,ez,"ZodCatch",0,eq,"ZodDate",0,em,"ZodDefault",0,eH,"ZodDiscriminatedUnion",0,eT,"ZodEffects",0,eU,"ZodEnum",0,eB,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,ek,"ZodIntersection",0,ej,"ZodLazy",0,eR,"ZodLiteral",0,eD,"ZodMap",0,eI,"ZodNaN",0,eF,"ZodNativeEnum",0,eM,"ZodNever",0,eE,"ZodNull",0,ev,"ZodNullable",0,eZ,"ZodNumber",0,ep,"ZodObject",0,eS,"ZodOptional",0,eK,"ZodPipeline",0,eV,"ZodPromise",0,e$,"ZodReadonly",0,eJ,"ZodRecord",0,eN,"ZodSchema",0,G,"ZodSet",0,eL,"ZodString",0,ed,"ZodSymbol",0,ey,"ZodTransformer",0,eU,"ZodTuple",0,eC,"ZodType",0,G,"ZodUndefined",0,eg,"ZodUnion",0,eA,"ZodUnknown",0,e_,"ZodVoid",0,ex,"any",0,e7,"array",0,tn,"bigint",0,e4,"boolean",0,e9,"coerce",0,tT,"custom",0,eW,"date",0,e3,"datetimeRegex",0,ec,"discriminatedUnion",0,to,"effect",0,tb,"enum",0,ty,"function",0,tf,"instanceof",0,eX,"intersection",0,tl,"late",0,eQ,"lazy",0,th,"literal",0,tm,"map",0,td,"nan",0,e2,"nativeEnum",0,tg,"never",0,tt,"null",0,e6,"nullable",0,tE,"number",0,e1,"object",0,ti,"oboolean",0,tw,"onumber",0,tA,"optional",0,t_,"ostring",0,tS,"pipeline",0,tO,"preprocess",0,tx,"promise",0,tv,"record",0,tc,"set",0,tp,"strictObject",0,ta,"string",0,e0,"symbol",0,e8,"transformer",0,tb,"tuple",0,tu,"undefined",0,e5,"union",0,ts,"unknown",0,te,"void",0,tr],480),e.i(480),e.i(559413),e.s(["BRAND",0,eG,"DIRTY",0,B,"EMPTY_PATH",0,
1k,"INVALID",0,P,"NEVER",0,P,"OK",0,M,"ParseStatus",0,D,"Schema",0,G,"ZodAny",0,eb,"ZodArray",0,eO,"ZodBigInt",0,ef,"ZodBoolean",0,eh,"ZodBranded",0,ez,"ZodCatch",0,eq,"ZodDate",0,em,"ZodDefault",0,eH,"ZodDiscriminatedUnion",0,eT,"ZodEffects",0,eU,"ZodEnum",0,eB,"ZodError",0,T,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,ek,"ZodIntersection",0,ej,"ZodIssueCode",0,A,"ZodLazy",0,eR,"ZodLiteral",0,eD,"ZodMap",0,eI,"ZodNaN",0,eF,"ZodNativeEnum",0,eM,"ZodNever",0,eE,"ZodNull",0,ev,"ZodNullable",0,eZ,"ZodNumber",0,ep,"ZodObject",0,eS,"ZodOptional",0,eK,"ZodParsedType",0,O,"ZodPipeline",0,eV,"ZodPromise",0,e$,"ZodReadonly",0,eJ,"ZodRecord",0,eN,"ZodSchema",0,G,"ZodSet",0,eL,"ZodString",0,ed,"ZodSymbol",0,ey,"ZodTransformer",0,eU,"ZodTuple",0,eC,"ZodType",0,G,"ZodUndefined",0,eg,"ZodUnion",0,eA,"ZodUnknown",0,e_,"ZodVoid",0,ex,"addIssueToContext",0,R,"any",0,e7,"array",0,tn,"bigint",0,e4,"boolean",0,e9,"coerce",0,tT,"custom",0,eW,"date",0,e3,"datetimeRegex",0,ec,"defaultErrorMap",0,j,"discriminatedUnion",0,to,"effect",0,tb,"enum",0,ty,"function",0,tf,"getErrorMap",0,I,"getParsedType",0,S,"instanceof",0,eX,"intersection",0,tl,"isAborted",0,$,"isAsync",0,Z,"isDirty",0,U,"isValid",0,K,"late",0,eQ,"lazy",0,th,"literal",0,tm,"makeIssue",0,L,"map",0,td,"nan",0,e2,"nativeEnum",0,tg,"never",0,tt,"null",0,e6,"nullable",0,tE,"number",0,e1,"object",0,ti,"objectUtil",0,s,"oboolean",0,tw,"onumber",0,tA,"optional",0,t_,"ostring",0,tS,"pipeline",0,tO,"preprocess",0,tx,"promise",0,tv,"quotelessJson",0,w,"record",0,tc,"set",0,tp,"setErrorMap",0,N,"strictObject",0,ta,"string",0,e0,"symbol",0,e8,"transformer",0,tb,"tuple",0,tu,"undefined",0,e5,"union",0,ts,"unknown",0,te,"util",0,a,"void",0,tr],966951);var tj=e.i(966951),tj=tj;class tC{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(e=>this.hasValue(e)),this}setDelimiter(e){return this.delimiter=e,this}}class tN extends Error{constructor(e="Unsupported"){super(e)}}function tI(){return this._qualifierModel||{error:new tN(`unsupported qualifier ${this.constructor.name}`)}}class tL{constructor(){this._qualifierModel={}}toJson(){return tI.apply(this)}}class tk extends tL{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof tC?this.qualifierValue=t:(this.qualifierValue=new tC,this.qualifierValue.addValue(t))}toString(){let{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class tR extends tk{constructor(e,t){super("fl",t?new tC([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function tD(){var e,t,r;let n=this._actionModel&&Object.keys(this._actionModel).length,i=null==(r=null==(t=null==(e=this._actionModel)?void 0:e.source)?void 0:t.transformation)?void 0:r.error;return i&&i instanceof Error?{error:i}:n?this._actionModel:{error:new tN(`unsupported action ${this.constructor.name}`)}}class tP{constructor(){this._actionModel={}}toJson(){return tD.apply(this)}}class tB extends tP{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){var e,t;let r;
1return this.prepareQualifiers(),(e=this.qualifiers,t=this.flags,r=Array.from(e.entries()),t.forEach(e=>{r.push(["fl",e])}),r.sort().map(e=>e[1])).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new tR(r)):this.qualifiers.set(t,new tk(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new tR(e)):e instanceof tR&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class tM extends tB{constructor(e){super(),this._actionModel={},this.addQualifier(new tk("b",new tC(function(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){let{color:t}=e;return new this(t)}}class t${constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new tN(`unsupported action ${this.constructor.name}`)}}}class tU extends tC{constructor(e){super(e),this.val=e}getValue(){return this.val}}function tK(e){let t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}tK({444:"CHROMA_444",420:"CHROMA_420"}),tK({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),tK({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let tZ=tK({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});tK({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),tK({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),tK({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class tH extends tB{constructor(e,t,r){let n;super(),this._actionModel={},n=t instanceof tU?t.getValue():t,this._actionModel.actionType=tZ[e],this._actionModel[r]=n,this.addQualifier(new tk(e,t))}}class tq extends tR{constructor(e){super("progressive",e)}}class tF extends tH{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new tR("lossy")),this}progressive(e){return e instanceof tq?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new tR("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new tR("preserve_transparency")),this}static fromJson(e){let t,{formatType:r,lossy:n,progressive:i,preserveTransparency:a}=e;return t=r?new this("f",r):new this("f"),i&&(i.mode?t.progressive(i.mode):t.progressive()),n&&t.lossy(),a&&t.preserveTransparency(),t}}class tG{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e)if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";else t=new t$(e);else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof tG?this.actions=this.actions.concat(e.actions):this.actions.push(new t$(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new tF("q",e)),this}format(e){return this.addAction(new tF("f",e)),this}
1roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new tM(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new tB,r=e;return"string"==typeof e&&(r=new tR(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){let e=[];for(let t of this.actions){let r=t.toJson();if("error"in r&&r.error)return r;e.push(r)}return{actions:e}}}class tz extends tG{}let tV=class{filterOutNonSupportedKeys(e,t){let r=Object.create({});return"object"!=typeof e||e instanceof Array?Object.create({}):(Object.keys(e).forEach(n=>{t.indexOf(n)>=0?r[n]=e[n]:console.warn("Warning - unsupported key provided to configuration: ",n)}),r)}},tJ=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"],tY=class e extends tV{constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,tJ))}extend(t){return new e(Object.assign({},this,this.filterOutNonSupportedKeys(t,tJ)))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}};function tW(e,t,r){let n=0|t,i=String(void 0!==r?r:" ");return e.length>n?String(e):((n-=e.length)>i.length&&(i+=function(e,t){let r=t,n="";for(;r>0;)n+=e,r--;return n}(i,n/i.length)),i.slice(0,n)+String(e))}let tQ={},tX=0;function t0(e){let t="",r=e.split(".").length,n=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return tW(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((n=tW(n,6*r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return n.match(/.{1,6}/g).forEach(e=>{t+=tQ[e]}),t}function t1(e){var t;let r,n,i=(n={sdkSemver:(r={techVersion:function(){let e="0.0.0";if("u">typeof window)return e;try{return u.default.versions.node||e}catch(t){return e}}(),sdkCode:"T",sdkSemver:"1.15.0".split("-")[0],product:"A",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1},t=!e?r:Object.assign(Object.assign({},r),e)).sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0"},t.accessibility&&(n.feature="D"),t.lazyload&&(n.feature="C"),t.responsive&&(n.feature="A"),t.placeholder&&(n.feature="B"),n);try{let e,t=(e=i.techVersion.split("."),`${e[0]}.${e[1]}`),r=t0(i.sdkSemver),n=t0(t),a=i.feature,s=i.sdkCode,o=i.product;return`B${o}${s}${r}${n}${a}`}catch(e){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=tX.toString(2);tQ[t=tW(t,6,"0")]=e,tX++});let t2={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class t4{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new tY(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){var e,t;let r=(e=this.assetType)?e:"image",n=(t=this.deliveryType)?t:"upload",i=!!this.suffix,a=`${r}/${n}`,s=t2[`${r}/${n}`],o=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(o)if("image/upload"===a)return"";else throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${a} instead`);if(l&&"image/upload"===a)return"iu";if(i)if(s)return s;else throw Error(`URL Suffix only supported for ${Object.keys(t2).join(", ")}, Provided: ${a} instead`);return a}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var r,n,i,a,s;let o,l,u,c;
1if(!this.publicID)return"";this.validateAssetForURLCreation();let d=(r=this.cloudName,o=(n=this.urlConfig).secure,l=n.privateCdn,u=n.cname,c=n.secureDistribution,o||u?o&&!c&&l?`https://${r}-res.cloudinary.com`:o&&!c?`https://res.cloudinary.com/${r}`:o&&c&&l?`https://${c}`:o&&c?`https://${c}/${r}`:!o&&u?`http://${u}/${r}`:"ERROR":`http://res.cloudinary.com/${r}`),p=e?e.toString():"",f=(i=this.publicID,a=this.version,s=this.urlConfig.forceVersion,a?`v${a}`:i.match(/^v[0-9]+/)||i.match(/^https?:\//)||0>i.indexOf("/")?"":!1!==s?"v1":""),h=this.publicID;if("string"==typeof e)return[d,this.getResourceType(),this.getSignature(),p,f,h.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(d),this.getResourceType(),this.getSignature(),encodeURI(p),f,encodeURI(h).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!h.includes("?"),n="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);r&&e.set("_a",t1(t)),n=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else n=this.urlConfig.queryParams||"",r&&(n+=`${n.length>0?"&":""}_a=${t1(t)}`);return n?`${e}?${n}`:e}}}class t9 extends t4{constructor(e,t,r,n){super(e,t,r),this.transformation=n}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new tF("q",e)),this}format(e){return this.addAction(new tF("f",e)),this}
1roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class t3 extends t9{constructor(e,t,r){super(e,t,r,new tz)}}class t8 extends tG{}class t5 extends t9{constructor(e,t,r){super(e,t,r,new t8),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class t6{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new t3(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new t5(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var t7=Object.defineProperty,re={},rt={angle:()=>rs,aspectRatio:()=>rl,aspectRatioModesEnum:()=>ro,crop:()=>ru,cropModesEnum:()=>rn,extractMode:()=>rc,extractModesEnum:()=>ri,flags:()=>rd,flagsEnum:()=>ra,format:()=>rp,gravity:()=>rf,height:()=>rh,multiple:()=>rm,prompt:()=>ry,width:()=>rg,x:()=>rv,y:()=>rb,zoom:()=>r_};for(var rr in rt)t7(re,rr,{get:rt[rr],enumerable:!0});var rn=tj.enum(["auto","crop","fill","fill_pad","fit","imagga_crop","imagga_scale","lfill","limit","lpad","mfit","mpad","pad","scale","thumb"]),ri=tj.enum(["content","mask"]),ra=tj.enum(["animated","any_format","apng","attachment","awebp","clip","clip_evenodd","cutter","force_icc","force_strip","getinfo","group4","hlsv3","ignore_aspect_ratio","ignore_mask_channels","immutable_cache","keep_attribution","keep_dar","keep_iptc","layer_apply","lossy","mono","no_overflow","no_stream","png8_fl_png24_fl_png32","preserve_transparency","progressive","rasterize","region_relative","relative","replace_image","sanitize","splice","streaming_attachment","strip_profile","text_disallow_overflow","text_no_trim","tiff8_lzw","tiled","truncate_ts","waveform"]),rs={qualifier:"a",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Rotates or flips an asset by the specified number of degrees or automatically according to its orientation or available metadata.",url:"https://cloudinary.com/documentation/transformation_reference#a_angle"}))},ro=tj.enum(["vflip","hflip","ignore","auto_right","auto_left"]),rl={qualifier:"ar",schema:tj.union([tj.number(),ro,tj.intersection(tj.string(),tj.object({}))]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},ru={qualifier:"c",schema:rn.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))},rc={schema:ri.default("content").describe(JSON.stringify({text:"Whether to keep the content of the extracted area, or to replace it with a mask.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"}))},rd={qualifier:"fl",schema:tj.union([ra,tj.array(ra)]).describe(JSON.stringify({text:"Alters the regular behavior of another transformation or the overall delivery behavior.",url:"https://cloudinary.com/documentation/transformation_reference#fl_flag"}))},rp={qualifier:"f",schema:tj.string().describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format regardless of the file extension used in the delivery URL.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"}))},rf={qualifier:"g",schema:tj.union([tj.enum(["auto","auto_content_aware","center","custom","east","face","face_center","multi_face","north","north_east","north_
1west","south","south_east","south_west","west"]),tj.intersection(tj.string(),tj.object({}))]).describe(JSON.stringify({text:"Determines which part of an asset to focus on. Note: Default of auto is applied for supported crop modes only.",url:"https://cloudinary.com/documentation/transformation_reference#g_gravity"}))},rh={qualifier:"h",schema:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"A qualifier that determines the height of a transformed asset or an overlay.",url:"https://cloudinary.com/documentation/transformation_reference#h_height"}))},rm={schema:tj.boolean().describe(JSON.stringify({text:"Should generative AI features detect multiple instances."}))},ry={schema:tj.string().describe(JSON.stringify({text:"Natural language descriptions used for generative AI capabilities."}))},rg={qualifier:"w",schema:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"A qualifier that sets the desired width of an asset using a specified value, or automatically based on the available width.",url:"https://cloudinary.com/documentation/transformation_reference#w_width"}))},rv={qualifier:"x",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},rb={qualifier:"y",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},r_={schema:tj.string().describe(JSON.stringify({text:"Controls how close to crop to the detected coordinates when using face-detection, custom-coordinate, or object-specific gravity.",url:"https://cloudinary.com/documentation/transformation_reference#z_zoom"}))},rE=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],rx={aspectRatio:rl,crop:ru,gravity:rf,height:rh,width:rg},rO={angle:rs,gravity:rf,x:rv,y:rb},rS={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:rE},fontFamily:{qualifier:!1,order:1},fontSize:{qualifier:!1,order:2},fontStyle:{qualifier:!1,order:4},fontWeight:{qualifier:!1,order:3},hinting:{qualifier:"hinting"},letterSpacing:{qualifier:"letter_spacing"},lineSpacing:{qualifier:"line_spacing"},stroke:{qualifier:"self",order:7},textDecoration:{qualifier:!1,order:5}},rA={angle:rs,art:{prefix:"e",qualifier:"art",schema:tj.string().describe(JSON.stringify({text:"Applies the selected artistic filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_art"}))},autoBrightness:{prefix:"e",qualifier:"auto_brightness",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image brightness and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_brightness"}))},autoColor:{prefix:"e",qualifier:"auto_color",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image color balance and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_color"}))},autoContrast:{prefix:"e",qualifier:"auto_contrast",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image contrast and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_contrast"}))},assistColorblind:{prefix:"e",qualifier:"assist_colorblind",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies stripes or color adjustment to help people with common color blind conditions to differentiate between colors that are similar for them.",url:"https://cloudinary.com/documentation/transformation_reference#e_assist_colorblind"}))},background:{qualifier:"b",schema:tj.string().describe(JSON.stringify({text:"Applies a background to empty or transparent areas.",url:"https://cloudinary.com/documentation/transformation_reference#b_background"}))},blackwhite:{prefix:"e",qualifier:"blackwhite",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Converts an image to black and white.",url:"https://cloudinary.com/documentation/transformation_reference#e_blackwhite"}))},blur:{prefix:"e",qualifier:"blur",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to an asset.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur"}))},blurFaces:{prefix:"e",qualifier:"blur_faces",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Blurs all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_faces"}))},blurRegion:{prefix:"e",qualifier:"blur_region",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to the region of an image specified by x, y, width and height, or an area of text. If no region is specified, the whole image is blurred.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_region"}))},border:{qualifier:"bo",schema:tj.string().describe(JSON.stringify({text:"Adds a solid border around an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#bo_border"}))},brightness:{prefix:"e",qualifier:"brightness",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video brightness.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness"}))},brightnessHSB:{prefix:"e",qualifier:"brightness_hsb",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts image brightness modulation in HSB to prevent artifacts in some images.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness_hsb"}))},cartoonify:{prefix:"e",qualifier:"cartoonify",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:tj.string().describe(JSON.stringify({text:"A qualifier that specifies the color to use with the corresponding transformation.",url:"https://cloudinary.com/documentation/transformation_reference#co_color"})),converters:rE}
1,colorize:{prefix:"e",qualifier:"colorize",schema:tj.string().describe(JSON.stringify({text:"Colorizes an image. By default, gray is used for colorization. You can specify a different color using the color qualifier.",url:"https://cloudinary.com/documentation/transformation_reference#e_colorize"}))},contrast:{prefix:"e",qualifier:"contrast",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video contrast.",url:"https://cloudinary.com/documentation/transformation_reference#e_contrast"}))},displace:{prefix:"e",qualifier:"distort",schema:tj.string().describe(JSON.stringify({text:"Displaces the pixels in an image according to the color channels of the pixels in another specified image (a gradient map specified with the overlay parameter).",url:"https://cloudinary.com/documentation/transformation_reference#e_displace"}))},distort:{prefix:"e",qualifier:"distort",schema:tj.string().describe(JSON.stringify({text:"Distorts an image to a new shape by either adjusting its corners or by warping it into an arc.",url:"https://cloudinary.com/documentation/transformation_reference#e_distort"}))},fillLight:{prefix:"e",qualifier:"fill_light",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the fill light and optionally blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_fill_light"}))},gamma:{prefix:"e",qualifier:"gamma",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video gamma level.",url:"https://cloudinary.com/documentation/transformation_reference#e_gamma"}))},gradientFade:{prefix:"e",qualifier:"gradient_fade",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a gradient fade effect from the edge of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_gradient_fade"}))},grayscale:{prefix:"e",qualifier:"grayscale",schema:tj.boolean().describe(JSON.stringify({text:"Converts an image to grayscale (multiple shades of gray).",url:"https://cloudinary.com/documentation/transformation_reference#e_grayscale"}))},hue:{prefix:"e",qualifier:"hue",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image's colors, contrast and brightness to improve its appearance.",url:"https://cloudinary.com/documentation/transformation_reference#e_improve"}))},loop:{prefix:"e",qualifier:"loop",schema:tj.union([tj.boolean(),tj.number(),tj.string()]).describe(JSON.stringify({text:"Loops a video or animated image the specified number of times.",url:"https://cloudinary.com/documentation/transformation_reference#e_loop"}))},multiply:{prefix:"e",qualifier:"multiply",schema:tj.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the multiply blend mode",url:"https://cloudinary.com/documentation/transformation_reference#e_multiply"}))},negate:{prefix:"e",qualifier:"negate",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_negate",url:"https://cloudinary.com/documentation/transformation_reference#e_negate"}))},noise:{prefix:"e",qualifier:"noise",schema:tj.boolean().describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_noise",url:"https://cloudinary.com/documentation/transformation_reference#e_noise"}))},oilPaint:{prefix:"e",qualifier:"oil_paint",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint",url:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint"}))},opacity:{qualifier:"o",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the opacity of an asset and makes it semi-transparent.",url:"https://cloudinary.com/documentation/transformation_reference#o_opacity"}))},outline:{prefix:"e",qualifier:"outline",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adds an outline effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_outline"}))},pixelate:{prefix:"e",qualifier:"pixelate",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Pixelates all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_faces"}))},pixelateRegion:{prefix:"e",qualifier:"pixelate_region",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Pixelates the region of an image specified by x, y, width and height, or an area of text.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_region"}))},radius:{qualifier:"r",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Rounds the corners of an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#r_round_corners"}))},redeye:{prefix:"e",qualifier:"redeye",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically removes red eyes in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_redeye"}))},replaceColor:{prefix:"e",qualifier:"replace_color",schema:tj.string().describe(JSON.stringify({text:"Maps an input color and those similar to the input color to corresponding shades of a specified output color.",url:"https://cloudinary.com/documentation/transformation_reference#e_replace_color"}))},saturation:{prefix:"e",qualifier:"saturation",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video saturation level.",url:"https://cloudinary.com/documentation/transformation_reference#e_saturation"}))},screen:{prefix:"e",qualifier:"screen",schema:tj.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the screen blend mode.",url:"https://cloudinary.com/documentation/transformation_reference#e_screen"}))},sepia:{prefix:"e",qualifier:"sepia",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Changes the color scheme of an image to sepia.",url:"https://cloudinary.com/documentation/transformation_reference#e_sepia"}))},shadow:{prefix:"e",qualifier:"shadow",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adds a gray shadow to the bottom right of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_shadow"}))},sharpen:{prefix:"e",qualifier:"sharpen",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:tj.string().describe(JSON.stringify({text:"Skews an image according to the two specified values in degrees.",url:"https://cloudinary.com/documentation/transformation_reference#e_shear"}))},simulateColorblind:{prefix:"e",qualifier:"simulate_colorblind",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Simulates the way an image would appear to someone with the specified color blind condition.",url:"https://cloudinary.com/documentation/transformation_reference#e_simulate_colorblind"}))},tint:{prefix:"e",qualifier:"tint",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Blends an image with one or more tint colors at a specified intensity.",url:"https://cloudinary.com/documentation/transformation_reference#e_tint"}))},trim:{prefix:"e",qualifier:"trim",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Detects and removes image edges whose color is similar to the corner pixels.",url:"https://cloudinary.com/documentation/transformation_reference#e_trim"}))},unsharpMask:{prefix:"e",qualifier:"unsharp_mask",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies an unsharp mask filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_unsharp_mask"}))}
1,vectorize:{prefix:"e",qualifier:"vectorize",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a vibrance filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vibrance"}))},vignette:{prefix:"e",qualifier:"vignette",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}};function rw({prefix:e,qualifier:t,value:r,converters:n}){let i="";e&&(i=`${e}_`);let a=r;if(n?.forEach(({test:e,convert:t})=>{e(a)&&(a=t(a))}),!0===a||"true"===a)return`${i}${t}`;if("string"==typeof a||"number"==typeof a)if(e)return`${i}${t}:${a}`;else return`${t}_${a}`}function rT(e){return`(${e.join(";")})`}function rj(e){return"string"!=typeof e?e:parseInt(e)}var rC=["auto","crop","fill","lfill","fill_pad","thumb"],rN=["auto","crop","fill","lfill","fill_pad","thumb"],rI=["crop","thumb"],rL="limit",rk=tj.object({aspectRatio:rl.schema.optional(),type:ru.schema,gravity:rf.schema.optional(),height:rh.schema.optional(),width:rg.schema.optional(),x:rv.schema.optional(),y:rb.schema.optional(),zoom:r_.schema.optional(),source:tj.boolean().optional()}),rR={aspectRatio:rl.schema.optional(),crop:tj.union([ru.schema,rk,tj.array(rk)]).default(rL).optional(),gravity:rf.schema.optional(),zoom:r_.schema.optional()},rD={angle:rA.angle.schema.optional(),art:rA.art.schema.optional(),autoBrightness:rA.autoBrightness.schema.optional(),autoColor:rA.autoColor.schema.optional(),autoContrast:rA.autoContrast.schema.optional(),assistColorblind:rA.assistColorblind.schema.optional(),background:rA.background.schema.optional(),blackwhite:rA.blackwhite.schema.optional(),blur:rA.blur.schema.optional(),blurFaces:rA.blurFaces.schema.optional(),blurRegion:rA.blurRegion.schema.optional(),border:rA.border.schema.optional(),brightness:rA.brightness.schema.optional(),brightnessHSB:rA.brightnessHSB.schema.optional(),cartoonify:rA.cartoonify.schema.optional(),color:rA.color.schema.optional(),colorize:rA.colorize.schema.optional(),contrast:rA.contrast.schema.optional(),distort:rA.distort.schema.optional(),fillLight:rA.fillLight.schema.optional(),gamma:rA.gamma.schema.optional(),gradientFade:rA.gradientFade.schema.optional(),grayscale:rA.grayscale.schema.optional(),improve:rA.improve.schema.optional(),loop:rA.loop.schema.optional(),multiply:rA.multiply.schema.optional(),negate:rA.negate.schema.optional(),oilPaint:rA.oilPaint.schema.optional(),opacity:rA.opacity.schema.optional(),outline:rA.outline.schema.optional(),pixelate:rA.pixelate.schema.optional(),pixelateFaces:rA.pixelateFaces.schema.optional(),pixelateRegion:rA.pixelateRegion.schema.optional(),radius:rA.radius.schema.optional(),redeye:rA.redeye.schema.optional(),replaceColor:rA.replaceColor.schema.optional(),saturation:rA.saturation.schema.optional(),screen:rA.screen.schema.optional(),sepia:rA.sepia.schema.optional(),shadow:rA.shadow.schema.optional(),sharpen:rA.sharpen.schema.optional(),shear:rA.shear.schema.optional(),simulateColorblind:rA.simulateColorblind.schema.optional(),tint:rA.tint.schema.optional(),trim:rA.trim.schema.optional(),unsharpMask:rA.unsharpMask.schema.optional(),vectorize:rA.vectorize.schema.optional(),vibrance:rA.vibrance.schema.optional(),vignette:rA.vignette.schema.optional()},rP={effects:tj.array(tj.object(rD)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...rD},{flagsEnum:rB}=re,rM={flags:rd.schema.optional()},r$=tj.string(),rU={namedTransformations:tj.union([r$,tj.array(r$)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:tj.union([r$,tj.array(r$)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},rK=tj.object({alignment:tj.string().optional(),antialias:tj.string().optional(),border:tj.string().optional(),color:tj.string().optional(),fontFamily:tj.string().optional(),fontSize:tj.number().optional(),fontStyle:tj.union([tj.string(),tj.number()]).optional(),fontWeight:tj.string().optional(),hinting:tj.union([tj.string(),tj.number()]).optional(),letterSpacing:tj.union([tj.string(),tj.number()]).optional(),lineSpacing:tj.union([tj.string(),tj.number()]).optional(),stroke:tj.string().optional(),text:tj.string()}),rZ=tj.object({angle:rs.schema.optional(),gravity:rf.schema.optional(),x:rv.schema.optional(),y:rb.schema.optional()}),rH=tj.object({appliedEffects:tj.array(tj.object({})).optional(),appliedFlags:rd.schema.optional(),effects:tj.array(tj.object({})).optional(),crop:ru.schema.optional(),flags:rd.schema.optional(),height:rh.schema.optional(),position:rZ.optional(),publicId:tj.string().optional(),text:tj.union([tj.string(),rK]).optional(),url:tj.string().optional(),width:rg.schema.optional()}),rq={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"},rF={overlay:rH.describe(JSON.stringify({text:"Image or text layer that is applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),overlays:tj.array(rH).describe(JSON.stringify({text:"Image or text layers that are applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),text:tj.string().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},rG={preserveTransformations:tj.boolean().describe(JSON.stringify({text:"Preserves transformations from a Cloudinary U
1RL when using using a Cloudinary URL as the asset source (src)."})).optional()},rz=tj.string(),rV={rawTransformations:tj.union([rz,tj.array(rz)]).describe(JSON.stringify({text:"Array of transformation parameters using the Cloudinary URL API to apply to an asset.",url:"https://cloudinary.com/documentation/transformation_reference"})).optional()},rJ={removeBackground:tj.boolean().describe(JSON.stringify({text:"Removes the background of an image using the Cloudinary AI Background Removal Add-On (Required).",url:"https://cloudinary.com/documentation/cloudinary_ai_background_removal_addon"})).optional()},rY={sanitize:tj.boolean().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},rW={seoSuffix:tj.string().describe(JSON.stringify({text:"Configures the URL to include an SEO-friendly suffix in the URL",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#seo_friendly_media_asset_urls"})).optional()},rQ=tj.object({angle:rs.schema.optional(),gravity:rf.schema.optional(),x:rv.schema.optional(),y:rb.schema.optional()}),rX=tj.object({appliedEffects:tj.array(tj.object({})).optional(),appliedFlags:rd.schema.optional(),effects:tj.array(tj.object({})).optional(),crop:ru.schema.optional(),flags:rd.schema.optional(),height:rh.schema.optional(),position:rQ.optional(),publicId:tj.string().optional(),type:tj.string().optional(),url:tj.string().optional(),width:rg.schema.optional()}),r0={underlay:tj.string().describe(JSON.stringify({text:"Public ID of image that is applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),underlays:tj.array(rX).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},r1={version:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},r2=tj.object({assetType:tj.string().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:tj.string().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:tj.string().default("auto").describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"})).optional(),height:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:tj.union([tj.string(),tj.number(),tj.string()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:tj.string().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:tj.boolean().describe(JSON.stringify({text:"Gives you the ability to have more control over what transformations are permitted to be used from your Cloudinary account.",url:"https://cloudinary.com/documentation/control_access_to_media#strict_transformations"})).optional(),width:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...rR,...rP,...rM,...rU,...rF,...rG,...rV,...rJ,...rY,...rW,...r0,...r1}),r4={defaultImage:tj.string().describe(JSON.stringify({text:"Configures the default image to use in case the given public ID is not available. Must include file extension.",url:"https://cloudinary.com/documentation/transformation_reference#d_default_image"})).optional()},r9={enhance:tj.boolean().describe(JSON.stringify({text:"Uses AI to analyze an image and make adjustments to enhance the appeal of the image.",url:"https://cloudinary.com/documentation/transformation_reference#e_enhance"})).optional()},r3={extract:tj.union([ry.schema.optional(),tj.array(ry.schema).optional(),tj.object({invert:tj.boolean().default(!1).optional(),mode:rc.schema.optional(),multiple:rm.schema.default(!1).optional(),prompt:tj.union([ry.schema,tj.array(ry.schema)]).optional()})]).describe(JSON.stringify({text:"Extracts an area or multiple areas of an image, described
1in natural language.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"})).optional()};function r8(e){return"string"==typeof e?e:Array.isArray(e)?`(${e.filter(e=>"string"==typeof e).join(";")})`:void 0}var r5={fillBackground:tj.union([tj.boolean(),tj.object({crop:ru.schema.optional(),gravity:rf.schema.optional(),prompt:tj.string().optional()})]).describe(JSON.stringify({text:"Uses Generative Fill to extended padded image with AI",url:"https://cloudinary.com/documentation/transformation_reference#b_gen_fill"})).optional()},r6=tj.union([tj.string(),tj.array(tj.string())]),r7=tj.object({prompt:r6.optional(),to:tj.string().optional(),multiple:tj.boolean().optional()}),ne={recolor:tj.union([r6,r7]).describe(JSON.stringify({text:"Uses generative AI to recolor parts of your image, maintaining the relative shading.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_recolor"})).optional()},nt=tj.union([tj.string(),tj.array(tj.string())]),nr=tj.object({prompt:nt.optional(),region:tj.union([tj.array(tj.number()),tj.array(tj.array(tj.number()))]).optional(),multiple:tj.boolean().optional(),removeShadow:tj.boolean().optional()}),nn={remove:tj.union([nt,nr]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},ni={replaceBackground:tj.union([tj.boolean(),tj.string(),tj.object({seed:tj.number().optional(),prompt:tj.string().optional()})]).describe(JSON.stringify({text:"Replaces the background of an image with an AI-generated background.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_background_replace"})).optional()},na={replace:tj.union([tj.array(tj.string()),tj.array(tj.boolean()),tj.object({to:tj.string(),from:tj.string(),preserveGeometry:tj.boolean().optional()})]).describe(JSON.stringify({text:"Uses generative AI to replace parts of your image with something else.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_replace"})).optional()},ns={restore:tj.boolean().describe(JSON.stringify({text:"Uses generative AI to restore details in poor quality images or images that may have become degraded through repeated processing and compression.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_restore"})).optional()},no={zoompan:tj.union([tj.string(),tj.boolean(),tj.object({loop:rA.loop.schema.optional(),options:tj.string()})]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},nl=r2.merge(tj.object({...r4,...r9,...r3,...r5,...ne,...nn,...na,...ni,...ns,...no})),nu={streamingProfile:tj.string().describe(JSON.stringify({text:"The streaming profile to apply when delivering a video using adaptive bitrate streaming.",url:"https://cloudinary.com/documentation/transformation_reference#sp_streaming_profile"})).optional()},nc=r2.merge(tj.object({...nu})),nd=tj.any(),np=tj.any(),nf=[{props:r9,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{enhance:n=!1}=r;return n&&t.effect("e_enhance"),{}}},{props:r3,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{extract:n}=r;if(!n||void 0===n)return{};let i=[];if("string"==typeof n)i.push(`prompt_${n}`);else if(Array.isArray(n))i.push(`prompt_${r8(n)}`);else if("object"==typeof n&&!Array.isArray(n)){let e=r8(n.prompt);e&&i.push(`prompt_${e}`),!0===n.invert&&i.push("invert_true"),"string"==typeof n.mode&&i.push(`mode_${n.mode}`),!0===n.multiple&&i.push("multiple_true")}if(i.length>0){let e=`e_extract:${i.join(";")}`;t.addTransformation(e)}return{}}},{props:ne,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{recolor:n}=r,i={prompt:void 0,"to-color":void 0,multiple:void 0};Array.isArray(n)?(Array.isArray(n[0])?i.prompt=rT(n[0]):i.prompt=n[0],"string"==typeof n[1]&&(i["to-color"]=n[1])):"object"==typeof n&&("string"==typeof n.prompt?i.prompt=n.prompt:Array.isArray(n.prompt)&&(i.prompt=rT(n.prompt)),"string"==typeof n.to&&(i["to-color"]=n.to),!0===n.multiple&&(i.multiple="true"));let a=Object.entries(i).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return a&&t.addTransformation(`e_gen_recolor:${a}`),{}}},{props:rJ,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}
1=e,{removeBackground:n=!1}=r;return n&&t.effect("e_background_removal"),{}}},{props:nn,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{remove:r}=t,n={prompt:void 0,region:void 0,multiple:void 0,"remove-shadow":void 0};if("string"==typeof r)n.prompt=r;else if(Array.isArray(r))n.prompt=rT(r);else if("object"==typeof r){let e="string"==typeof r.prompt||Array.isArray(r.prompt),t=Array.isArray(r.region);if(e&&t)throw Error("Invalid remove options: you can not have both a prompt and a region. More info: https://cloudinary.com/documentation/transformation_reference#e_gen_remove");"string"==typeof r.prompt?n.prompt=r.prompt:Array.isArray(r.prompt)&&(n.prompt=rT(r.prompt)),Array.isArray(r.region)&&(n.region=function e(t){let r={0:"x",1:"y",2:"w",3:"h"},n=t.map((t,n)=>{if(Array.isArray(t))return e(t);let i=r[n];return`${i}_${t}`}).join(";");return`(${n})`}(r.region)),!0===r.multiple&&(n.multiple="true"),!0===r.removeShadow&&(n["remove-shadow"]="true")}let i=Object.entries(n).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return i&&e.addTransformation(`e_gen_remove:${i}`),{}}},{props:na,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{replace:r=null}=t;if(r){let t,n,i=!1;Array.isArray(r)?(t=r[0],n=r[1],i=r[2]||!1):(t=r.from,n=r.to,i=r.preserveGeometry||!1);let a=[`e_gen_replace:from_${t}`,`to_${n}`];i&&a.push(`preserve-geometry_${i}`),e.effect(a.join(";"))}return{}}},{props:ni,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{replaceBackground:n}=r;if(!n||void 0===n)return{};let i=[];"object"==typeof n?(void 0!==n.prompt&&i.push(`prompt_${n.prompt}`),"number"==typeof n.seed&&i.push(`seed_${n.seed}`)):"string"==typeof n&&i.push(`prompt_${n}`);let a="e_gen_background_replace";return i.length>0&&(a=`${a}:${i.join(";")}`),t.addTransformation(a),{}}},{props:ns,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{restore:r=!1}=t;return r&&e.effect("e_gen_restore"),{}}},{props:rR,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,n=[];"string"==typeof r.crop||void 0===r.crop?n.push({aspectRatio:r.aspectRatio,height:r.height,gravity:r.gravity,type:r.crop||rL,width:r.width,zoom:r.zoom}):"object"!=typeof r.crop||Array.isArray(r.crop)?Array.isArray(r.crop)&&(n=r.crop):n.push(r.crop),1===n.length&&!0===n[0].source&&n.push({aspectRatio:r.aspectRatio,width:r.width,height:r.height,gravity:r.gravity,type:rL,zoom:r.zoom});let i=[],a=[];for(let e of n){let t={width:e.width,height:e.height};void 0===t.width&&void 0===e.aspectRatio&&(t.width=r.width,void 0===t.height&&(t.height=r.height));let n=function(e){let{aspectRatio:t,type:r,x:n,y:i,zoom:a}=e,s=e.gravity,o=rj(e.height),l=rj(e.width),u=[],c=t&&rC.includes(r),d="number"==typeof n||"string"==typeof n,p="number"==typeof i||"string"==typeof i,f=d||p;return r&&(o||l||c||f)&&u.push(`c_${r}`),c&&u.push(`ar_${t}`),l&&u.push(`w_${l}`),["limit"].includes(r)||"number"!=typeof o||u.push(`h_${o}`),d&&u.push(`x_${n}`),p&&u.push(`y_${i}`),!s&&rN.includes(r)&&!f&&(s="auto"),s&&("auto"!==s||rN.includes(r)?u.push(`g_${s}`):console.warn(`Auto gravity can only be used with crop modes: ${rN.join(", ")}. Not applying gravity.`)),a&&("auto"!==a||rI.includes(r)?u.push(`z_${a}`):console.warn(`Zoom can only be used with crop modes: ${rI.join(", ")}. Not applying zoom.`)),u}({aspectRatio:e.aspectRatio,gravity:e.gravity,type:e.type||rL,x:e.x,y:e.y,zoom:e.zoom,...t});n.length>0&&(!0===e.source?a.push(n):i.push(n))}a.forEach(e=>{e.length>0&&t.addTransformation(e.join(","))});let s={options:{}};return s.options&&i.length>0&&(s.options.resize=i.map(e=>e.join(",")).join("/")),s}},{props:rG,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{preserveTransformations:r=!1}=t;if(r)try{(function(e){let{transformations:t=[]}=_(e)||{};return t.map(e=>e.split(","))})(t.src).map(e=>e.join(",")).flat().forEach(t=>{e.addTransformation(t)})}catch(e){console.warn(`Failed to preserve transformations: ${e.message}`)}return{}}},{props:rV,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{rawTransformations:r=[]}=t;return Array.isArray(r)||(r=[r]),r.forEach(t=>{e.addTransformation(t)}),{}}},{props:nu,assetTypes:["video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{streamingProfile:n}=r;return"string"==typeof n&&t.addTransformation(`sp_${n}`),{}}},{props:r4,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{defaultImage:n}=r;if("string"==typeof n){E(n)||console.warn("The defaultImage prop may be missing a format and must include it along with the public ID. (Ex: myimage.jpg)");let e=n.replace(/\//g,":");t.addTransformation(`d_${e}`)}return{}}},{props:rP,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e;function n({effects:e,options:t}){return Object.keys(e).map(r=>{let{prefix:n,qualifier:i,converters:a}=e[r];return rw({qualifier:i,prefix:n,value:t?.[r],converters:a})})}return n({effects:rA,options:r}).filter(e=>
1!!e).forEach(e=>t.effect(e)),Array.isArray(r?.effects)&&r?.effects.forEach(e=>{let r=n({effects:rA,options:e}).filter(e=>!!e).join(",");t.effect(r)}),{}}},{props:r5,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{fillBackground:n}=r;if(void 0===n)return{};let i=rj(r.width),a=rj(r.height),s=r.aspectRatio;if(s||"number"!=typeof a||"number"!=typeof i||(s=`${i}:${a}`),!s)return{};if(!0===n){let e=["b_gen_fill",`ar_${s}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof n){let{crop:e="pad",gravity:r,prompt:i}=n,a=[`ar_${s}`,`c_${e}`];"string"==typeof i?a.unshift(`b_gen_fill:${i}`):a.unshift("b_gen_fill"),"string"==typeof r&&a.push(`g_${r}`),t.addTransformation(a.join(","))}return{}}},{props:rM,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{flags:n=[]}=r;return Array.isArray(n)&&n.length>0?n.forEach(e=>{let{success:r}=rB.safeParse(e);r&&t.addFlag(e)}):"object"==typeof n&&Object.entries(n).forEach(([e,r])=>{let{success:n}=rB.safeParse(e);n&&t.addTransformation(`fl_${e}:${r}`)}),{}}},{props:rF,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{text:r,overlays:n=[]}=t;function i({publicId:t,url:r,position:n,text:a,effects:s=[],appliedEffects:o=[],flags:l=[],appliedFlags:u=[],...c}){let d,p="string"==typeof t,f="string"==typeof r,m="object"==typeof a||"string"==typeof a,y="object"==typeof n;if(!p&&!f&&!m)return void console.warn("An overlay is missing Public ID, URL, or Text");if(m)d="l_text";else if(p)d=`l_${t.replace(/\//g,":")}`;else f&&(d=`l_fetch:${"function"==typeof btoa?btoa(r):void 0!==h.Buffer?h.Buffer.from(r).toString("base64"):void 0}`);let g=[],v=[];if(Object.keys(c).forEach(e=>{if(!x(rx,e))return;let{qualifier:t,converters:r}=rx[e],n=rw({qualifier:t,value:c[e],converters:r});n&&g.push(n)}),s.forEach(e=>{Object.keys(e).forEach(t=>{let r=rx[t]||rA[t]||rO[t];if(!r)return;let{qualifier:n,prefix:i,converters:a}=r,s=rw({qualifier:n,prefix:i,value:e[t],converters:a});s&&g.push(s)})}),o.forEach(e=>{Object.keys(e).forEach(t=>{let r=rx[t]||rA[t]||rO[t];if(!r)return;let{qualifier:n,prefix:i,converters:a}=r,s=rw({qualifier:n,prefix:i,value:e[t],converters:a});s&&v.push(s)})}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=ra.safeParse(e);t&&g.push(`fl_${e}`)}),(Array.isArray(u)?u:[u]).forEach(e=>{let{success:t}=ra.safeParse(e);t&&v.push(`fl_${e}`)}),m){"string"==typeof a&&(a={...rq,text:a});let e=[];
1if("object"==typeof a)for(let t of function(e=[],t,r="asc"){let n=[...e];return"string"!=typeof t?n:(n=n.sort(function(e,r){let n=e[t],i=r[t];return("string"==typeof n&&(n=n.toLowerCase()),"string"==typeof i&&(i=i.toLowerCase()),n<i)?-1:+(n>i)}),"desc"===r)?n.reverse():n}(Object.keys(a).filter(e=>x(rS,e)).map(e=>{let t=a&&x(a,e)&&a[e];return{...rS[e],key:e,value:t,order:rS[e].order||99}}),"order")){let{key:r,value:n,qualifier:i,location:a,converters:s}=t,o=n;s?.forEach(({test:e,convert:t})=>{e(n)&&(o=t(n))}),"primary"===a?g.push(`${i}_${o}`):"self"===i?e.push(r):i?e.push(`${i}_${o}`):e.push(o)}let t={".":"%2E",",":"%2C","/":"%2F"},r=a?.text||"";"string"==typeof r&&Object.keys(t)?.forEach(e=>{r=r?.replace(e,t[e])}),d=`${d}:${e.join("_")}:${r}`}y&&Object.keys(n).forEach(e=>{if(!x(rO,e)||!x(n,e))return;let{qualifier:t,converters:r}=rO[e],i=rw({qualifier:t,value:n[e],converters:r});i&&v.push(i)}),g.length>0&&(d=`${d},${g.join(",")}`),d=`${d}/fl_layer_apply,fl_no_overflow`,v.length>0&&(d=`${d},${v.join(",")}`),e.addTransformation(d)}return Array.isArray(n)&&n.forEach(i),"string"==typeof r?i({text:Object.assign({},rq,{text:r})}):"object"==typeof r&&i({text:Object.assign({},rq,r)}),{}}},{props:rY,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{sanitize:r=!0}=t;return r&&("svg"===t.format||e.publicID.endsWith(".svg"))&&e.effect("fl_sanitize"),{}}},{props:rU,strict:!0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{transformations:r,namedTransformations:n}=t;r&&"development"===u.default.env.NODE_ENVIRONMENT&&console.warn("The transformations prop is deprecated. Please use namedTransformations instead.");let i=n||r||[];
1return Array.isArray(i)||(i=[i]),i.forEach(t=>{e.addTransformation(`t_${t}`)}),{}}},{props:rW,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{seoSuffix:r}=t;return"string"==typeof r&&("fetch"===t.deliveryType?console.warn("SEO suffix is not supported with a delivery type of fetch"):e.setSuffix(r)),{}}},{props:r0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{underlay:r,underlays:n=[]}=t;function i({publicId:t,type:r,position:n,effects:a=[],flags:s=[],appliedFlags:o=[],...l}){let u="object"==typeof n;if("string"!=typeof t)return void console.warn(`An ${r} is missing a Public ID`);let c=`u_${t.replace(/\//g,":")}`,d=[],p=[];Object.keys(l).forEach(e=>{if(!x(rx,e))return;let{qualifier:t}=rx[e];d.push(`${t}_${l[e]}`)}),a.forEach(e=>{Object.keys(e).forEach(t=>{if(!x(rx,t))return;let{qualifier:r}=rx[t];d.push(`${r}_${e[t]}`)})}),u&&Object.keys(n).forEach(e=>{if(!x(rO,e))return;let{qualifier:t}=rO[e];p.push(`${t}_${n[e]}`)}),(Array.isArray(s)?s:[s]).forEach(e=>{let{success:t}=ra.safeParse(e);t&&d.push(`fl_${e}`)}),(Array.isArray(o)?o:[o]).forEach(e=>{let{success:t}=ra.safeParse(e);t&&p.push(`fl_${e}`)}),c=`${c},${d.join(",")}`,c=`${c}/fl_layer_apply,fl_no_overflow`,p.length>0&&(c=`${c},${p.join(",")}`),e.addTransformation(c)}return Array.isArray(n)&&n.forEach(i),"string"==typeof r&&i({publicId:r,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}},{props:r1,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{version:r}=t;return("string"==typeof r||"number"==typeof r)&&e.setVersion(`${r}`.replace("v","")),{}}},{props:no,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{zoompan:r=!1}=t,n={format:void 0};if(!0===r)e.effect("e_zoompan");else if("string"==typeof r)"loop"===r?(e.effect("e_zoompan"),e.effect("e_loop")):e.effect(`e_zoompan:${r}`);else if("object"==typeof r){let t,n="e_zoompan";"string"==typeof r.options&&(n=`${n}:${r.options}`),e.effect(n),!0===r.loop?t="e_loop":("string"==typeof r.loop||"number"==typeof r.loop)&&(t=`e_loop:${r.loop}`),t&&e.effect(t)}return!1!==r&&(n.format="auto:animated"),{options:n}}}],nh=tj.union([nl,nc]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}));function nm({options:e,config:t={},analytics:r}){let n,i;!1===r&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let a=new t6(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary URL: Missing source (src) in options.");e?.assetType||(e.assetType="image");let s=[];nf.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(s.includes(e))throw Error(`Option ${e} already exists!`);s.push(e)})});let o={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=_(e.src);n=t?.publicId,o.seoSuffix=t?.seoSuffix,o.version=t?.version}catch(e){}if(n||(n=e.src),Object.keys(o).forEach(t=>{x(e,t)||(e[t]=o[t])}),e.version??(e.version=1),["image","images"].includes(e.assetType)?i=a.image(n):["video","videos"].includes(e.assetType)&&(i=a.video(n)),void 0===i)throw Error("Invalid asset type.");let l={};if(nf.forEach(({plugin:t,assetTypes:r,props:n,strict:a})=>{let s=e?.assetType!==void 0&&r.includes(e.assetType),o=Object.keys(n),u=Object.keys(e),c=o.map(e=>u.includes(e)).filter(e=>!!e).length>0;if(!s){c&&console.warn(`One of the following props [${o.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!a){c&&console.warn(`One of the following props [${o.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:d}=t({cldAsset:i,options:e})||{options:void 0};Object.assign(l,d)}),"string"==typeof l.resize&&i.addTransformation(l.resize),i.setDeliveryType(e?.deliveryType||"upload"),!e.strictTransformations){if(e?.dpr){let t=e.dpr;"number"==typeof t&&(t=t.toFixed(1)),i.addTransformation(`dpr_${t}`)}let t=e?.format==="default",r=ny("f_",i,{matchType:"startsWith"}),n=r&&void 0!==e?.format;(l?.format||!t&&(!r||n))&&i.format(e?.format||l?.format||"auto");let a=e?.quality==="default",s=ny("q_",i,{matchType:"startsWith"}),o=s&&void 0!==e?.quality;
1a||s&&!o||i.quality(e?.quality||"auto")}return i.toURL({trackedAnalytics:r})}function ny(e,t,r){if(void 0===t.transformation)return;let{matchType:n="includes"}=r||{};return t.transformation.actions.flatMap(e=>e.toString().split("/").flatMap(e=>e.split(","))).filter(t=>"startsWith"===n?t.startsWith(e):t.includes(e)).length>0}tj.object({analytics:tj.union([nd,tj.boolean()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage related to Cloudinary.",path:"/url-loader/analyticsoptions"})).optional(),config:np.describe(JSON.stringify({text:"Configuration parameters for environment and Cloudinary account.",url:"https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters",path:"/url-loader/analyticsoptions"})).optional(),options:nh});var ng=e.i(972224),nv=e.i(164126),nb=e.i(82519),n_=nx(ng.default.version),nE=nx("6.17.5");function nx(e){let t=e;return t.includes("-")&&(t=t.split("-")[0]),t}function nO(e){let t=e?.cloud?.cloudName??"dk1k7eopo";if(!t)throw Error("A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.");let r=e?.cloud?.apiKey??u.default.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,n=e?.url?.secureDistribution??u.default.env.NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION,i=e?.url?.privateCdn??u.default.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;return Object.assign({cloud:{...e?.cloud,apiKey:r,cloudName:t},url:{...e?.url,secureDistribution:n,privateCdn:i}},e)}function nS(e,t,r){return nm({options:e,config:nO(t),analytics:Object.assign({product:"A",sdkCode:"V",sdkSemver:nE,techVersion:n_,feature:""},r)})}(0,p.forwardRef)(function(e,t){let r=!1,n=["assetType","config","deliveryType","strictTransformations"];nf.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(n.includes(e))throw Error(`Option ${e} already exists!`);n.push(e)})});let i={alt:e.alt,src:e.src};Object.keys(e).filter(e=>"string"==typeof e&&!n.includes(e)).forEach(t=>i[t]=e[t]);let a=Object.keys(i).map(e=>`${e}:${i[e]}`).join(";"),[s,o]=(0,p.useState)(a),l={};async function u(t){let n=!0;if(r)return;if(r=!0,"function"==typeof e.onError){let r=e.onError(t);"boolean"==typeof r&&!1===r&&(n=!1)}else"boolean"==typeof e.onError&&!1===e.onError&&(n=!1);if(!1===n)return;let i=t.target,s=await m({src:i.src});s.error,s.success&&o(`${a};${Date.now()}`)}n.forEach(t=>{let r=e[t];r&&(l[t]=r)}),!0===e.unoptimized&&(i.src=nS({...l,width:i.width,height:i.height,src:i.src,format:"default",quality:"default"},e.config));let c=(0,p.useCallback)(u,[m,a]),d=f.default;return"default"in d&&(d=d.default),p.default.createElement(d,{key:s,...i,loader:t=>(function({loaderOptions:e,imageProps:t,cldOptions:r,cldConfig:n={}}){let i={...t,...r};
1if(i.width="string"==typeof i.width?parseInt(i.width):i.width,i.height="string"==typeof i.height?parseInt(i.height):i.height,"number"==typeof e?.width&&"number"==typeof i.width&&e.width!==i.width){let t=e.width/i.width;i.width=e.width,"number"==typeof i.height&&(i.height=Math.floor(i.height*t))}else"number"==typeof e?.width&&"number"!=typeof i?.width&&(i.width=e?.width);return nS(i,n)})({loaderOptions:t,imageProps:i,cldOptions:l,cldConfig:e.config}),onError:c,ref:t})});var nA=[],nw="1.11.1",nT=e=>{let{className:t,config:r,disableRemotePlayback:n,height:i,id:a,onDataLoad:s,onError:o,onMetadataLoad:l,onPause:u,onPlay:c,onEnded:d,width:f}=e,h=(0,p.useId)(),[m,y]=(0,p.useState)(!1),[g,v]=(0,p.useState)(!1),b=function(e,t){let r,{autoplay:n,controls:i=!0,language:a,languages:s,logo:o=!0,loop:l=!1,muted:u=!1,poster:c,src:d,transformation:p,quality:f="auto",...h}=e,{cloudName:m}=t?.cloud||{},{secureDistribution:y,privateCdn:g}=t?.url||{};if(!m)throw Error("A Cloudinary Cloud name is required, please make sure your environment variable is set and configured in your environment.");let v=d||"";if(v.startsWith("http"))try{let e=_(d);"string"==typeof e?.publicId&&(v=e?.publicId)}catch(e){}if(!v)throw Error("Video Player requires a src, please make sure to configure your src as a public ID or Cloudinary URL.");let b=Array.isArray(p)?p:[p];b.unshift({quality:f});let E={};"boolean"==typeof o?E.showLogo=o:"object"==typeof o&&(E={...E,showLogo:!0,logoImageUrl:o.imageUrl,logoOnclickUrl:o.onClickUrl});let x=!1;("boolean"==typeof n||"true"===n||"false"===n)&&(x=n),"string"==typeof n&&"true"!==n&&"false"!==n&&(r=n);let O={cloud_name:m,privateCdn:g,secureDistribution:y,autoplayMode:r,autoplay:x,controls:i,language:a,languages:s,loop:l,muted:u,publicId:v,transformation:b,...E,...h};return O.width&&O.height&&!O.aspectRatio&&(O.aspectRatio=`${O.width}:${O.height}`),"string"==typeof c?O.posterOptions={publicId:c}:"object"==typeof c&&("string"!=typeof c.src?O.posterOptions={publicId:nm({options:{...c,src:v,assetType:"video",format:"auto:image"},config:t})}:O.posterOptions={publicId:nm({options:c,config:t})}),O}(e,nO(r)),{publicId:E}=b;if(typeof E>"u")throw Error("Video Player requires a Public ID or Cloudinary URL - please specify a src prop");let x=(0,p.useRef)(),O=(0,p.useRef)(),S=e.videoRef||O,A=(0,p.useRef)(),w=e.playerRef||A,T=a||`player-${h.replace(/:/g,"")}`,j="cld-video-player cld-fluid";t&&(j=`${j} ${t}`);let C={error:o,loadeddata:s,loadedmetadata:l,pause:u,play:c,ended:d};function N(e){let t=C[e.type];"function"==typeof t&&t({player:w.current,video:S.current})}let I=()=>{w.current?.videojs?.cloudinary&&w.current.videojs.cloudinary.dispose(),nA=nA.filter(e=>e!==T),w.current=null,v(!1)},L=()=>{"u">typeof window&&"cloudinary"in window&&S.current&&!g&&(x.current=window.cloudinary,w.current&&I(),w.current=x.current.videoPlayer(S.current,b),v(!0),Object.keys(C).forEach(e=>{"function"==typeof C[e]&&w.current?.on(e,N)}))};return(0,p.useEffect)(()=>(m&&"u">typeof window&&"cloudinary"in window&&L(),()=>{I()}),[]),(0,p.useEffect)(()=>{m&&!g&&"u">typeof window&&"cloudinary"in window&&L()},[m,g]),p.default.createElement(p.default.Fragment,null,p.default.createElement(nv.default,null,p.default.createElement("link",{href:`https://unpkg.com/cloudinary-video-player@${nw}/dist/cld-video-player.min.css`,rel:"stylesheet"})),p.default.createElement("div",{style:{width:"100%"}},p.default.createElement("video",{ref:S,id:T,className:j,width:f,height:i,disableRemotePlayback:n}),p.default.createElement(nb.default,{id:`cloudinary-videoplayer-${T}`,src:`https://unpkg.com/cloudinary-video-player@${nw}/dist/cld-video-player.min.js`,onLoad:function(){y(!0),"cloudinary"in window&&L()},onError:e=>console.error(`Failed to load Cloudinary Video Player: ${e.message}`)})))},nj=e.i(190286),nC=e.i(390271);let nN=({message:e})=>(0,c.jsx)(d.Alert,{variant:"destructive",className:"w-full aspect-video flex items-center justify-center",children:(0,c.jsx)(d.AlertDescription,{children:e})});e.s(["CloudinaryVideo",0,({className:e,title:t,videoData:r})=>{let{onPlay:n,onEnd:i,onProgress:a}=(0,nC.useVideoTracking)({host:nC.VideoHost.CLOUDINARY,url:r.secure_url}),s=(0,p.useId)(),o=`cloudinary-player-${r.public_id}-${s}`,l=(0,p.useRef)(null),u=(0,p.useRef)(a),d=(0,p.useMemo)(()=>(e=>{try{let t=e.match(/cloudinary\.com\/([^/]+)\//);return t?.[1]??null}catch{return null}}
1)(r.secure_url),[r.secure_url]),f=r.width??1920,h=r.height??1080;return(u.current=a,(0,p.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{u.current({currentTime:e.currentTime,duration:e.duration})};return e.addEventListener("timeupdate",t),()=>e.removeEventListener("timeupdate",t)},[]),d&&r.public_id)?"dk1k7eopo"!==d?(0,c.jsx)(nN,{message:"Video player configuration error. Please contact support."}):(0,c.jsx)("div",{className:(0,nj.cn)("w-full",e),children:(0,c.jsx)("div",{className:"relative aspect-video w-full overflow-clip bg-black",role:"region","aria-label":t?`Video: ${t}`:"Video player",children:(0,c.jsx)(nT,{id:o,width:f.toString(),height:h.toString(),src:r.public_id,fontFace:"Arial, sans-serif",className:"absolute inset-0 h-full w-full",videoRef:l,onPlay:n,onEnded:i})})}):(0,c.jsx)(nN,{message:"Unable to load video. Please verify the video data."})}],859860)},327309,534846,962837,173389,447881,783942,781858,e=>{"use strict";e.s(["RichText",()=>tc,"buildRichTextOptions",()=>tu,"getReferences",()=>ta,"renderItem",()=>tl],327309),e.s(["ReferencesContext",()=>ed,"useReferencesContext",()=>ep],783942),e.s(["ReferencesProvider",()=>ec],447881),e.s(["PageReferences",()=>ti],781858);var t,r,n,i,a,s=e.i(530295),o=((t={}).DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell",t);e.s(["BLOCKS",0,o],534846);var l=((r={}).ASSET_HYPERLINK="asset-hyperlink",r.EMBEDDED_ENTRY="embedded-entry-inline",r.EMBEDDED_RESOURCE="embedded-resource-inline",r.ENTRY_HYPERLINK="entry-hyperlink",r.HYPERLINK="hyperlink",r.RESOURCE_HYPERLINK="resource-hyperlink",r),u=((n={}).BOLD="bold",n.ITALIC="italic",n.UNDERLINE="underline",n.CODE="code",n.SUPERSCRIPT="superscript",n.SUBSCRIPT="subscript",n.STRIKETHROUGH="strikethrough",n);function c(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.s(["MARKS",0,u],962837);var p=[o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE,o.TABLE],f=[o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE];o.TABLE,o.TABLE_ROW,o.TABLE_CELL,o.TABLE_HEADER_CELL,o.HR,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE;var h=(d(i={},o.OL_LIST,[o.LIST_ITEM]),d(i,o.UL_LIST,[o.LIST_ITEM]),d(i,o.LIST_ITEM,f),d(i,o.QUOTE,[o.PARAGRAPH]),d(i,o.TABLE,[o.TABLE_ROW]),d(i,o.TABLE_ROW,[o.TABLE_CELL,o.TABLE_HEADER_CELL]),d(i,o.TABLE_CELL,[o.PARAGRAPH,o.UL_LIST,o.OL_LIST]),d(i,o.TABLE_HEADER_CELL,[o.PARAGRAPH]),i),m=[o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6];function y(e,t){var r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(t===e[o])return!0}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1}function g(e){if(e.nodeType!==o.PARAGRAPH||1!==e.content.length)return!1;var t=e.content[0];return"text"===t.nodeType&&""===t.value}[o.PARAGRAPH].concat(function(e){if(Array.isArray(e))return c(e)}(m)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(m)||function(e){if(e){if("string"==typeof e)return c(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,void 0)}}(m)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o.DOCUMENT,o.PARAGRAPH,o.HEADING_1,o.HEADING_2,o.HEADING_3,o.HEADING_4,o.HEADING_5,o.HEADING_6,o.OL_LIST,o.UL_LIST,o.LIST_ITEM,o.HR,o.QUOTE,o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,l.HYPERLINK,l.ENTRY_HYPERLINK,l.ASSET_HYPERLINK,l.EMBEDDED_ENTRY,u.BOLD,u.CODE,u.ITALIC,u.UNDERLINE,e.s(["isBlock",0,function(e){return y(o,e.nodeType)},"isEmptyParagraph",0,g,"isInline",0,function(e){return y(l,e.nodeType)},"isText",0,function(e){return"text"===e.nodeType},"stripEmptyTrailingParagraphFromDocument",0,function(e){var t,r;return!(null!=e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"content"in e&&Array.isArray(e.content))||e.content.length<2?e:g(e.content[e.content.length-1])?(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={content:e.content.slice(0,-1)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t):e}],529729),e.i(529729);var v=e.i(383410);function b(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}var _=function(e){var t=e.path,r=e.property,n=e.typeName,i=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:i}},E=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},x=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},O=function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:((function(e){if(Array.isArray(e))return b(e)})(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return b(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(),path:n.toArray(),value:r}},S=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},A=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}};function w(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 T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return w(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=function(){var e;function t(e,r){var n=this,i=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");T(this,"obj",void 0),T(this,"path",void 0),T(this,"_errors",void 0),T(this,"catch",void 0),T(this,"exists",void 0),T(this,"object",void 0),T(this,"string",void 0),T(this,"number",void 0),T(this,"array",void 0),T(this,"enum",void 0),T(this,"empty",void 0),T(this,"minLength",void 0),T(this,"noAdditionalProperties",void 0),T(this,"each",void 0),this.obj=e,this.path=r,this._errors=[],this.catch=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=i._errors).push.apply(e,j(r))},this.exists=function(e){return e in n.obj||(n.catch(A({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t,r=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if((0,v.default)(r))return!0;var i=e?n.path.of(e):n.path,a=null!=(t=null!=e?e:n.path.last())?t:"value";return n.catch(_({typeName:"Object",property:a,path:i,value:r})),!1},this.string=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&("string"==typeof t||(n.catch(_({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!!t&&!(e in n.obj)||!!n.exists(e)&&(!("number"!=typeof r||Number.isNaN(r))||(n.catch(_({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&(!!Array.isArray(t)||(n.catch(_({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!!("string"==typeof r&&t.includes(r))||(n.catch(O({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(x({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(E({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(S({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],i=!1;
1r.forEach(function(r,a){if(!i){var s=t(r,n.path.of(e).of(a));s.length>0&&(i=!0),n.catch.apply(n,j(s))}})}}}return e=[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();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){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t,r){var n,i,a;return t=D(t),n=e,(i=$()?Reflect.construct(t,r||[],D(e).constructor):t.apply(e,r))&&("object"==((a=i)&&"u">typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof i)?i:I(n)}function k(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return N(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($=function(){return!!e})()}var U=[],K=function(){var e;function t(e,r){k(this,t),R(this,"contentRule",void 0),R(this,"validateData",void 0),this.contentRule=e,this.validateData=r}return e=[{key:"assert",value:function(e,t){var r=new C(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),i=n.nodeTypes,a=n.min,s=void 0===a?0:a;if(0===i.length&&s>0)throw Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(s," with no nodeTypes"));if(r.minLength("content",s),0===i.length?r.empty("content"):r.each("content",function(e,t){var r=new C(e,t);return r.object()&&r.enum("nodeType",i),r.errors}),r.object("data")){var o,l,u=null!=(l=null==(o=this.validateData)?void 0:o.call(this,e.data,t.of("data")))?l:[];r.catch.apply(r,M(u))}return r.errors}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),Z=function(e){function t(e,r){var n;return k(this,t),R(n=L(this,t,[r,function(e,t){return I(n).assertLink(e,t)}]),"linkType",void 0),R(n,"type",void 0),R(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new C(e,t);if(r.object("target")){var i=new C(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),r.catch.apply(r,M(i.errors))}return r.noAdditionalProperties(["target"]),r.errors}
1,n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return P(t,e),t}(K),H=function(e){function t(){var e;return k(this,t),R(e=L(this,t,[["text"],function(t,r){return I(e).assertLink(t,r)}]),"assertLink",function(e,t){var r=new C(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return P(t,e),t}(K),q=function(e,t){return new K(e,t)},F=function(e,t){return new Z(e,t)};function G(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 z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return G(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var J=q(V(Object.values(l)).concat(["text"]).sort()),Y=q([o.LIST_ITEM]),W=F("Entry",U),Q=q(function(){return{nodeTypes:[o.PARAGRAPH],min:1}},function(e,t){var r=new C(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});z(a={},o.DOCUMENT,q(p)),z(a,o.PARAGRAPH,J),z(a,o.HEADING_1,J),z(a,o.HEADING_2,J),z(a,o.HEADING_3,J),z(a,o.HEADING_4,J),z(a,o.HEADING_5,J),z(a,o.HEADING_6,J),z(a,o.QUOTE,q(h[o.QUOTE])),z(a,o.EMBEDDED_ENTRY,W),z(a,o.EMBEDDED_ASSET,F("Asset",U)),z(a,o.EMBEDDED_RESOURCE,F("Contentful:Entry",U)),z(a,o.HR,q(U)),z(a,o.OL_LIST,Y),z(a,o.UL_LIST,Y),z(a,o.LIST_ITEM,q(V(f).sort())),z(a,o.TABLE,q(function(){return{nodeTypes:[o.TABLE_ROW],min:1}})),z(a,o.TABLE_ROW,q(function(){return{nodeTypes:[o.TABLE_CELL,o.TABLE_HEADER_CELL],min:1}})),z(a,o.TABLE_CELL,Q),z(a,o.TABLE_HEADER_CELL,Q),z(a,l.HYPERLINK,new H),z(a,l.EMBEDDED_ENTRY,W),z(a,l.EMBEDDED_RESOURCE,F("Contentful:Entry",U)),z(a,l.ENTRY_HYPERLINK,F("Entry",["text"])),z(a,l.ASSET_HYPERLINK,F("Asset",["text"])),z(a,l.RESOURCE_HYPERLINK,F("Contentful:Entry",["text"])),e.s([],173389);var X=e.i(190286),ee=e.i(445160),et=e.i(136655),er=e.i(792605);e.i(479578);var en=e.i(114245),ei=e.i(9633);let ea="Ö-ß¿ï¬-﷽ﹰ-ﻼ",es="A-Za-zÃ-ÃÃ-öø-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",eo=RegExp("^[^"+es+"]*["+ea+"]"),el=RegExp("^[^"+ea+"]*["+es+"]");var eu=e.i(878384);let ec=({children:e})=>{let[t,r]=(0,eu.useState)(!1),n=(0,eu.useRef)(new Map),[i,a]=(0,eu.useState)(0),o=(0,eu.useCallback)(()=>{a(e=>e+1)},[]),l=(0,eu.useCallback)((e,t)=>{n.current.set(e,t),o()},[o]),u=(0,eu.useCallback)(e=>{n.current.delete(e),o()},[o]),c=(0,eu.useMemo)(()=>{let e=new Map,t=1;for(let r of n.current.values())for(let n of r)!e.has(n.entryId)&&(e.set(n.entryId,{entryId:n.entryId,referenceContent:n.referenceContent,globalIndex:t}),t++);return Array.from(e.values())},[i]),d=(0,eu.useMemo)(()=>{let e=new Map;for(let t of c)e.set(t.entryId,t.globalIndex);return e},[c]),p=(0,eu.useCallback)(e=>d.get(e),[d]),f=(0,eu.useCallback)(()=>c,[c]),h=(0,eu.useMemo)(()=>({registerReferences:l,unregisterReferences:u,getGlobalIndex:p,getAllReferences:f,isAccordionOpen:t,setIsAccordionOpen:r}),[l,u,p,f,t]);return(0,s.jsx)(ed.Provider,{value:h,children:e})},ed=(0,eu.createContext)(null),ep=()=>(0,eu.useContext)(ed);var ef=e.i(443704),ef=ef,eh=e.i(252225),em=e.i(11054),ey=e.i(336313),eg=e.i(291967),ev=e.i(753449),eb=e.i(592693),e_=e.i(28540),eE=e.i(370414),ex=e.i(488552),eO="Collapsible",[eS,eA]=(0,eh.createContextScope)(eO),[ew,eT]=eS(eO),ej=eu.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:o,...l}=e,[u,c]=(0,ev.useControllableState)({prop:n,defaultProp:i??!1,onChange:o,caller:eO});return(0,s.jsx)(ew,{scope:r,disabled:a,contentId:(0,ex.useId)(),open:u,onOpenToggle:eu.useCallback(()=>c(e=>!e),[c]),children:(0,s.jsx)(eb.Primitive.div,{"data-state":eR(u),"data-disabled":a?"":void 0,...l,ref:t})})});ej.displayName=eO;var eC="CollapsibleTrigger",eN=eu.forwardRef((e,t)=>
1{let{__scopeCollapsible:r,...n}=e,i=eT(eC,r);return(0,s.jsx)(eb.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":eR(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,eg.composeEventHandlers)(e.onClick,i.onOpenToggle)})});eN.displayName=eC;var eI="CollapsibleContent",eL=eu.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=eT(eI,e.__scopeCollapsible);return(0,s.jsx)(eE.Presence,{present:r||i.open,children:({present:e})=>(0,s.jsx)(ek,{...n,ref:t,present:e})})});eL.displayName=eI;var ek=eu.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...a}=e,o=eT(eI,r),[l,u]=eu.useState(n),c=eu.useRef(null),d=(0,ey.useComposedRefs)(t,c),p=eu.useRef(0),f=p.current,h=eu.useRef(0),m=h.current,y=o.open||l,g=eu.useRef(y),v=eu.useRef(void 0);return eu.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,e_.useLayoutEffect)(()=>{let e=c.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();p.current=t.height,h.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),u(n)}},[o.open,n]),(0,s.jsx)(eb.Primitive.div,{"data-state":eR(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y,...a,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:y&&i})});function eR(e){return e?"open":"closed"}var eD=e.i(288304),eP="Accordion",eB=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eM,e$,eU]=(0,em.createCollection)(eP),[eK,eZ]=(0,eh.createContextScope)(eP,[eU,eA]),eH=eA(),eq=eu.default.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,s.jsx)(eM.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,s.jsx)(eY,{...n,ref:t}):(0,s.jsx)(eJ,{...n,ref:t})})});eq.displayName=eP;var[eF,eG]=eK(eP),[ez,eV]=eK(eP,{collapsible:!1}),eJ=eu.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[l,u]=(0,ev.useControllableState)({prop:r,defaultProp:n??"",onChange:i,caller:eP});return(0,s.jsx)(eF,{scope:e.__scopeAccordion,value:eu.default.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:eu.default.useCallback(()=>a&&u(""),[a,u]),children:(0,s.jsx)(ez,{scope:e.__scopeAccordion,collapsible:a,children:(0,s.jsx)(eX,{...o,ref:t})})})}),eY=eu.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[o,l]=(0,ev.useControllableState)({prop:r,defaultProp:n??[],onChange:i,caller:eP}),u=eu.default.useCallback(e=>l((t=[])=>[...t,e]),[l]),c=eu.default.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return(0,s.jsx)(eF,{scope:e.__scopeAccordion,value:o,onItemOpen:u,onItemClose:c,children:(0,s.jsx)(ez,{scope:e.__scopeAccordion,collapsible:!0,children:(0,s.jsx)(eX,{...a,ref:t})})})}),[eW,eQ]=eK(eP),eX=eu.default.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...o}=e,l=eu.default.useRef(null),u=(0,ey.useComposedRefs)(l,t),c=e$(r),d="ltr"===(0,eD.useDirection)(i),p=(0,eg.composeEventHandlers)(e.onKeyDown,e=>{if(!eB.includes(e.key))return;let t=e.target,r=c().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let s=n,o=i-1,l=()=>{(s=n+1)>o&&(s=0)},u=()=>{(s=n-1)<0&&(s=o)};switch(e.key){case"Home":s=0;break;case"End":s=o;break;case"ArrowRight":"horizontal"===a&&(d?l():u());break;case"ArrowDown":"vertical"===a&&l();break;case"ArrowLeft":"horizontal"===a&&(d?u():l());break;case"ArrowUp":"vertical"===a&&u()}let p=s%i;r[p].ref.current?.focus()});return(0,s.jsx)(eW,{scope:r,disabled:n,direction:i,orientation:a,children:(0,s.jsx)(eM.Slot,{scope:r,children:(0,s.jsx)(eb.Primitive.div,{...o,"data-orientation":a,ref:u,onKeyDown:n?void 0:p})})})}),e0="AccordionItem",[e1,e2]=eK(e0),e4=eu.default.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,a=eQ(e0,r),o=eG(e0,r),l=eH(r),u=(0,ex.useId)(),c=n&&o.value.includes(n)||!1,d=a.disabled||e.disabled;return(0,s.jsx)(e1,{scope:r,open:c,disabled:d,triggerId:u,children:(0,s.jsx)(ej,{"data-orientation":a.orientation,"data-state":te(c),...l,...i,ref:t,disabled:d,open:c,onOpenChange:e=>{e?o.onItemOpen(n):o.onItemClose(n)}})})});e4.displayName=e0;var e9="AccordionHeader",e3=eu.default.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...n}=e,i=eQ(eP,r),a=e2(e9,r);return(0,s.jsx)(eb.Primitive.h3,{"data-orientation":i.orientation,"data-state":te(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});e3.displayName=e9;var e8="AccordionTrigger",e5=eu.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=eQ(eP,r),a=e2(e8,r),o=eV(e8,r),l=eH(r);return(0,s.jsx)(eM.ItemSlot,{scope:r,children:(0,s.jsx)(eN,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...n,ref:t})})});e5.displayName=e8;var e6="AccordionContent",e7=eu.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=eQ(eP,r),a=e2(e6,r),o=eH(r);return(0,s.jsx)(eL,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function te(e){return e?"open":"closed"}e7.displayName=e6;let tt=eu.forwardRef(({className:e,...t},r)=>(0,s.jsx)(e4,{ref:r,className:(0,X.cn)("border-b",e),...t}));tt.displayName="AccordionItem";let tr=eu.forwardRef(({className:e,children:t,...r},n)=>(0,s.jsx)(e3,{className:"flex mb-0",children:(0,s.jsxs)(e5,{ref:n,className:(0,X.cn)("flex flex-1 items-center justify-between py-6 text-xl font-bold transition-all hover:underline text-start [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,(0,s.jsx)(ef.default,{className:"size-6 shrink-0 text-contrast-1000 transition-transform duration-200"})]})}));tr.displayName=e5.displayName;let tn=eu.forwardRef(({className:e,children:t,...r},n)=>(0,s.jsx)(e7,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,s.jsx)("div",{className:(0,X.cn)("pb-4 pt-0",e),children:t})}));tn.displayName=e7.displayName;let ti=()=>{let e=ep();if(!e)return null;let{getAllReferences:t,isAccordionOpen:r,setIsAccordionOpen:n}=e,i=t();return 0===i.length?null:(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsx)(eq,{type:"single",collapsible:!0,className:"w-full border-t",value:r?"references":"",onValueChange:e=>n(!!e),children:(0,s.jsxs)(tt,{value:"references",children:[(0,s.jsx)(tr,{children:"References"}),(0,s.jsx)(tn,{children:(0,s.jsx)("div",{className:"space-y-4",children:i.map(({globalIndex:e,referenceContent:t,entryId:r})=>(0,s.jsxs)("div",{className:"flex items-start gap-2 text-base",children:[(0,s.jsxs)("span",{id:`reference-${r}`,"aria-label":`Reference ${e}`,className:"ms-1 font-medium",children:["[",e,"]"]}),(0,s.jsx)("div",{className:"flex-1 [&>*:first-child]:mt-0",children:(0,ee.documentToReactComponents)(t,tu())})]},r))})})]})})})},ta=({richTextContent:e})=>{if(e&&e.content&&Array.isArray(e.content))return e.content.flatMap(e=>e&&e.content&&Array.isArray(e.content)?e.content:[]).filter(e=>e&&e.data&&e.data.target?.sys?.contentType?.sys?.id==="richTextReference").filter((e,t,r)=>r.findIndex(t=>t.data.target.sys.id===e.data.target.sys.id)===t).map(e=>e.data.target).map((e,t)=>({referenceContent:e.fields.content,index:t+1,entryId:e.sys.id}))},ts=[o.EMBEDDED_ENTRY,o.EMBEDDED_ASSET,o.EMBEDDED_RESOURCE,o.TABLE,o.TABLE_ROW,o.TABLE_CELL,o.TABLE_HEADER_CELL,l.ASSET_HYPERLINK,l.EMBEDDED_ENTRY,l.EMBEDDED_RESOURCE,l.RESOURCE_HYPERLINK],to=e=>"text"===e.nodeType?""!==e.value:e.content.some(e=>to(e)),tl=(e,t)=>to(e)?t:null,tu=({references:e,onReferenceClick:t,customRichTextOptions:r={},getGlobalIndex:n}={})=>({renderNode:{...Object.fromEntries(ts.map(e=>[e,()=>(en.logger.warn(`Unsupported rich text content type enabled in CMS: ${e}`),null)])),[o.PARAGRAPH]:(e,t)=>tl(e,(0,s.jsx)("p",{className:"mt-2.5",children:t})),[o.QUOTE]:(e,t)=>tl(e,(0,s.jsx)("blockquote",{className:"border-s-4 border-black/30 ps-4 italic my-4",children:t})),[o.UL_LIST]:(e,t)=>(0,s.jsx)("ul",{className:"list-disc list-outside ps-7 [&>p]:mt-0",children:t}),[o.OL_LIST]:(e,t)=>(0,s.jsx)("ol",{className:"list-decimal list-outside ps-7 [&>p]:mt-0",children:t}),[o.LIST_ITEM]:(e,t)=>(0,s.jsx)("li",{children:t}),[o.HR]:()=>(0,s.jsx)("hr",{className:"mt-15.5 mb-8 border-greyscale/300"}),[l.HYPERLINK]:(e,t)=>{let r=e.data?.uri,n=r&&(r.startsWith("http")||r.startsWith("mailto:"));if(r?(0,er.getVideoId)(r):void 0)return(0,s.jsx)(ei.VideoDialog,{videoUrl:r,trigger:(0,s.jsx)("button",{type:"button",className:"text-start align-top underline cursor-pointer hover:opacity-80 ",children:t})});if(n)return(0,s.jsx)("a",{className:"typography-link",href:r,target:"_blank",rel:"noopener noreferrer",children:t});let i=(0,et.getNextLinkComponent)();return(0,s.jsx)(i,{href:r||"#",className:"typography-link",children:t})},[l.ENTRY_HYPERLINK]:(r,i)=>{let a=r.data?.target;if(!a?.fields)return null;let o=a.sys.id,l=a?.sys?.contentType?.sys?.id;if("richTextReference"!==l){let e=(0,et.getNextLinkComponent)(),t=(0,et.getPagePath)({contentTypeId:l,fields:a.fields});return t?(0,s.jsx)(e,{href:t,className:"typography-link",children:i}):i}let u=n?.(o),c=e?.find(e=>e.entryId===o),d=u??c?.index;return(0,s.jsxs)(s.Fragment,{children:[i,(0,s.jsxs)("a",{href:`#reference-${o}`,id:`reference-link-${o}`,"aria-label":`Go to reference ${d}`,className:"typography-link align-super text-[0.75em]",onClick:e=>{e.preventDefault(),t?.(),requestAnimationFrame(()=>{document.getElementById(`reference-${o}`)?.scrollIntoView({behavior:"smooth",block:"start"})})},children:["[",d,"]"]})]})},[o.HEADING_2]:(e,t)=>(0,s.jsx)("h2",{className:"typography-h3 font-normal mt-7.5 mb-4",children:t}),[o.HEADING_3]:(e,t)=>
1(0,s.jsx)("h3",{className:"typography-h4 font-medium mt-7.5 mb-4",children:t}),[o.HEADING_4]:(e,t)=>(0,s.jsx)("h4",{className:"typography-h5 mt-7.5 mb-3",children:t}),[o.HEADING_5]:(e,t)=>(0,s.jsx)("h5",{className:"typography-h6 mt-7.5 mb-2.5",children:t}),[o.HEADING_6]:(e,t)=>(0,s.jsx)("h6",{className:"typography-body mt-7.5 mb-2.5",children:t}),...r.renderNode??{}},renderMark:{[u.BOLD]:e=>(0,s.jsx)("strong",{children:e}),[u.ITALIC]:e=>(0,s.jsx)("em",{children:e}),[u.UNDERLINE]:e=>(0,s.jsx)("u",{children:e}),[u.CODE]:e=>(0,s.jsx)("code",{children:e}),[u.SUPERSCRIPT]:e=>(0,s.jsx)("sup",{children:e}),[u.SUBSCRIPT]:e=>(0,s.jsx)("sub",{children:e}),[u.STRIKETHROUGH]:e=>(0,s.jsx)("s",{children:e}),...r.renderMark??{}},renderText:void 0!==r.renderText?r.renderText:e=>e.split("\n").flatMap((e,t)=>[t>0&&(0,s.jsx)("br",{},`br-${t}`),e])}),tc=({content:e,className:t,blockId:r,...n})=>{let i=(0,eu.useId)(),a=r??i,o=ep(),l=null!==o,u=(0,eu.useMemo)(()=>(e=>{let t,r=(e=>{if(!e?.content)return"";let t=e=>"text"===e.nodeType?e.value:"content"in e&&Array.isArray(e.content)?e.content.map(t).join(""):"";return e.content.map(t).join("")})(e);if(!r.trim())return;let n=(t=String(r||""),eo.test(t)?"rtl":el.test(t)?"ltr":"neutral");return"rtl"===n?"rtl":"ltr"===n?"ltr":void 0})(e),[e]),c=!0!==n.disableDefaultRichTextOptions&&!1!==n.showReferences?ta({richTextContent:e}):void 0,d=(0,eu.useMemo)(()=>c?.map(e=>e.entryId).join(",")??"",[c]);(0,eu.useEffect)(()=>{if(l)return c?.length?(o.registerReferences(a,c.map(e=>({entryId:e.entryId,referenceContent:e.referenceContent}))),()=>{o.unregisterReferences(a)}):void o.unregisterReferences(a)},[a,l,d]);let p=l?o.getGlobalIndex:void 0,f=l?o.setIsAccordionOpen:void 0,h=(0,eu.useMemo)(()=>n.disableDefaultRichTextOptions?n.richTextOptions:tu({references:c,onReferenceClick:f?()=>f(!0):void 0,customRichTextOptions:n.richTextOptions,getGlobalIndex:p}),[c,n.disableDefaultRichTextOptions,n.richTextOptions,p,f]);return e&&e.content&&Array.isArray(e.content)?(0,s.jsx)("div",{dir:u,className:(0,X.cn)("typography-body typography-longform [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",t),children:(0,ee.documentToReactComponents)(e,h)}):null}},9633,e=>{"use strict";var t=e.i(530295),r=e.i(614594),n=e.i(190286),i=e.i(336454),a=e.i(859860),s=e.i(994930),o=e.i(533221);let l=({children:e})=>(0,t.jsx)(o.Container,{className:(0,n.cn)("flex justify-center items-center video-block","[[data-article-content]_&]:px-0","[[data-article-content]_&]:max-w-none","md:[[data-content-block]_&]:px-0","my-12 [[data-article-content]_&]:my-0","md:my-20 md:[[data-article-content]_&]:my-0","md:[[data-content-block]_&]:my-0"),children:(0,t.jsx)("div",{className:(0,n.cn)("w-full","max-w-[480px]","md:max-w-[720px]","xl:max-w-[800px]","[[data-article-content]_&]:max-w-none","md:[[data-article-content]_&]:max-w-none","xl:[[data-article-content]_&]:max-w-none"),children:e})});l.displayName="VideoBlockVideoContainer";let u=({className:e,cloudinaryVideo:r,title:n,youtubeVideoLink:i,youtubePreviewImageUrl:o,caption:u})=>{let c=Array.isArray(r)?r[0]:void 0;return i?(0,t.jsx)(l,{children:(0,t.jsxs)("figure",{children:[(0,t.jsx)(s.YouTubeVideo,{videoUrl:i,previewImageUrl:o,title:n,className:e}),u?(0,t.jsx)("figcaption",{className:"mt-2 text-sm",children:u}):null]})}):c?(0,t.jsx)(l,{children:(0,t.jsxs)("figure",{children:[(0,t.jsx)(a.CloudinaryVideo,{videoData:c,title:n,className:e}),u?(0,t.jsx)("figcaption",{className:"mt-2 text-sm",children:u}):null]})}):null};var c=e.i(878384);e.s(["VideoDialog",0,({videoUrl:e,youtubePreviewImageUrl:a,cloudinaryVideo:s,title:o,caption:l,trigger:d})=>{let[p,f]=(0,c.useState)(!1),h=(0,c.useRef)(null);return(0,t.jsxs)(r.Dialog,{open:p,onOpenChange:f,children:[(0,t.jsx)(r.DialogTrigger,{asChild:!0,children:d}),(0,t.jsxs)(r.DialogContent,{className:(0,n.cn)("sm:max-w-[95vw] md:max-w-[80vw] lg:max-w-[90vw] xl:max-w-[60vw] w-full max-h-[90vh]","p-0 border-0 bg-transparent shadow-none"),onOpenAutoFocus:e=>{if(e.preventDefault(),!h.current)return;let t=h.current.querySelector("button");t?t.focus():h.current.focus()},children:[(0,t.jsx)(r.DialogHeader,{className:"sr-only",showCloseButton:!1,children:(0,t.jsx)(r.DialogTitle,{children:o||"Video player"})}),(0,t.jsx)(r.DialogClose,{"aria-label":"Close",className:"absolute top-2 end-2 z-10 flex size-8 items-center justify-center rounded-full bg-white/90 text-black hover:bg-white",children:(0,t.jsx)(i.Icon,{name:"x-mark",decorative:!0,className:"size-4"})}
1),(0,t.jsx)("div",{ref:h,tabIndex:-1,className:"outline-none",children:(0,t.jsx)(u,{className:"max-h-[80vh]",youtubeVideoLink:e,youtubePreviewImageUrl:a,cloudinaryVideo:s,title:o,caption:l})})]})]})}],9633)},792605,944978,994930,e=>{"use strict";let t=e=>{try{let t=new URL(e);if(t.hostname.includes("youtu.be"))return t.pathname.slice(1)||void 0;if(t.hostname.includes("youtube.com"))return t.searchParams.get("v")||void 0;return}catch{return}};e.s(["getVideoId",0,t],792605);var r=e.i(530295),n=e.i(365177),i=e.i(190286),a=e.i(136655),s=e.i(336454);let o=({handlePlay:e,handlePreviewError:t,handlePreviewLoad:n,hasPreviewError:i,isLoading:o,previewImageUrl:l,title:u})=>{let c=(0,a.getNextImageComponent)();return(0,r.jsx)("button",{type:"button",className:"group absolute inset-0 z-20 flex w-full items-center justify-center",onClick:e,"aria-label":u?`Play video: ${u}`:"Play video",tabIndex:0,children:(0,r.jsxs)("div",{className:"relative h-full w-full flex items-center justify-center",children:[!i&&l&&(0,r.jsx)(c,{alt:u??"Video preview image",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105",fill:!0,onError:t,onLoad:n,priority:!0,sizes:"(max-width: 768px) 100vw, 60vw",src:l}),o?(0,r.jsx)("div",{className:"animate-spin rounded-full border-5 border-white/20 border-t-white/80 h-16 w-16",role:"status","aria-label":"Loading"}):(0,r.jsx)(s.Icon,{className:"absolute size-20 text-white/80 transition-transform duration-300 group-hover:scale-105",decorative:!0,name:"play"})]})})};var l=e.i(878384);let u=({handleRetry:e})=>(0,r.jsx)("div",{className:"bg-background",children:(0,r.jsx)(n.Alert,{variant:"destructive",className:"flex items-center justify-center w-full aspect-video",children:(0,r.jsxs)(n.AlertDescription,{className:"flex gap-6 flex-col items-center justify-center",children:[(0,r.jsx)("p",{children:"We could not load the video."}),(0,r.jsx)("button",{type:"button",onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e())},className:"focus-ring rounded-full border border-primary px-4 py-2 text-sm font-medium text-primary",children:"Retry"})]})})}),c=(0,l.createContext)({isReady:!1}),d=()=>(0,l.useContext)(c);e.s(["YouTubeIFrameAPIProvider",0,({children:e})=>{let t=(0,a.getNextScriptComponent)(),[n,i]=(0,l.useState)(!1),s=(0,l.useCallback)(()=>{if(window.YT?.Player)return void i(!0);let e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{e?.(),i(!0)}},[]),o=n&&window.YT?{isReady:!0,YT:window.YT}:{isReady:!1};return(0,r.jsxs)(c.Provider,{value:o,children:[(0,r.jsx)(t,{src:"https://www.youtube.com/iframe_api",strategy:"lazyOnload",onReady:s}),e]})}],944978),e.i(479578);var p=e.i(114245);let f=({videoId:e,className:t="absolute inset-0 h-full w-full",title:n="YouTube Video Player",onPlay:i,onPause:a,onEnd:s,onProgress:o,onError:u})=>{let c=d(),f=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useId)(),y=(0,l.useRef)({onPlay:i,onPause:a,onEnd:s,onProgress:o,onError:u});return y.current={onPlay:i,onPause:a,onEnd:s,onProgress:o,onError:u},(0,l.useEffect)(()=>{if(!c.isReady||!h.current||!e)return;f.current?.destroy(),f.current=null;let t=null,r=()=>{let e=(()=>{if(!f.current)return null;try{return{currentTime:f.current.getCurrentTime(),duration:f.current.getDuration()}}catch{return null}})();e&&y.current.onProgress?.(e)},n=()=>{t&&(clearInterval(t),t=null)};try{f.current=new c.YT.Player(m,{host:"https://www.youtube-nocookie.com",videoId:e,playerVars:{autoplay:1,playsinline:1},events:{onStateChange:e=>{let i=y.current;switch(e.data){case c.YT.PlayerState.PLAYING:t||(t=setInterval(r,250)),i.onPlay?.();break;case c.YT.PlayerState.PAUSED:n(),i.onPause?.();break;case c.YT.PlayerState.ENDED:n(),i.onEnd?.()}r()},onError:()=>y.current.onError?.()}})}catch{y.current.onError?.()}return()=>{n();try{f.current?.destroy()}catch(e){p.logger.error("Error destroying YouTube player",{error:e})}f.current=null}},[c.isReady,c.YT,e,m]),(0,r.jsx)("div",{ref:h,id:m,className:t,title:n})};var h=e.i(390271);e.i(383861);let m="https://i.ytimg.com/vi";e.s(["YouTubeVideo",0,({className:e,title:a,videoUrl:s,previewImageUrl:c})=>{let y=d(),[g,v]=(0,l.useState)("loading"),[b,_]=(0,l.useState)(!1),E=(0,l.useMemo)(()=>t(s),[s]),{onPlay:x,onProgress:O,onEnd:S}=(0,h.useVideoTracking)({host:h.VideoHost.YOUTUBE,url:E?`https://www.youtube.com/watch?v=${E}`:null}),A=(0,l.useMemo)(()=>
1{if(c)return c;if(E)return({maxRes:`${m}/${E}/maxresdefault.jpg`,hq:`${m}/${E}/hqdefault.jpg`}).hq},[c,E]);if(!y)return p.logger.error("[YouTubeVideo] YouTubeIFrameAPIProvider not available. Skipping rendering."),null;let{isReady:w}=y;return E?(0,r.jsx)("div",{className:(0,i.cn)("w-full ",e),children:(0,r.jsxs)("div",{className:"relative aspect-video w-full overflow-clip bg-black",role:"region","aria-label":a?`Video: ${a}`:"Video player",children:["error"===g&&(0,r.jsx)(u,{handleRetry:()=>v("playing")}),("preview"===g||"loading"===g||!w)&&(0,r.jsx)(o,{handlePlay:()=>v("playing"),handlePreviewError:()=>{_(!0),v("error")},isLoading:"loading"===g||!w,handlePreviewLoad:()=>v("preview"),hasPreviewError:b,previewImageUrl:A,title:a}),"playing"===g&&w&&E?(0,r.jsx)(f,{videoId:E,title:a,onError:()=>{v("error")},onPlay:x,onEnd:S,onProgress:O}):null]})}):(0,r.jsx)(n.Alert,{variant:"destructive",className:"w-full aspect-video flex items-center justify-center",children:(0,r.jsx)(n.AlertDescription,{children:"Unable to load video Please verify the URL."})})}],994930)},390271,e=>{"use strict";var t,r=e.i(878384);e.i(15424);var n=e.i(415035),i=((t={}).CLOUDINARY="cloudinary",t.YOUTUBE="youtube",t);e.s(["VideoHost",()=>i,"useVideoTracking",0,e=>{let t=(0,r.useMemo)(()=>({video_host:e.host,video_url:e.url}),[e]),i=(0,r.useRef)(null),a=(0,r.useRef)(!1),s=(0,r.useCallback)(()=>{a.current||(a.current=!0,i.current=0,(0,n.trackEvent)("video_start",{...t}))},[t]);return{onPlay:s,onProgress:(0,r.useCallback)(e=>{let{currentTime:r,duration:a}=e,s=i.current;if(null!==s&&(r<s||r-s>=5)){i.current=r;let e=r/a*100;(0,n.trackEvent)("video_progress",{...t,seconds_watched:+r.toFixed(2),total_seconds_in_video:+a.toFixed(2),percent_complete:+e.toFixed(2)})}},[t]),onEnd:(0,r.useCallback)(()=>{a.current=!1,i.current=null,(0,n.trackEvent)("video_complete",{...t})},[t])}}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.