PageSourceSearch

https://ga-dev-tools.google/component---src-pages-ga-4-event-builder-tsx-36f0c578a169dc9c4277.js

js ga-dev-tools.google collected 2026-10-01 08:35:15 UTC 370,619 bytes, 3 lines download raw bytes

1/*! For license information please see component---src-pages-ga-4-event-builder-tsx-36f0c578a169dc9c4277.js.LICENSE.txt */
2(self.webpackChunkga_dev_tools=self.webpackChunkga_dev_tools||[]).push([[281],{251:function(e,t){t.read=function(e,t,r,n,o){var a,i,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,p=r?-1:1,m=e[t+d];for(d+=p,a=m&(1<<-c)-1,m>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=p,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+e[t+d],d+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return i?NaN:1/0*(m?-1:1);i+=Math.pow(2,n),a-=u}return(m?-1:1)*i*Math.pow(2,a-n)},t.write=function(e,t,r,n,o,a){var i,s,l,u=8*a-o-1,c=(1<<u)-1,d=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:a-1,f=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=c?(s=0,i=c):i+d>=1?(s=(t*l-1)*Math.pow(2,o),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[r+m]=255&s,m+=f,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+m]=255&i,m+=f,i/=256,u-=8);e[r+m-f]|=128*h}},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(r,n,o){var a=n.prototype;a.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(n),i=o(this).endOf(e);if(a.isBefore(i))return 1}var s=o(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},14744:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(r){return!1}}function s(e,t,r){var o={};return r.isMergeableObject(e)&&a(e).forEach(function(t){o[t]=n(e[t],r)}),a(t).forEach(function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):o[a]=n(t[a],r))}),o}function l(e,r,a){(a=a||{}).arrayMerge=a.arrayMerge||o,a.isMergeableObject=a.isMergeableObject||t,a.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?a.arrayMerge(e,r,a):s(e,r,a):n(r,a)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var u=l;e.exports=u},15750:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,n){var o=r.prototype,a=o.format;n.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var r=this.$locale().formats,n=function(t,r){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var a=o&&o.toUpperCase();return n||r[o]||e[o]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})}(t,void 0===r?{}:r);return a.call(this,n)}}}()},17853:function(e,t,r){!function(e){"use strict";e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=o,e.exports.is_web_uri=a,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=o,e.exports.isWebUri=a;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function r(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var r,n,o,a,i,s="",l="";if(s=(r=t(e))[1],n=r[2],o=r[3],a=r[4],i=r[5],s&&s.length&&o.length>=0){if(n&&n.length){if(0!==o.length&&!/^\//.test(o))return}else if(/^\/\//.test(o))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(s.toLowerCase()))return l+=s+":",n&&n.length&&(l+="//"+n),l+=o,a&&a.length&&(l+="?"+a),i&&i.length&&(l+="#"+i),l}}}function n(e,n){if(r(e)){var o,a,i,s,l="",u="",c="",d="";if(l=(o=t(e))[1],u=o[2],a=o[3],i=o[4],s=o[5],l){if(n){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=l+":",d+="//"+u,c&&(d+=c),d+=a,i&&i.length&&(d+="?"+i),s&&s.length&&(d+="#"+s),d}}}function o(e){return n(e,!0)}function a(e){return n(e)||o(e)}}(e=r.nmd(e))},32017:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;
2if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!==o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},37872:function(e){e.exports=function(){"use strict";return function(e,t,r){t.prototype.isBetween=function(e,t,n,o){var a=r(e),i=r(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(a,n):!this.isBefore(a,n))&&(l?this.isBefore(i,n):!this.isAfter(i,n))||(s?this.isBefore(a,n):!this.isAfter(a,n))&&(l?this.isAfter(i,n):!this.isBefore(i,n))}}}()},46492:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.findRuleByName=t.parseRuleName=t.escapeRegExp=t.readToken=void 0;const n=/^[A-Z0-9_]+$/,o=/(\?|\+|\*)$/,a=/^(@|&|!)/,i="WS",s=r(71594);function l(e,t){let r=t.exec(e);return r&&0==r.index?0==r[0].length&&t.source.length>0?null:{type:null,text:r[0],rest:e.substr(r[0].length),start:0,end:r[0].length-1,fullText:r[0],errors:[],children:[],parent:null}:null}function u(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function c(e){e.rest="",e.children&&e.children.forEach(e=>c(e))}function d(e,t){e.start+=t,e.end+=t,e.children&&e.children.forEach(t=>d(t,e.start))}function p(e,t){t.errors&&t.errors.length&&t.errors.forEach(t=>e.push(t)),t.children&&t.children.forEach(t=>p(e,t))}function m(e){let t=o.exec(e),r=a.exec(e),n=t&&t[0]||"",i=r&&r[0]||"",s={raw:e,name:e.replace(o,"").replace(a,""),isOptional:"?"==n||"*"==n,allowRepetition:"+"==n||"*"==n,atLeastOne:"+"==n,lookupPositive:"&"==i,lookupNegative:"!"==i,pinned:"@"==i,lookup:!1,isLiteral:!1};return s.isLiteral="'"==s.name[0]||'"'==s.name[0],s.lookup=s.lookupNegative||s.lookupPositive,s}function f(e,t){let r=m(e);return t.cachedRules[r.name]||null}function h(e,t){if(e.children){let r=e.children.filter(e=>e.type&&t.test(e.type));for(let t=0;t<r.length;t++){let n=e.children.indexOf(r[t]);-1!=n&&e.children.splice(n,1)}e.children.forEach(e=>h(e,t))}}t.readToken=l,t.escapeRegExp=u,t.parseRuleName=m,t.findRuleByName=f;const g=["EOF"];class y{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=!!t&&!0===t.debug;let r=[],n=[];if(e.forEach(e=>{let t=m(e.name);if(t.name in this.cachedRules)r.push("Duplicated rule "+t.name);else{if(this.cachedRules[t.name]=e,e.bnf&&e.bnf.length)e.bnf.forEach(t=>{if("string"==typeof t[0]){if(m(t[0]).name==e.name){let t="Left recursion is not allowed, rule: "+e.name;-1==r.indexOf(t)&&r.push(t)}}t.forEach(e=>{if("string"==typeof e){let t=m(e);t.isLiteral||-1!=n.indexOf(t.name)||-1!=g.indexOf(t.name)||n.push(t.name)}})});else{let t="Missing rule content, rule: "+e.name;-1==r.indexOf(t)&&r.push(t)}i==e.name&&(e.implicitWs=!1),e.implicitWs&&-1==n.indexOf(i)&&n.push(i),e.recover&&-1==n.indexOf(e.recover)&&n.push(e.recover)}}),n.forEach(e=>{e in this.cachedRules||r.push("Missing rule "+e)}),r.length)throw new Error(r.join("\n"))}getAST(e,t){t||(t=this.grammarRules.filter(e=>!e.fragment&&0!=e.name.indexOf("%"))[0].name);let r=this.parse(e,t);if(r){p(r.errors,r),d(r,0),h(r,/^%/),this.options&&this.options.keepUpperRules||h(r,n);let e=r.rest;e&&new s.TokenError("Unexpected end of input: \n"+e,r),c(r),r.rest=e}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let o,a=null,c=m(t),d=this.debug&&!n.test(c.name);d&&console.log(new Array(r).join("│  ")+"Trying to get "+t+" from "+JSON.stringify(e.split("\n")[0]));let p=c.name,h=f(c.name,this);if("EOF"==c.name){if(e.length)return null;if(0==e.length)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!h&&c.isLiteral){let t=c.name.trim();if(t.startsWith('"')?t=JSON.parse(t):t.startsWith("'")&&(t=t.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),""===t)return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};o=new RegExp(u(t)),p=null}}catch(g){return g instanceof ReferenceError&&console.error(g),null}if(o){let t=l(e,o);if(t)return t.type=p,t}else{let t=h.bnf;t instanceof Array&&t.forEach(t=>{if(a)return;let n=null,o={type:c.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};h.fragment&&(o.fragment=!0);let u=e,p=0,f=t.length>0,g=!1;for(let e=0;e<t.length;e++)if("string"==typeof t[e]){let l,c=m(t[e]);f=f&&c.isOptional;let y=!1;do{if(l=null,h.implicitWs&&(l=this.parse(u,c.name,r+1),!l)){let e;do{if(e=this.parse(u,i,r+1),!e)break;o.text=o.text+e.text,o.end=o.text.length,e.parent=o,o.children.push(e),u=u.substr(e.text.length),p+=e.text.length}while(e&&e.text.length)}if(l=l||this.parse(u,c.name,r+1),c.lookupNegative){if(l)return;break}if(c.lookupPositive&&!l)return;if(!l){if(c.isOptional)break;if(c.atLeastOne&&y)break}if(l&&h.pinned==e+1&&(n=l,d&&console.log(new Array(r+1).join("│  ")+"└─ "+l.type+" PINNED")),l||(l=this.parseRecovery(h,u,r+1)),!l){if(!n)return;a=o,l={type:"SyntaxError",text:u,children:[],end:u.length,errors:[],fullText:"",parent:null,start:0,rest:""},u.length?new s.TokenError(`Unexpected end of input. Expecting ${c.name} Got: ${u}`,l):new s.TokenError(`Unexpected end of input. Missing ${c.name}`,l),d&&console.log(new Array(r+1).join("│  ")+"└─ "+l.type+" "+JSON.stringify(l.text))}if(y=!0,g=!0,"%%EMPTY%%"==l.type)break;l.start+=p,l.end+=p,!c.lookupPositive&&l.type&&(l.fragment?l.children&&l.children.forEac
2h(e=>{e.start+=p,e.end+=p,e.parent=o,o.children.push(e)}):(l.parent=o,o.children.push(l))),c.lookup&&(l.lookup=!0),d&&console.log(new Array(r+1).join("│  ")+"└─ "+l.type+" "+JSON.stringify(l.text)),c.lookup||l.lookup||(o.text=o.text+l.text,o.end=o.text.length,u=u.substr(l.text.length),p+=l.text.length),o.rest=u}while(l&&c.allowRepetition&&u.length&&!l.lookup)}else{let n=l(u,t[e]);if(!n)return;d&&console.log(new Array(r+1).join("│  ")+"└> "+JSON.stringify(n.text)+t[e].source),g=!0,n.start+=p,n.end+=p,o.text=o.text+n.text,o.end=o.text.length,u=u.substr(n.text.length),p+=n.text.length,o.rest=u}g&&(a=o,d&&console.log(new Array(r).join("│  ")+"├<─┴< PUSHING "+a.type+" "+JSON.stringify(a.text)))}),a&&h.simplifyWhenOneChildren&&1==a.children.length&&(a=a.children[0])}return a||d&&console.log(t+" NOT RESOLVED FROM "+e),a}parseRecovery(e,t,r){if(e.recover&&t.length){let n=this.debug;n&&console.log(new Array(r+1).join("│  ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split("\n")[0]+t.split("\n")[1]));let o,a={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""};do{if(o=this.parse(t,e.recover,r+1),o){new s.TokenError('Unexpected input: "'+a.text+`" Expecting: ${e.name}`,a);break}a.text=a.text+t[0],a.end=a.text.length,t=t.substr(1)}while(!o&&t.length>0);if(a.text.length>0&&o)return n&&console.log(new Array(r+1).join("│  ")+"Recovered text: "+JSON.stringify(a.text)),a}return null}}t.Parser=y,t.default=y},46782:function(e,t,r){"use strict";const n=r(46492);var o;!function(e){e.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[["'\"'",/[^"]*/,"'\"'"],['"\'"',/[^']*/,'"\'"']],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],e.defaultParser=new n.Parser(e.RULES,{debug:!1});const t=/^(!|&)/,r=/(\?|\+|\*)$/,o=/^%/;function a(e,a){if("string"==typeof e){if(t.test(e))return"";if(o.test(e)){let t=r.exec(e),o=t?t[0]+" ":"",s=function(e,t){let r=n.findRuleByName(e,t);return r&&1==r.bnf.length&&1==r.bnf[0].length&&(r.bnf[0][0]instanceof RegExp||'"'==r.bnf[0][0][0]||"'"==r.bnf[0][0][0])}(e,a);return s?i(e,a)+o:"("+i(e,a)+")"+o}return e}return e.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function i(e,t){let r=n.findRuleByName(e,t);return r?r.bnf.map(e=>function(e,t){return e.map(e=>a(e,t)).join(" ")}(e,t)).join(" | "):"RULE_NOT_FOUND {"+e+"}"}function s(e){let t=[];
2return e.grammarRules.forEach(r=>{if(!/^%/.test(r.name)){let n=r.recover?" /* { recoverUntil="+r.recover+" } */":"";t.push(r.name+" ::= "+i(r.name,e)+n)}}),t.join("\n")}e.emit=s;let l=0;function u(e){return new RegExp(e.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function c(e,t,r){let n=null,o=[];return t.children.forEach((a,i)=>{"Minus"==a.type&&function(e,t){throw console.log("reberia restar "+t+" a "+e),new Error("Difference not supported yet")}(n,a);let s=t.children[i+1];s=s&&"PrimaryDecoration"==s.type&&s.text||"";switch(a.type){case"SubItem":let t="%"+(r+l++);d(e,a,t),o.push(""+t+s);break;case"NCName":case"StringLiteral":o.push(""+a.text+s);break;case"CharCode":case"CharClass":if(s){let t={name:"%"+(r+l++),bnf:[[u(a.text)]]};e.push(t),o.push(""+t.name+s)}else o.push(u(a.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+a.type+" -> "+JSON.stringify(a.text))}n=a}),o}function d(e,t,r){let n=t.children.filter(e=>"SequenceOrDifference"==e.type).map(t=>c(e,t,r)),o={name:r,bnf:n},a=null;
2n.forEach(e=>{a=a||e.recover,delete e.recover}),0==r.indexOf("%")&&(o.fragment=!0),a&&(o.recover=a),e.push(o)}function p(t,r=e.defaultParser){let n=r.getAST(t);if(!n)throw new Error("Could not parse "+t);if(n.errors&&n.errors.length)throw n.errors[0];let o=[];return n.children.filter(e=>"Production"==e.type).map(e=>{let t=e.children.filter(e=>"NCName"==e.type)[0].text;d(o,e,t)}),o}e.getRules=p,e.Transform=function(t,r=e.defaultParser){return p(t.join(""),r)};class m extends n.Parser{constructor(t,r){super(p(t,r&&!0===r.debugRulesParser?new n.Parser(e.RULES,{debug:!0}):e.defaultParser),r)}emitSource(){return s(this)}}e.Parser=m}(o||(o={})),t.A=o},51029:function(e,t,r){"use strict";const n=r(51799),o="undefined"!=typeof window?r(84911).hp:r.g.Buffer;function a(e){return 12+4*Math.ceil(e.length/4)}function i(){return"undefined"==typeof window||"undefined"==typeof document}e.exports=function(e){let t=0;return t=null!==e&&"object"==typeof e?function(e){let t=0;try{let n=e;if(e instanceof Map?n=Object.fromEntries(e):e instanceof Set&&(n=Array.from(e)),ArrayBuffer.isView(e))return(r=e).BYTES_PER_ELEMENT?r.length*r.BYTES_PER_ELEMENT:-1;const a=JSON.stringify(n,(e,t)=>"bigint"==typeof t||"function"==typeof t?t.toString():void 0===t?"undefined":"symbol"==typeof t||t instanceof RegExp?t.toString():t);t=o.byteLength(a,"utf8")}catch(n){return new Error(-1)}var r;return t}(e):function(e){const t=[],r=[e];let s=0;for(;r.length;){const l=r.pop();if("boolean"==typeof l)s+=n.BYTES;else if("string"==typeof l)i()?s+=a(l):s+=l.length*n.STRING;else if("number"==typeof l)s+=n.NUMBER;else if("symbol"==typeof l)s+=Symbol.keyFor&&Symbol.keyFor(e)?Symbol.keyFor(e).length*n.STRING:(e.toString().length-8)*n.STRING;else if("bigint"==typeof l)s+=o.from(l.toString()).byteLength;else if("function"==typeof l)s+=l.toString().length;else if("object"==typeof l&&-1===t.indexOf(l)){t.push(l);for(const e in l)r.push(l[e])}}return s}(e),t}},51799:function(e){e.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}},67526:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,a=s(e),i=a[0],l=a[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,i,l)),c=0,d=l>0?i-4:i;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,a=[],i=16383,s=0,l=n-o;s<l;s+=i)a.push(u(e,s,s+i>l?l:s+i));1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=a[i],n[a.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,r){for(var n,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(l(n));return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},71147:function(e,t,r){"use strict";var n=r(75003),o=r(74848);t.A=(0,n.A)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},71594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenError=void 0;class r extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,!t||!t.errors)throw this;t.errors.push(this)}inspect(){return"SyntaxError: "+this.message}}t.TokenError=r},72546:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return"#"===e||""===e||Array.isArray(e)&&0===e.length||!1}e.r(t),e.d(t,{default:()=>E,get:()=>c,isRoot:()=>r,join:()=>P,remove:()=>b,removeUndefinedItems:()=>v,set:()=>h,split:()=>u,splitLast:()=>C});const n=/~1/g,o=/~0/g,a=/\/+/g,i=/(^[#/]*|\/+$)/g;function s(e){return e.replace(n,"/").replace(o,"~")}function l(e){return s(decodeURIComponent(e))}function u(e){if(null==e||"string"!=typeof e||r(e))return Array.isArray(e)?e:[];const t=e.indexOf("#")>=0?l:s,n=(e=(e=e.replace(a,"/")).replace(i,"")).split("/");for(let r=0,o=n.length;r<o;r+=1)n[r]=t(n[r]);return n}function c(e,t,n=void 0){if(null==t||null==e)return n;if(r(t))return e;const o=d(e,u(t));return void 0===o?n:o}function d(e,t){const r=t.shift();if(void 0!==e)return void 0!==r?d(e[r],t):e}const p=/^\[.*\]$/,m=/^\[(.+)\]$/;function f(e,t){return"__proto__"===e||"constructor"==e&&t.length>0&&"prototype"==t[0]}function h(e,t,r){if(null==t)return e;const n=u(t);if(0===n.length)return e;null==e&&(e=p.test(n[0])?[]:{});let o,a,i=e;for(;n.length>1;)o=n.shift(),a=p.test(n[0]),f(o,n)||(i=y(i,o,a));return o=n.pop(),g(i,o,r),e}function g(e,t,r){let n;const o=t.match(m);"[]"===t&&Array.isArray(e)?e.push(r):o?(n=o.pop(),e[n]=r):e[t]=r}function y(e,t,r){if(null!=e[t])return e[t];const n=r?[]:{};return g(e,t,n),n}function v(e){let t=0,r=0;for(;t+r<e.length;)void 0===e[t+r]&&(r+=1),e[t]=e[t+r],t+=1;return e.length=e.length-r,e}function b(e,t,r){const n=u(t),o=n.pop(),a=c(e,n);return a&&delete a[o],Array.isArray(a)&&!0!==r&&v(a),e}const w=/\/+/g,x=/~/g,A=/\//g;function S(e,t){if(0===e.length)return t?"#":"";for(let r=0,n=e.length;r<n;r+=1)e[r]=e[r].replace(x,"~0").replace(A,"~1"),t&&(e[r]=encodeURIComponent(e[r]));return((t?"#/":"/")+e.join("/")).replace(w,"/")}function P(e,...t){const r=[];if(Array.isArray(e))return S(e,!0===arguments[1]);const n=arguments[arguments.length-1],o="boolean"==typeof n?n:e&&"#"===e[0];for(let i=0,s=arguments.length;i<s;i+=1)r.push.apply(r,u(arguments[i]));const a=[];for(let i=0,s=r.length;i<s;i+=1)if(".."===r[i]){if(0===a.length)return o?"#":"";a.pop()}else a.push(r[i]);return S(a,o)}function C(e){const t=u(e);if(0===t.length)return"string"==typeof e&&"#"===e[0]?["#",t[0]]:["",void 0];if(1===t.length)return"#"===e[0]?["#",t[0]]:["",t[0]];const r=t.pop();return[P(t,"#"===e[0]),r]}const E={get:c,set:h,remove:b,join:P,split:u,splitLast:C,isRoot:r,removeUndefinedItems:v};return t})()},74353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",a="minute",i="hour",s="day",l="week",u="month",c="quarter",d="year",p="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,u),a=r-o<0,i=t.clone().add(n+(a?-1:1),u);return+(-(n+(r-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:p,h:i,m:a,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",A=function(e){return e instanceof E||!(!e||!e[x])},S=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();w[a]&&(o=a),r&&(w[a]=r,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;w[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},P=function(e,t){if(A(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new E(r)},C=v;C.l=S,C.i=A,C.w=function(e,t){return P(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===m)},y.isSame=function(e,t){var r=P(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return P(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<P(e)},y.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,n=!!C.u(t)||t,c=C.p(e),m=function(e,t){var o=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(s)},f=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},h=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return n?m(1,0):m(31,11);case u:return n?m(1,g):m(0,g+1);case l:var b=this.$locale().weekStart||0,w=(h<b?h+7:h)-b;return m(n?y-w:y+(6-w),g);case s:case p:return f(v+"Hours",0);case i:return f(v+"Minutes",1);case a:return f(v+"Seconds",2);case o:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var r,l=C.p(e),c="set"+(this.$u?"UTC":""),m=(r={},r[s]=c+"Date",r[p]=c+"Date",r[u]=c+"Month",r[d]=c+"FullYear",r[i]=c+"Hours",r[a]=c+"Minutes",r[o]=c+"Seconds",r[n]=c+"Milliseconds",r)[l],f=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var h=this.clone().set(p,1);h.$d[m](f),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else m&&this.$d[m](f);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(n,c){var p,m=this;n=Number(n);var f=C.p(c),h=function(e){var t=P(m);return C.w(t.date(t.date()+Math.round(e*n)),m)};if(f===u)return this.set(u,this.$M+n);if(f===d)return this.set(d,this.$y+n);if(f===s)return h(1);if(f===l)return h(7);var g=(p={},p[a]=t,p[i]=r,p[o]=e,p)[f]||1,y=this.$d.getTime()+n*g;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||m;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),a=this.$H,i=this.$m,s=this.$M,l=r.weekdays,u=r.months,c=r.meridiem,d=function(e,r,o,a){return e&&(e[r]||e(t,n))||o[r].slice(0,a)},p=function(e){return C.s(a%12||12,e,"0")},f=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,u,3);
vendor: 4,063 bytes, line 2
2case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,l,2);case"ddd":return d(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return C.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(a,i,!0);case"A":return f(a,i,!1);case"m":return String(i);case"mm":return C.s(i,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,p,m){var f,h=this,g=C.p(p),y=P(n),v=(y.utcOffset()-this.utcOffset())*t,b=this-y,w=function(){return C.m(h,y)};switch(g){case d:f=w()/12;break;case u:f=w();break;case c:f=w()/3;break;case l:f=(b-v)/6048e5;break;case s:f=(b-v)/864e5;break;case i:f=b/r;break;case a:f=b/t;break;case o:f=b/e;break;default:f=b}return m?f:C.a(f)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return w[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=S(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return P.prototype=D,[["$ms",n],["$s",o],["$m",a],["$H",i],["$W",s],["$M",u],["$y",d],["$D",p]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),P.extend=function(e,t){return e.$i||(e(t,E,P),e.$i=!0),P},P.locale=S,P.isDayjs=A,P.unix=function(e){return P(1e3*e)},P.en=w[b],P.Ls=w,P.p={},P}()},83826:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,a){var i=o.prototype;a.utc=function(e){return new o({date:e,utc:!0,args:arguments})},i.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},i.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=i.utcOffset;i.utcOffset=function(n,o){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],a=o[0],i=60*+o[1]+ +o[2];return 0===i?0:"+"===a?i:-i}(n),null===n))return this;var i=Math.abs(n)<=16?60*n:n;if(0===i)return this.utc(o);var s=this.clone();if(o)return s.$offset=i,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l,s};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(e,t,r){if(e&&this.$u===e.$u)return p.call(this,e,t,r);var n=this.local(),o=a(e).local();return p.call(n,o,t,r)}}}()},84911:function(e,t,r){"use strict";const n=r(67526),o=r(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const i=2147483647;function s(e){if(e>
vendor: 6,118 bytes, line 2
2i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=s(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return m(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const o=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function m(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(o)return n?-1:H(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){let a,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,r/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){let n=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===l)return n*i}else-1!==n&&(a-=a-n),n=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){let r=!0;for(let n=0;n<l;n++)if(u(e,a+n)!==u(t,n)){r=!1;break}if(r)return a}return-1}function w(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const a=t.length;let i;for(n>a/2&&(n=a/2),i=0;i<n;++i){const n=parseInt(t.substr(2*i,2),16);if(K(n))return i;e[r+i]=n}return i}function x(e,t,r,n){return G(H(t,e.length-r),e,r,n)}function A(e,t,r,n){return G(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return G(q(t),e,r,n)}function P(e,t,r,n){return G(function(e,t){let r,n,o;const a=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let a=null,i=t>239?4:t>223?3:t>191?2:1;if(o+i<=r){let r,n,s,l;switch(i){case 1:t<128&&(a=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(a=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>
vendor: 9,046 bytes, line 2
265535&&l<1114112&&(a=l))}}null===a?(a=65533,i=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=i}return function(e){const t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=D));return r}(n)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(Z(t,Uint8Array))o+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const s=Math.min(a,i),u=this.slice(n,o),c=e.slice(t,r);for(let l=0;l<s;++l)if(u[l]!==c[l]){a=u[l],i=c[l];break}return a<i?-1:i<a?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function M(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let a=t;a<r;++a)o+=J[e[a]];return o}function k(e,t,r){const n=e.slice(t,r);let o="";for(let a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,o,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n,o){U(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function $(e,t,r,n,o){U(t,n,o,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function V(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return t=+t,r>>>=0,a||V(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return t=+t,r>>>=0,a||V(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],o=1,a=0;for(;++a<t&&(o*=256);)n+=this[e+a]*o;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X(function(e){Y(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),l.prototype.readBigUInt64BE=X(function(e){Y(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],o=1,a=0;for(;++a<t&&(o*=256);)n+=this[e+a]*o;
vendor: 6,269 bytes, line 2
2return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,o=1,a=this[e+--n];for(;n>0&&(o*=256);)a+=this[e+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X(function(e){Y(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=X(function(e){Y(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||z(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){_(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){_(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=X(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let o=0,a=1,i=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===i&&0!==this[t+o-1]&&(i=1),this[t+o]=(e/a|0)-i&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}let o=r-1,a=1,i=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/a|0)-i&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=X(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const a=l.isBuffer(e)?e:l.from(e,n),i=a.length;
2if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%i]}return this};const j={};function L(e,t,r){j[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function B(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,o,a){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=a>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(a+1)}${n}`:`>= -(2${n} ** ${8*(a+1)-1}${n}) and < 2 ** ${8*(a+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){Y(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||z(t,e.length-(r+1))}(n,o,a)}function Y(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,r){if(Math.floor(e)!==e)throw Y(e,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),L("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),L("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=B(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=B(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function H(e,t){let r;t=t||1/0;const n=e.length;let o=null;const a=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},88569:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,o){var a,i=function(e,r,n){void 0===n&&(n={});var o=new Date(e),a=function(e,r){void 0===r&&(r={});var n=r.timeZoneName||"short",o=e+"|"+n,a=t[o];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),t[o]=a),a}(r,n);return a.formatToParts(o)},s=function(t,r){for(var n=i(t,r),a=[],s=0;s<n.length;s+=1){var l=n[s],u=l.type,c=l.value,d=e[u];d>=0&&(a[d]=parseInt(c,10))}var p=a[3],m=24===p?0:p,f=a[0]+"-"+a[1]+"-"+a[2]+" "+m+":"+a[4]+":"+a[5]+":000",h=+t;return(o.utc(f).valueOf()-(h-=h%1e3))/6e4},l=n.prototype;l.tz=function(e,t){void 0===e&&(e=a);
vendor: 4,806 bytes, line 2
2var r,n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),l=Math.round((i-new Date(s))/1e3/60),u=15*-Math.round(i.getTimezoneOffset()/15)-l;if(Number(u)){if(r=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),r=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var r=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(r,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,r){var n=r&&t,i=r||t||a,l=s(+o(),i);if("string"!=typeof e)return o(e).tz(i);var u=function(e,t,r){var n=e-60*t*1e3,o=s(n,r);if(t===o)return[n,t];var a=s(n-=60*(o-t)*1e3,r);return o===a?[n,o]:[e-60*Math.min(o,a)*1e3,Math.max(o,a)]}(o.utc(e,n).valueOf(),l,i),c=u[0],d=u[1],p=o(c).utcOffset(d);return p.$x.$timezone=i,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){a=e}}}()},90445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,n=i.meridiem;if(n){for(var o=1;o<=24;o+=1)if(e.indexOf(n(o,0,t))>-1){r=o>12;break}}else r=e===(t?"pm":"PM");return r},p={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[n,l("day")],Do:[a,function(e){var t=i.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[o,l("week")],ww:[n,l("week")],M:[o,l("month")],MM:[n,l("month")],MMM:[a,function(e){var t=c("months"),r=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[a,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function m(r){var n,o;n=r,o=i&&i.formats;for(var a=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,n){var a=n&&n.toUpperCase();return r||o[n]||e[n]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=p[u],d=c&&c[0],m=c&&c[1];a[l]=m?{regex:d,parser:m}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var o=a[r];if("string"==typeof o)n+=o.length;else{var i=o.regex,l=o.parser,u=e.slice(n),c=i.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,o=n.parse;n.parse=function(e){var t=e.date,n=e.utc,a=e.args;this.$u=n;var s=a[1];if("string"==typeof s){var l=!0===a[2],u=!0===a[3],c=l||u,d=a[2];u&&(d=a[2]),i=this.$locale(),!l&&d&&(i=r.Ls[d]),this.$d=function(e,t,r,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=m(t)(e),a=o.year,i=o.month,s=o.day,l=o.hours,u=o.minutes,c=o.seconds,d=o.milliseconds,p=o.zone,f=o.week,h=new Date,g=s||(a||i?1:h.getDate()),y=a||h.getFullYear(),v=0;a&&!i||(v=i>0?i-1:h.getMonth());var b,w=l||0,x=u||0,A=c||0,S=d||0;return p?new Date(Date.UTC(y,v,g,w,x,A,S+60*p.offset*1e3)):r?new Date(Date.UTC(y,v,g,w,x,A,S)):(b=new Date(y,v,g,w,x,A,S),f&&(b=n(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,s,n,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){a[1]=s[f-1];var h=r.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}
2f===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},97375:function(e){e.exports=function(){"use strict";return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return n.bind(this)(a)}}}()},99059:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Km}});var n=r(44115),o=r(58168),a=r(96540),i=r.t(a,2),s=r(11848),l=r(14073),u=r(69890),c=r(16474),d=r(71147),p=r(85787),m=r(50401),f=r(17437);var h=e=>{let{href:t,linkTitle:r,label:n,value:o,onChange:a,required:i,helperText:s,disabled:l,extraAction:c,id:d}=e;return(0,f.Y)(u.A,{InputProps:{endAdornment:(0,f.Y)("span",{style:{display:"inline-flex"}},c,(0,f.Y)(m.A,{href:t,title:r,hover:!0}))},id:d,size:"medium",variant:"outlined",fullWidth:!0,label:n,value:void 0===o?"":o,onChange:e=>a(e.target.value),required:i,helperText:s,disabled:l,multiline:!0,maxRows:15,minRows:15})},g=r(447),y=r(98587),v=r(34164),b=r(89452),w=r(39599),x=r(75659),A=r(25669),S=r(44675);var P=a.createContext(),C=r(38413),E=r(31609);function D(e){return(0,E.Ay)("MuiGrid",e)}const M=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var O=(0,C.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...M.map(e=>`grid-xs-${e}`),...M.map(e=>`grid-sm-${e}`),...M.map(e=>`grid-md-${e}`),...M.map(e=>`grid-lg-${e}`),...M.map(e=>`grid-xl-${e}`)]),T=r(74848);const k=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function I(e){const t=parseFloat(e);return`${t}
2${String(e).replace(String(t),"")||"px"}`}function _({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(e=>{""===r&&0!==t[e]&&(r=e)});const n=Object.keys(e).sort((t,r)=>e[t]-e[r]);return n.slice(0,n.indexOf(r))}const R=(0,s.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])}),n}(i,u,t));const d=[];return u.forEach(e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>(0,o.A)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),function({theme:e,ownerState:t}){const r=(0,b.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,b.NI)({theme:e},r,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${O.item}`]={maxWidth:"none"}),t})},function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,b.kW)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=_({breakpoints:e.breakpoints.values,values:t})),o=(0,b.NI)({theme:e},t,(t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${I(a)}`,[`& > .${O.item}`]:{paddingTop:I(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${O.item}`]:{paddingTop:0}}})}return o},function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,b.kW)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=_({breakpoints:e.breakpoints.values,values:t})),o=(0,b.NI)({theme:e},t,(t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${I(a)})`,marginLeft:`-${I(a)}`,[`& > .${O.item}`]:{paddingLeft:I(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${O.item}`]:{paddingLeft:0}}})}return o},function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,a)=>{let i={};if(t[a]&&(r=t[a]),!r)return n;if(!0===r)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,b.kW)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof s?s[a]:s;if(null==l)return n;const u=Math.round(r/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${u} + ${I(r)})`;c={flexBasis:e,maxWidth:e}}}i=(0,o.A)({flexBasis:u,flexGrow:0,maxWidth:u},c)}return 0===e.breakpoints.values[a]?Object.assign(n,i):n[e.breakpoints.up(a)]=i,n},{})});const $=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}}),r}(a,l));const c=[];l.forEach(t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]};return(0,x.A)(d,D,t)},V=a.forwardRef(function(e,t){const r=(0,A.b)({props:e,name:"MuiGrid"}),{breakpoints:n}=(0,S.A)(),i=(0,w.A)(r),{className:s,columns:l,columnSpacing:u,component:c="div",container:d=!1,direction:p="row",item:m=!1,rowSpacing:f,spacing:h=0,wrap:g="wrap",zeroMinWidth:b=!1}=i,x=(0,y.A)(i,k),C=f||h,E=u||h,D=a.useContext(P),M=d?l||12:D,O={},I=(0,o.A)({},x);n.keys.forEach(e=>{null!=x[e]&&(O[e]=x[e],delete I[e])});const _=(0,o.A)({},i,{columns:M,container:d,direction:p,item:m,rowSpacing:C,columnSpacing:E,wrap:g,zeroMinWidth:b,spacing:h},O,{breakpoints:n.keys}),V=$(_);return(0,T.jsx)(P.Provider,{value:M,children:(0,T.jsx)(R,(0,o.A)({ownerState:_,className:(0,v.A)(V.root,s),as:c,ref:t},I))})});var N=V,F=r(72205),j=r(80795),L=r(4953),B=r(21778),U=r(29881);let Y=function(e){return e.String="string",e.Number="number",e}({}),z=function(e){return e.Custom="Custom",e.AllApps="All apps",e.RetailEcommerce="Retail/Ecommerce",e.Jobs_Edu_LocalDeails_RealEstate="Jobs, Education, Local Deals, Real Estate",e.Travel="Travel (Hotel/Air)",e.Games="Games",e}({}),W=function(e){return e.CustomEvent="custom_event",e.AdImpression="ad_impression",e.AddPaymentInfo="add_payment_info",e.AddShippingInfo="add_shipping_info",e.AddToCart="add_to_cart",e.AddToWishlist="add_to_wishlist",e.BeginCheckout="begin_checkout",e.CampaignDetails="campaign_details",e.EarnVirtualCurrency="earn_virtual_currency",e.GenerateLead="generate_lead",e.JoinGroup="join_group",e.LevelUp="level_up",e.Login="login",e.PostScore="post_score",e.Purchase="purchase",e.Refund="refund",e.RemoveFromCart="remove_from_cart",e.ScreenView="screen_view",e.Search="search",e.SelectContent="select_content",e.SelectItem="select_item",e.SelectPromotion="select_promotion",e.Share="share",e.SignUp="sign_up",e.SpendVirtualCurrency="spend_virtual_currency",e.TutorialBegin="tutorial_begin",e.TutorialComplete="tutorial_complete",e.UnlockAchievement="unlock_achievement",e.ViewCart="view_cart",e.ViewItem="view_item",e.ViewItemList="view_item_list",e.ViewPromotion="view_promotion",e.ViewSearchResults="view_search_results",e.InAppPurchase="in_app_purchase",e}({}),H=function(e){return e.APISecret="api secret",e.FirebaseAppID="firebase app id",e.AppInstanceID="app instance id",e.MeasurementID="measurement id",e.ClientID="client id",e.UserId="user id",e.EventCategory="event category",e.EventName="event name",e.TimestampMicros="UNIX timestamp in microseconds",e.TimezoneSelect="Timezone",e.NonPersonalizedAds="non personalized ads",e.Payload="payload",e.Coupon="#/events/0/params/coupon",e.Currency="#/events/0/params/currency",e.Value="#/events/0/params/value",e.ItemId="#/events/0/params/item_id",e.TransactionId="#/events/0/params/transaction_id",e.Affiliation="#/events/0/params/affiliation",e.Shipping="#/events/0/params/shipping",e.Tax="#/events/0/params/tax",e.IpOverride="ip address",e.City="city",e.RegionId="region id",e.CountryId="c
2ountry id",e.SubcontinentId="subcontinent id",e.ContinentId="continent id",e.DeviceCategory="device category",e.DeviceLanguage="device language",e.DeviceScreenResolution="device screen resolution",e.DeviceOperatingSystem="device operating system",e.DeviceOperatingSystemVersion="device operating system version",e.DeviceModel="device model",e.DeviceBrand="device brand",e.DeviceBrowser="device browser",e.DeviceBrowserVersion="device browser version",e.UserAgent="user agent",e}({}),q=function(e){return e.Parameters="a",e.Items="b",e.EventType="c",e.UseFirebase="d",e.TimestampMicros="e",e.NonPersonalizedAds="f",e.EventData="g",e.FirebaseAppId="h",e.MeasurementId="i",e.EventName="j",e.APISecret="k",e.UserId="l",e.UserProperties="m",e.ClientId="n",e.AppInstanceId="o",e.Version="p",e.UseTextBox="q",e.Payload="r",e.PayloadObj="s",e.PayloadError="t",e}({});const G=(e,t)=>({type:Y.String,name:e,value:void 0,exampleValue:t}),Z=(e,t)=>({type:Y.Number,name:e,value:void 0,exampleValue:t}),K=function(e,t,r,n,o){return void 0===o&&(o=["web","app"]),{type:e,categories:t,parameters:r,items:void 0===n?void 0:[n],clients:o}},J=K(W.CustomEvent,[z.Custom],[],[]),X=K(W.AdImpression,[z.AllApps],[G("ad_platform","MoPub"),G("ad_source","AdColony"),G("ad_format","Banner"),G("ad_unit_name","Banner_03"),G("currency","USD"),Z("value",3.99)],void 0,["app"]),Q=K(W.AddPaymentInfo,[z.RetailEcommerce],[G("coupon","SUMMER_FUN"),G("currency","USD"),G("payment_type","Credit Card"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),ee=K(W.AddShippingInfo,[z.RetailEcommerce],[G("coupon","SUMMER_FUN"),G("currency","USD"),G("shipping_tier","Ground"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),te=K(W.AddToCart,[z.RetailEcommerce],[G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),re=K(W.AddToWishlist,[z.RetailEcommerce],[G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),ne=K(W.BeginCheckout,[z.RetailEcommerce],[G("coupon","SUMMER_FUN"),G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),oe=K(W.CampaignDetails,[z.AllApps],[G("campaign_id","SUMMER_FUN"),G("campaign","Summer_fun"),G("source","google"),G("medium","cpc"),G("term","summer+travel"),G("content","logolink")]),ae=K(W.EarnVirtualCurrency,[z.AllApps],[G("virtual_currency_name","Gems"),Z("value",5)]),ie=K(W.GenerateLead,[z.RetailEcommerce],[G("currency","USD"),Z("value",99.99)]),se=K(W.InAppPurchase,[z.AllApps],[G("currency","USD"),Z("value",30.03),Z("quantity",3),G("product_id","ABC123456789"),G("subscription","true"),G("free_trial","false"),G("price_is_discounted","false")],void 0,["app"]),le=K(W.JoinGroup,[z.AllApps],[G("group_id","G_12345")]),ue=K(W.LevelUp,[z.Games],[Z("level",5),G("character","Player 1")]),ce=K(W.Login,[z.AllApps],[G("method","Google")]),de=K(W.PostScore,[z.Games],[Z("score",1e4),Z("level",5),G("character","Player 1")]),pe=K(W.Purchase,[z.AllApps],[G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),G("currency","USD"),G("transaction_id","T_12345"),Z("shipping",3.33),Z("tax",1.11),Z("value",12.21)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("tax",1.11),Z("price",9.99),G("currency","USD")]),me=K(W.Refund,[z.AllApps],[G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),G("currency","USD"),G("transaction_id","T_12345"),Z("shipping",3.33),Z("tax",1.11),Z("value",12.21)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("tax",1.11),Z("price",9.99),G("currency","USD")]),fe=K(W.RemoveFromCart,[z.RetailEcommerce],[G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),he=K(W.ScreenView,[z.AllApps],[G("screen_class","MainActivity"),G("screen_name","About")],void 0,["app"]),ge=K(W.Search,[z.AllApps],[G("search_term","t-shirts")]),ye=K(W.SelectContent,[z.AllApps],[G("content_type","product"),G("item_id","I_12345")]),ve=K(W.SelectItem,[z.RetailEcommerce],[G("item_list_name","Related products"),G("item_list_id","related_products")],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),Z("index",5),G("item_brand","Gucci"),G("item_category","pants"),G("item_list_name","Related products"),G("item_list_id","related_products"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),be=K(W.SelectPromotion,[z.RetailEcommerce],[G("location_id","L_12345")],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("promotion_id","P_12345"),G("promotion_name","Summer Sale"),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),G("creative_name","summer_banner2"),G("creative_slot","featured_a
2pp_1"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),G("location_id","L_12345"),Z("price",9.99),G("currency","USD")]),we=K(W.Share,[z.AllApps],[G("method","Twitter"),G("content_type","image"),G("content_id","C_12345")]),xe=K(W.SignUp,[z.AllApps],[G("method","Google")]),Ae=K(W.SpendVirtualCurrency,[z.AllApps],[G("item_name","Starter Boost"),G("virtual_currency_name","Gems"),Z("value",5)]),Se=K(W.TutorialBegin,[z.AllApps],[]),Pe=K(W.TutorialComplete,[z.AllApps,z.Games],[]),Ce=K(W.UnlockAchievement,[z.Games],[G("achievement_id","A_12345")]),Ee=K(W.ViewCart,[z.RetailEcommerce],[G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),De=K(W.ViewItem,[z.RetailEcommerce],[G("currency","USD"),Z("value",7.77)],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),Me=K(W.ViewItemList,[z.RetailEcommerce],[G("item_list_name","Related products"),G("item_list_id","related_products")],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),Z("index",5),G("item_brand","Gucci"),G("item_category","pants"),G("item_list_name","Related products"),G("item_list_id","related_products"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),Oe=K(W.ViewPromotion,[z.RetailEcommerce],[G("location_id","L_12345")],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("promotion_id","P_12345"),G("promotion_name","Summer Sale"),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),G("creative_name","summer_banner2"),G("creative_slot","featured_app_1"),Z("discount",2.22),G("item_brand","Gucci"),G("item_category","pants"),G("item_variant","Black"),G("location_id","L_12345"),Z("price",9.99),G("currency","USD")]),Te=K(W.ViewSearchResults,[z.RetailEcommerce],[G("search_term","Clothing")],[G("item_id","SKU_12345"),G("item_name","jeggings"),Z("quantity",1),G("affiliation","Google Store"),G("coupon","SUMMER_FUN"),Z("discount",2.22),Z("index",5),G("item_brand","Gucci"),G("item_category","pants"),G("item_list_name","Related products"),G("item_list_id","related_products"),G("item_variant","Black"),Z("price",9.99),G("currency","USD")]),ke=e=>{switch(e){case W.CustomEvent:return J;case W.AdImpression:return X;case W.AddPaymentInfo:return Q;case W.AddShippingInfo:return ee;case W.AddToCart:return te;case W.AddToWishlist:return re;case W.BeginCheckout:return ne;case W.CampaignDetails:return oe;case W.EarnVirtualCurrency:return ae;case W.GenerateLead:return ie;case W.InAppPurchase:return se;case W.JoinGroup:return le;case W.LevelUp:return ue;case W.Login:return ce;case W.PostScore:return de;case W.Purchase:return pe;case W.Refund:return me;case W.RemoveFromCart:return fe;case W.ScreenView:return he;case W.Search:return ge;case W.SelectContent:return ye;case W.SelectItem:return ve;case W.SelectPromotion:return be;case W.Share:return we;case W.SignUp:return xe;case W.SpendVirtualCurrency:return Ae;case W.TutorialBegin:return Se;case W.TutorialComplete:return Pe;case W.UnlockAchievement:return Ce;case W.ViewCart:return Ee;case W.ViewItem:return De;case W.ViewItemList:return Me;case W.ViewPromotion:return Oe;case W.ViewSearchResults:return Te;default:throw new Error("Unsupported event type: "+e)}},Ie=Object.values(W).map(e=>ke(e)),_e=(e,t)=>{const r=t?"app":"web";return Ie.filter(t=>t.categories.find(t=>t===e)&&t.clients.includes(r))};var Re=r(58067);const $e="function"==typeof Buffer,Ve="function"==typeof TextDecoder?new TextDecoder:void 0,Ne="function"==typeof TextEncoder?new TextEncoder:void 0,Fe=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/="),je=(e=>{let t={};return e.forEach((e,r)=>t[e]=r),t})(Fe),Le=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Be=String.fromCharCode.bind(String),Ue="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Ye=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),ze=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),We=e=>{let t,r,n,o,a="";const i=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,a+=Fe[t>>18&63]+Fe[t>>12&63]+Fe[t>>6&63]+Fe[63&t]}return i?a.slice(0,i-3)+"===".substring(i):a},He="function"==typeof btoa?e=>btoa(e):$e?e=>Buffer.from(e,"binary").toString("base64"):We,qe=$e?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(Be.apply(null,e.subarray(r,r+4096)));return He(t.join(""))},Ge=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Be(192|t>>>6)+Be(128|63&t):Be(224|t>>>12&15)+Be(128|t>>>6&63)+Be(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Be(240|t>>>18&7)+Be(128|t>>>12&63)+Be(128|t>>>6&63)+Be(128|63&t)},Ze=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ke=e=>e.replace(Ze,Ge),Je=$e?e=>Buffer.from(e,"utf8").toString("base64"):Ne?e=>qe(Ne.encode(e)):e=>He(Ke(e)),Xe=(e,t=!1)=>t?Ye(Je(e)):Je(e),Qe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,et=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Be((t>>>10)+55296)+Be(56320+(1023&t));case 3:return Be((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Be((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},tt=e=>e.replace(Qe,et),rt=e=>{if(e=e.replace(/\s+/g,""),!Le.test(e))throw new TypeError("malformed base64.");let t,r,n;e+="==".slice(2-(3&e.length));let o=[];for(let a=0;a<e.length;)t=je[e.charAt(a++)]<<18|je[e.charAt(a++)]<<12|(r=je[e.charAt(a++)])<<6|(n=je[e.charAt(a++)]),64===r?o.push(Be(t>>16&255)):64===n?o.push(Be(t>>16&255,t>>8&255)):o.push(Be(t>>16&255,t>>8&255,255&t));return o.join("")},nt="function"==typeof atob?e=>atob(ze(e)):$e?e=>Buffer.from(e,"base64").toString("binary"):rt,ot=$e?e=>Ue(Buffer.from(e,"base64")):e=>Ue(nt(e).split("").map(e=>e.charCodeAt(0))),at=$e?e=>Buffer.from(e,"base64").toString("utf8"):Ve?e=>Ve.decode(ot(e)):e=>tt(nt(e)),it=e=>ze(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),st=e=>at(it(e)),lt=Xe,ut=st,ct=e=>lt(JSON.stringify(e),!0),dt=e=>JSON.parse(ut(e)),pt={encode:e=>{const t=mt();switch(t){case"1":return e?btoa(JSON.stringify(e)):void 0;case"2":return e?ct(e):void 0;default:throw new Error('Version: "'+t+'" is not supported.')}},decode:e=>{const t=mt();switch(t){case"1":return"string"==typeof e?JSON.parse(atob(e)):void 0;case"2":return"string"==typeof e?dt(e):void 0;default:throw new Error('Version: "'+t+'" is not supported.')}}},mt=()=>{const e=new URLSearchParams(window.location.search).get(q.Version);return null===e?"1":e},ft={encode:e=>{const t=mt();switch(t){case"1":return e?btoa(JSON.stringify(e)):void 0;case"2":return e?ct(e):void 0;default:throw new Error('Version: "'+t+'" is not supported.')}},decode:e=>{const t=mt();switch(t){case"1":return"string"==typeof e?JSON.parse(atob(e)):void 0;case"2":return"string"==typeof e?dt(e):void 0;default:throw new Error('Version: "'+t+'" is not supported.')}}};var ht=e=>{const[t,r]=(0,Re.BI)(j.Zg.ga4EventBuilderLastEventType,q.EventType,e||W.SelectContent),n=(0,a.useMemo)(()=>t,[t]),[o,i]=(0,Re.BI)(j.Zg.ga4EventBuilderEventName,q.EventName),s=(0,a.useMemo)(()=>ke(n).categories,[n]),[l,u]=(0,Re.pd)(j.Zg.ga4EventBuilderParameters,q.Parameters,ft,ke(n).parameters),[c,d]=(0,Re.pd)(j.Zg.ga4EventBuilderItems,q.Items,pt),p=(0,a.useCallback)(e=>{r(e);const t=(e=>{const t=Object.assign({},e,{parameters:e.parameters.map(e=>Object.assign({},e))});return void 0!==e.items&&(t.items=e.items.map(e=>e.map(e=>Object.assign({},e)))),t})(ke(e));u(t.parameters),d(t.items),e===W.CustomEvent?i(""):i(e)},[r,i,d,u]),m=(0,a.useCallback)((e,t)=>{u(function(r){return void 0===r&&(r=[]),r.map((r,n)=>e===n?Object.assign({},r,{name:t}):r)})},[u]),f=(0,a.useCallback)((e,t)=>{u(function(r){return void 0===r&&(r=[]),r.map((r,n)=>e===n?Object.assign({},r,{value:t}):r)})},[u]),h=(0,U.RX)(u),g=(0,a.useCallback)(()=>h({name:"",type:Y.String,value:void 0}),[h]),y=(0,a.useCallback)(()=>h({name:"",type:Y.Number,value:void 0}),[h]),v=(0,a.useCallback)(()=>d([[]]),[d]),b=(0,a.useCallback)(e=>d(t=>{if(void 0!==t)return t.map((t,r)=>r===e?t.concat([G("",void 0)]):t)}),[d]),w=(0,a.useCallback)(e=>d(t=>{if(void 0!==t)return t.map((t,r)=>r===e?t.concat([Z("",void 0)]):t)}),[d]),x=(0,a.useCallback)(()=>{d(e=>{if(void 0===e||0===e.length){const e=ke(n).items;return void 0!==e?e:[[]]}const t=e[0].map(e=>e.type===Y.Number?Z(e.name,e.exampleValue):G(e.name,e.exampleValue));return e.concat([t])})},[n,d]),A=(0,a.useCallback)(e=>d(t=>{if(void 0!==t)return t.filter((t,r)=>r!==e)}),[d]),S=(0,a.useCallback)(()=>{d(void 0)},[d]),P=(0,a.useCallback)((e,t)=>{d(r=>{if(void 0!==r)return r.map((r,n)=>n===e?r.filter((e,r)=>t!==r):r)})},[d]),C=(0,a.useCallback)((e,t,r)=>{d(n=>{if(void 0!==n)return n.map((n,o)=>e===o?n.map((e,n)=>
2n===t?Object.assign({},e,{name:r}):e):n)})},[d]),E=(0,a.useCallback)((e,t,r)=>{d(n=>{if(void 0!==n)return n.map((n,o)=>e===o?n.map((e,n)=>n===t?Object.assign({},e,{value:r}):e):n)})},[d]),D=(0,U.fi)(u);return{type:n,setType:p,eventName:o||"",setEventName:i,categories:s,parameters:l||[],setParamName:m,setParamValue:f,addStringParam:g,addNumberParam:y,addItemsParam:v,removeParam:D,items:c,addItem:x,removeItem:A,addItemStringParam:b,addItemNumberParam:w,setItemParamName:C,setItemParamValue:E,removeItemParam:P,removeItems:S}},gt=r(47839),yt=r(11641),vt=r(75003),bt=(0,vt.A)((0,T.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),wt=r(69067),xt=r(51749),At=(0,vt.A)((0,T.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),St=(0,vt.A)((0,T.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),Pt=r(21529),Ct=r(37340),Et=r(53951);function Dt(e,t,r,n,o){const[i,s]=a.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return(0,Pt.A)(()=>{let t=!0;if(!r)return;const n=r(e),o=()=>{t&&s(n.matches)};return o(),n.addListener(o),()=>{t=!1,n.removeListener(o)}},[e,r]),i}const Mt=i.useSyncExternalStore;function Ot(e,t,r,n,o){const i=a.useCallback(()=>t,[t]),s=a.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(null!==n){const{matches:t}=n(e);return()=>t}return i},[i,e,n,o,r]),[l,u]=a.useMemo(()=>{if(null===r)return[i,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[i,r,e]);return Mt(u,l,s)}function Tt(e,t={}){const r=(0,Et.A)(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(n?window.matchMedia:null),ssrMatchMedia:i=null,noSsr:s=!1}=(0,Ct.A)({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Mt?Ot:Dt)(l,o,a,i,s)}var kt=r(3541),It=r(5556);var _t=function(e,t,r){return"function"==typeof e?e(t,r):e};var Rt=It.oneOfType([It.func,It.object]),$t=r(71543);const Vt=(e,t)=>e.length===t.length&&t.every(t=>e.includes(t)),Nt=(e,t,r)=>{let n=t;return n=e.setHours(n,e.getHours(r)),n=e.setMinutes(n,e.getMinutes(r)),n=e.setSeconds(n,e.getSeconds(r)),n=e.setMilliseconds(n,e.getMilliseconds(r)),n},Ft=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:o,isDateDisabled:a,adapter:i,timezone:s})=>{const l=Nt(i,i.date(void 0,s),e);r&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(n,l)&&(n=l);let u=e,c=e;for(i.isBefore(e,o)&&(u=o,c=null),i.isAfter(e,n)&&(c&&(c=n),u=null);u||c;){if(u&&i.isAfter(u,n)&&(u=null),c&&i.isBefore(c,o)&&(c=null),u){if(!a(u))return u;u=i.addDays(u,1)}
2if(c){if(!a(c))return c;c=i.addDays(c,-1)}}return null},jt=(e,t,r)=>null!=t&&e.isValid(t)?t:r,Lt=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const t=r[r.length-1];r.push(e.addMonths(t,1))}return r},Bt=(e,t,r)=>"date"===r?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Ut=(e,t)=>{const r=e.setHours(e.date(),"am"===t?2:14);return e.format(r,"meridiem")},Yt=["year","month","day"],zt=e=>Yt.includes(e),Wt=(e,{format:t,views:r},n)=>{if(null!=t)return t;const o=e.formats;return Vt(r,["year"])?o.year:Vt(r,["month"])?o.month:Vt(r,["day"])?o.dayOfMonth:Vt(r,["month","year"])?`${o.month} ${o.year}`:Vt(r,["day","month"])?`${o.month} ${o.dayOfMonth}`:n?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Ht=(e,t)=>{const r=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(t=>e.addDays(r,t))},qt=["hours","minutes","seconds"],Gt=["hours","minutes","seconds","meridiem"],Zt=e=>qt.includes(e),Kt=e=>Gt.includes(e),Jt=(e,t,r)=>{if(r){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Xt=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Qt=(e,t)=>(r,n)=>e?t.isAfter(r,n):Xt(r,t)>Xt(n,t),er=(e,{format:t,views:r,ampm:n})=>{if(null!=t)return t;const o=e.formats;return Vt(r,["hours"])?n?`${o.hours12h} ${o.meridiem}`:o.hours24h:Vt(r,["minutes"])?o.minutes:Vt(r,["seconds"])?o.seconds:Vt(r,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Vt(r,["hours","minutes","seconds"])?n?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:n?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},tr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},rr=(e,t,r)=>{if(t===tr.year)return e.startOfYear(r);if(t===tr.month)return e.startOfMonth(r);if(t===tr.day)return e.startOfDay(r);let n=r;return t<tr.minutes&&(n=e.setMinutes(n,0)),t<tr.seconds&&(n=e.setSeconds(n,0)),t<tr.milliseconds&&(n=e.setMilliseconds(n,0)),n},nr=(e,t)=>{const r=e.formatTokenMap[t];if(null==r)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof r?{type:r,contentType:"meridiem"===r?"letter":"digit",maxLength:void 0}:{type:r.sectionType,contentType:r.contentType,maxLength:r.maxLength}},or=(e,t)=>{const r=[],n=e.date(void 0,"default"),o=e.startOfWeek(n),a=e.endOfWeek(n);let i=o;for(;e.isBefore(i,a);)r.push(i),i=e.addDays(i,1);return r.map(r=>e.formatByString(r,t))},ar=(e,t,r,n)=>{switch(r){case"month":return Lt(e,e.date(void 0,t)).map(t=>e.formatByString(t,n));case"weekDay":return or(e,n);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(t=>e.formatByString(t,n))}default:return[]}},ir=["0","1","2","3","4","5","6","7","8","9"],sr=(e,t)=>{if("0"===t[0])return e;const r=[];let n="";for(let o=0;o<e.length;o+=1){n+=e[o];const a=t.indexOf(n);a>-1&&(r.push(a.toString()),n="")}return r.join("")},lr=(e,t)=>"0"===t[0]?e:e.split("").map(e=>t[Number(e)]).join(""),ur=(e,t)=>{const r=sr(e,t);return" "!==r&&!Number.isNaN(Number(r))},cr=(e,t)=>Number(e).toString().padStart(t,"0"),dr=(e,t,r,n,o)=>{if("day"===o.type&&"digit-with-letter"===o.contentType){const n=e.setDate(r.longestMonth,t);return e.formatByString(n,o.format)}let a=t.toString();return o.hasLeadingZerosInInput&&(a=cr(a,o.maxLength)),lr(a,n)},pr=(e,t,r)=>{let n=e.value||e.placeholder;const o="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(sr(n,r)).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!o&&1===n.length&&(n=`${n}‎`),"input-rtl"===t&&(n=`⁨${n}⁩`),n},mr=(e,t,r,n)=>e.formatByString(e.parse(t,r),n),fr=(e,t)=>4===e.formatByString(e.date(void 0,"system"),t).length,hr=(e,t,r,n)=>{if("digit"!==t)return!1;const o=e.date(void 0,"default");switch(r){case"year":return"dayjs"===e.lib&&"YY"===n||e.formatByString(e.setYear(o,1),n).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),n).length>1;case"day":return e.formatByString(e.startOfMonth(o),n).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),n).length>1;case"hours":return e.formatByString(e.setHours(o,1),n).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),n).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),n).length>1;default:throw new Error("Invalid section type")}};const gr=(e,t)=>{0},yr={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},vr=(e,t,r,n,o)=>[...r].sort((e,t)=>
2yr[e.type]-yr[t.type]).reduce((r,n)=>!o||n.modified?((e,t,r,n)=>{switch(t.type){case"year":return e.setYear(n,e.getYear(r));case"month":return e.setMonth(n,e.getMonth(r));case"weekDay":{let n=e.formatByString(r,t.format);t.hasLeadingZerosInInput&&(n=cr(n,t.maxLength));const o=or(e,t.format),a=o.indexOf(n),i=o.indexOf(t.value)-a;return e.addDays(r,i)}case"day":return e.setDate(n,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,o=e.getHours(n);return t&&o>=12?e.addHours(n,-12):!t&&o<12?e.addHours(n,12):n}case"hours":return e.setHours(n,e.getHours(r));case"minutes":return e.setMinutes(n,e.getMinutes(r));case"seconds":return e.setSeconds(n,e.getSeconds(r));default:return n}})(e,n,t,r):r,n),br=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){const r=t.findIndex(t=>t.type===e);return-1===r?null:r}return e},wr=["value","referenceDate"],xr={emptyValue:null,getTodayValue:Bt,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,n=(0,y.A)(e,wr);return n.adapter.isValid(t)?t:null!=r?r:(({props:e,adapter:t,granularity:r,timezone:n,getTodayDate:o})=>{let a=o?o():rr(t,r,Bt(t,n));null!=e.minDate&&t.isAfterDay(e.minDate,a)&&(a=rr(t,r,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,a)&&(a=rr(t,r,e.maxDate));const i=Qt(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&i(e.minTime,a)&&(a=rr(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:Nt(t,a,e.minTime))),null!=e.maxTime&&i(a,e.maxTime)&&(a=rr(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Nt(t,a,e.maxTime))),a})(n)},cleanValue:(e,t)=>e.isValid(t)?t:null,areValuesEqual:(e,t,r)=>!e.isValid(t)&&null!=t&&!e.isValid(r)&&null!=r||e.isEqual(t,r),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,r)=>null==r?null:e.setTimezone(r,t)},Ar={updateReferenceValue:(e,t,r)=>e.isValid(t)?t:r,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:e=>e.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),getV6InputValueFromSections:(e,t,r)=>{const n=e.map(e=>{const n=pr(e,r?"input-rtl":"input-ltr",t);return`${e.startSeparator}${n}${e.endSeparator}`}).join("");return r?`⁦${n}⁩`:n},parseValueStr:(e,t,r)=>r(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,r)=>r,clearDateSections:e=>e.map(e=>(0,o.A)({},e,{value:""}))};function Sr(...e){const t=a.useRef(void 0),r=a.useCallback(t=>{const r=e.map(e=>{if(null==e)return null;if("function"==typeof e){const r=e,n=r(t);return"function"==typeof n?n:()=>{r(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}var Pr="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;var Cr=function(e){const t=a.useRef(e);return Pr(()=>{t.current=e}),a.useRef((...e)=>(0,t.current)(...e)).current};function Er(e){return e&&e.ownerDocument||document}const Dr=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Dr(t.shadowRoot):t:null},Mr=e=>Dr(Er(e)),Or=e=>Array.from(e.children).indexOf(Mr(e)),Tr="@media (pointer: fine)";function kr(...e){return e.reduce((e,t)=>(Array.isArray(t)?e.push(...t):null!=t&&e.push(t),e),[])}const Ir=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],_r=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Rr=["minDateTime","maxDateTime"],$r=[...Ir,..._r,...Rr],Vr=e=>$r.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{}),Nr=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],Fr=(e,t)=>a.useMemo(()=>{const r=(0,o.A)({},e),n={},a=e=>{r.hasOwnProperty(e)&&(n[e]=r[e],delete r[e])};return Nr.forEach(a),"date"===t?Ir.forEach(a):"time"===t?_r.forEach(a):"date-time"===t&&(Ir.forEach(a),_r.forEach(a),Rr.forEach(a)),{forwardedProps:r,internalProps:n}},[e,t]),jr={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>
2`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Lr=jr;Br=jr,(0,o.A)({},Br);var Br;const Ur=["localeText"],Yr=a.createContext(null);const zr=function(e){const{localeText:t}=e,r=(0,y.A)(e,Ur),{adapter:n,localeText:i}=a.useContext(Yr)??{utils:void 0,adapter:void 0,localeText:void 0},s=(0,kt.A)({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:m}=s,f=a.useMemo(()=>(0,o.A)({},m,i,t),[m,i,t]),h=a.useMemo(()=>{if(!u)return n||null;const e=new u({locale:p,formats:c,instance:d});if(!e.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join("\n"));return e},[u,p,c,d,n]),g=a.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),v=a.useMemo(()=>({utils:h,adapter:h,defaultDates:g,localeText:f}),[g,h,f]);return(0,T.jsx)(Yr.Provider,{value:v,children:l})};const Wr=()=>{const e=a.useContext(Yr);if(null===e)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.adapter)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=a.useMemo(()=>(0,o.A)({},Lr,e.localeText),[e.localeText]);return a.useMemo(()=>(0,o.A)({},e,{localeText:t}),[e,t])},Hr=()=>Wr().adapter,qr=e=>null!=e.saveQuery,Gr=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:r,timezone:n,setCharacterQuery:a,setTempAndroidValueStr:i,updateSectionValue:s}})=>{const l=Hr(),u=({keyPressed:e,sectionIndex:t},n,o)=>{const i=e.toLowerCase(),s=r.sections[t];if(null!=r.characterQuery&&(!o||o(r.characterQuery.value))&&r.characterQuery.sectionIndex===t){const e=`${r.characterQuery.value}${i}`,o=n(e,s);if(!qr(o))return a({sectionIndex:t,value:e,sectionType:s.type}),o}const l=n(i,s);return qr(l)&&!l.saveQuery?(a(null),null):(a({sectionIndex:t,value:i,sectionType:s.type}),qr(l)?null:l)};return Cr(a=>{const c=r.sections[a.sectionIndex],d=ur(a.keyPressed,e)?(r=>{const n=({queryValue:r,skipIfBelowMinimum:n,section:o})=>{const a=sr(r,e),i=Number(a),s=t[o.type]({currentDate:null,format:o.format,contentType:o.contentType});if(i>s.maximum)return{saveQuery:!1};if(n&&i<s.minimum)return{saveQuery:!0};const u=10*i>s.maximum||a.length===s.maximum.toString().length;return{sectionValue:dr(l,i,s,e,o),shouldGoToNextSection:u}};return u(r,(e,t)=>{if("digit"===t.contentType||"digit-with-letter"===t.contentType)return n({queryValue:e,ski
2pIfBelowMinimum:!1,section:t});if("month"===t.type){const r=hr(l,"digit","month","MM"),a=n({queryValue:e,skipIfBelowMinimum:!0,section:{type:t.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(qr(a))return a;const i=mr(l,a.sectionValue,"MM",t.format);return(0,o.A)({},a,{sectionValue:i})}if("weekDay"===t.type){const r=n({queryValue:e,skipIfBelowMinimum:!0,section:t});if(qr(r))return r;const a=or(l,t.format)[Number(r.sectionValue)-1];return(0,o.A)({},r,{sectionValue:a})}return{saveQuery:!1}},t=>ur(t,e))})((0,o.A)({},a,{keyPressed:lr(a.keyPressed,e)})):(e=>{const t=(e,t,r)=>{const n=t.filter(e=>e.toLowerCase().startsWith(r));return 0===n.length?{saveQuery:!1}:{sectionValue:n[0],shouldGoToNextSection:1===n.length}},r=(e,r,a,i)=>{const s=e=>ar(l,n,r.type,e);if("letter"===r.contentType)return t(r.format,s(r.format),e);if(a&&null!=i&&"letter"===nr(l,a).contentType){const r=s(a),n=t(0,r,e);return qr(n)?{saveQuery:!1}:(0,o.A)({},n,{sectionValue:i(n.sectionValue,r)})}return{saveQuery:!1}};return u(e,(e,t)=>{switch(t.type){case"month":{const n=e=>mr(l,e,l.formats.month,t.format);return r(e,t,l.formats.month,n)}case"weekDay":{const n=(e,t)=>t.indexOf(e).toString();return r(e,t,l.formats.weekday,n)}case"meridiem":return r(e,t);default:return{saveQuery:!1}}})})(a);null!=d?s({section:c,newSectionValue:d.sectionValue,shouldGoToNextSection:d.shouldGoToNextSection}):i(null)})};function Zr(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:i}=a.useRef(void 0!==t),[s,l]=a.useState(r);return[i?t:s,a.useCallback(e=>{i||l(e)},[])]}const Kr={};const Jr=[];class Xr{static create(){return new Xr}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Qr(){const e=function(e,t){const r=a.useRef(Kr);return r.current===Kr&&(r.current=e(t)),r}(Xr.create).current;var t;return t=e.disposeEffect,a.useEffect(t,Jr),e}var en=r(73788);const tn=()=>Wr().localeText,rn=(e,t,r,n)=>{switch(r.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),n).length,format:n});case"month":return t.fieldMonthPlaceholder({contentType:r.contentType,format:n});case"day":return t.fieldDayPlaceholder({format:n});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:r.contentType,format:n});case"hours":return t.fieldHoursPlaceholder({format:n});case"minutes":return t.fieldMinutesPlaceholder({format:n});case"seconds":return t.fieldSecondsPlaceholder({format:n});case"meridiem":return t.fieldMeridiemPlaceholder({format:n});default:return n}},nn=({adapter:e,date:t,shouldRespectLeadingZeros:r,localeText:n,localizedDigits:a,now:i,token:s,startSeparator:l})=>{if(""===s)throw new Error("MUI X: Should not call `commitToken` with an empty token");const u=nr(e,s),c=hr(e,u.contentType,u.type,s),d=r?c:"digit"===u.contentType,p=e.isValid(t);let m=p?e.formatByString(t,s):"",f=null;if(d)if(c)f=""===m?e.formatByString(i,s).length:m.length;else{if(null==u.maxLength)throw new Error(`MUI X: The token ${s} should have a 'maxLength' property on it's adapter`);f=u.maxLength,p&&(m=lr(cr(sr(m,a),f),a))}return(0,o.A)({},u,{format:s,maxLength:f,value:m,placeholder:rn(e,n,u,s),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},on=e=>{let t=(({adapter:e,format:t})=>{let r=10,n=t,o=e.expandFormat(t);for(;o!==n;)if(n=o,o=e.expandFormat(n),r-=1,r<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return o})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const r=(({adapter:e,expandedFormat:t})=>{const r=[],{start:n,end:o}=e.escapedCharacters,a=new RegExp(`(\\${n}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)r.push({start:i.index,end:a.lastIndex-1});return r})((0,o.A)({},e,{expandedFormat:t})),n=(e=>{const{adapter:t,expandedFormat:r,escapedParts:n}=e,a=t.date(void 0),i=[];let s="";const l=Object.keys(t.formatTokenMap).sort((e,t)=>
2t.length-e.length),u=/^([a-zA-Z]+)/,c=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),p=e=>n.find(t=>t.start<=e&&t.end>=e);let m=0;for(;m<r.length;){const t=p(m),n=null!=t,l=u.exec(r.slice(m))?.[1];if(!n&&null!=l&&c.test(l)){let t=l;for(;t.length>0;){const r=d.exec(t)[1];t=t.slice(r.length),i.push(nn((0,o.A)({},e,{now:a,token:r,startSeparator:s}))),s=""}m+=l.length}else{const e=r[m];n&&t?.start===m||t?.end===m||(0===i.length?s+=e:(i[i.length-1].endSeparator+=e,i[i.length-1].isEndFormatSeparator=!0)),m+=1}}return 0===i.length&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i})((0,o.A)({},e,{expandedFormat:t,escapedParts:r}));return(({isRtl:e,formatDensity:t,sections:r})=>r.map(r=>{const n=r=>{let n=r;return e&&null!==n&&n.includes(" ")&&(n=`⁩${n}⁦`),"spacious"===t&&["/",".","-"].includes(n)&&(n=` ${n} `),n};return r.startSeparator=n(r.startSeparator),r.endSeparator=n(r.endSeparator),r}))((0,o.A)({},e,{sections:n}))};function an(e){const{props:t,validator:r,value:n,timezone:o,onError:i}=e,s=Hr(),l=a.useRef(r.valueManager.defaultErrorState),u=r({adapter:s,value:n,timezone:o,props:t}),c=r.valueManager.hasError(u);a.useEffect(()=>{i&&!r.valueManager.isSameError(u,l.current)&&i(u,n),l.current=u},[r,i,u,n]);const d=Cr(e=>r({adapter:s,value:e,timezone:o,props:t}));return{validationError:u,hasValidationError:c,getValidationErrorForNewValue:d}}const sn=({name:e,timezone:t,value:r,defaultValue:n,referenceDate:o,onChange:i,valueManager:s})=>{const l=Hr(),[u,c]=Zr({name:e,state:"value",controlled:r,default:n??s.emptyValue}),d=a.useMemo(()=>s.getTimezone(l,u),[l,s,u]),p=Cr(e=>null==d?e:s.setTimezone(l,d,e)),m=a.useMemo(()=>t||(d||(o?l.getTimezone(Array.isArray(o)?o[0]:o):"default")),[t,d,o,l]);return{value:a.useMemo(()=>s.setTimezone(l,m,u),[s,l,m,u]),handleValueChange:Cr((e,...t)=>{const r=p(e);c(r),i?.(r,...t)}),timezone:m}},ln=e=>{const t=Hr(),r=tn(),n=(0,en.I)(),{manager:{validator:i,valueType:s,internal_valueManager:l,internal_fieldValueManager:u},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:d,defaultValue:p,referenceDate:m,onChange:f,format:h,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:b=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:A}}=e,{value:S,handleValueChange:P,timezone:C}=sn({name:"a field component",timezone:w,value:d,defaultValue:p,referenceDate:m,onChange:f,valueManager:l}),E=a.useRef(S);a.useEffect(()=>{E.current=S},[S]);const{hasValidationError:D}=an({props:c,validator:i,timezone:C,value:S,onError:c.onError}),M=a.useMemo(()=>void 0!==A?A:D,[D,A]),O=a.useMemo(()=>(e=>{const t=e.date(void 0);return"0"===e.formatByString(e.setSeconds(t,0),"s")?ir:Array.from({length:10}).map((r,n)=>e.formatByString(e.setSeconds(t,n),"s"))})(t),[t]),T=a.useMemo(()=>((e,t,r)=>{const n=e.date(void 0,r),o=e.endOfYear(n),a=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:s}=Lt(e,n).reduce((t,r)=>{const n=e.getDaysInMonth(r);return n>t.maxDaysInMonth?{maxDaysInMonth:n,longestMonth:r}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:fr(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:t})=>({minimum:1,maximum:e.isValid(t)?e.getDaysInMonth(t):i,longestMonth:s}),weekDay:({format:t,contentType:r})=>{if("digit"===r){const r=or(e,t).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:r})=>{const o=e.getHours(a);return sr(e.formatByString(e.endOfDay(n),r),t)!==o.toString()?{minimum:1,maximum:Number(sr(e.formatByString(e.startOfDay(n),r),t))}:{minimum:0,maximum:o}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,O,C),[t,O,C]),k=a.useCallback(e=>u.getSectionsFromValue(e,e=>on({adapter:t,localeText:r,localizedDigits:O,format:h,date:e,formatDensity:g,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:x,isRtl:n})),[u,h,r,O,n,b,t,g,x]),[I,_]=a.useState(()=>{const e=k(S);gr();
2const r={sections:e,lastExternalValue:S,lastSectionsDependencies:{format:h,isRtl:n,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},a=(e=>Math.max(...e.map(e=>tr[e.type]??1)))(e),i=l.getInitialReferenceValue({referenceDate:m,value:S,adapter:t,props:c,granularity:a,timezone:C});return(0,o.A)({},r,{referenceValue:i})}),[R,$]=Zr({controlled:y,default:null,name:"useField",state:"selectedSections"}),V=e=>{$(e),v?.(e)},N=a.useMemo(()=>br(R,I.sections),[R,I.sections]),F="all"===N?0:N,j=a.useMemo(()=>((e,t)=>{const r={};if(!t)return e.forEach((t,n)=>{const o=0===n?null:n-1,a=n===e.length-1?null:n+1;r[n]={leftIndex:o,rightIndex:a}}),{neighbors:r,startIndex:0,endIndex:e.length-1};const n={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((e,t)=>t>=a&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator),-1===i&&(i=e.length-1);for(let e=i;e>=a;e-=1)o[e]=s,n[s]=e,s-=1;a=i+1}return e.forEach((t,a)=>{const i=o[a],s=0===i?null:n[i-1],l=i===e.length-1?null:n[i+1];r[a]={leftIndex:s,rightIndex:l}}),{neighbors:r,startIndex:n[0],endIndex:n[e.length-1]}})(I.sections,n&&!x),[I.sections,n,x]),L=a.useMemo(()=>I.sections.every(e=>""===e.value),[I.sections]),B=e=>{const r={validationError:i({adapter:t,value:e,timezone:C,props:c})};P(e,r)},U=(e,t)=>{const r=[...I.sections];return r[e]=(0,o.A)({},r[e],{value:t,modified:!0}),r},Y=a.useRef(null),z=Qr(),W=e=>{null!=F&&(Y.current={sectionIndex:F,value:e},z.start(0,()=>{Y.current=null}))},H=()=>{if(null==F)return;const e=I.sections[F];""!==e.value&&(W(""),null===u.getDateFromSection(S,e)?_(e=>(0,o.A)({},e,{sections:U(F,""),tempValueStrAndroid:null,characterQuery:null})):(_(e=>(0,o.A)({},e,{characterQuery:null})),B(u.updateDateInValue(S,e,null))))},q=Qr(),G=Cr(e=>{_(t=>(0,o.A)({},t,{characterQuery:e}))});if(S!==I.lastExternalValue){const e=null!=Y.current&&!t.isValid(u.getDateFromSection(S,I.sections[Y.current.sectionIndex]));let r;r=e?U(Y.current.sectionIndex,Y.current.value):k(S),_(a=>(0,o.A)({},a,{lastExternalValue:S,sections:r,sectionsDependencies:{format:h,isRtl:n,locale:t.locale},referenceValue:e?a.referenceValue:u.updateReferenceValue(t,S,a.referenceValue),tempValueStrAndroid:null}))}if(n!==I.lastSectionsDependencies.isRtl||h!==I.lastSectionsDependencies.format||t.locale!==I.lastSectionsDependencies.locale){const e=k(S);gr(),_(r=>(0,o.A)({},r,{lastSectionsDependencies:{format:h,isRtl:n,locale:t.locale},sections:e,tempValueStrAndroid:null,characterQuery:null}))}null==I.characterQuery||M||null!=F||G(null),null!=I.characterQuery&&I.sections[I.characterQuery.sectionIndex]?.type!==I.characterQuery.sectionType&&G(null),a.useEffect(()=>{null!=Y.current&&(Y.current=null)});const Z=Qr();return a.useEffect(()=>(null!=I.characterQuery&&Z.start(5e3,()=>G(null)),()=>{}),[I.characterQuery,G,Z]),a.useEffect(()=>{null!=I.tempValueStrAndroid&&null!=F&&H()},[I.sections]),{activeSectionIndex:F,areAllSectionsEmpty:L,error:M,localizedDigits:O,parsedSelectedSections:N,sectionOrder:j,sectionsValueBoundaries:T,state:I,timezone:C,value:S,clearValue:()=>{l.areValuesEqual(t,S,l.emptyValue)?_(e=>(0,o.A)({},e,{sections:e.sections.map(e=>(0,o.A)({},e,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(_(e=>(0,o.A)({},e,{characterQuery:null})),B(l.emptyValue))},clearActiveSection:H,setCharacterQuery:G,setSelectedSections:V,setTempAndroidValueStr:e=>_(t=>(0,o.A)({},t,{tempValueStrAndroid:e})),updateSectionValue:({section:e,newSectionValue:r,shouldGoToNextSection:n})=>{z.clear(),q.clear();const a=u.getDateFromSection(S,e);n&&F<I.sections.length-1&&V(F+1);const i=U(F,r),s=u.getDateSectionsFromValue(i,e),l=((e,t,r)=>{const n=t.some(e=>"day"===e.type),o=[],a=[];for(let l=0;l<t.length;l+=1){const e=t[l];n&&"weekDay"===e.type||(o.push(e.format),a.push(pr(e,"non-input",r)))}const i=o.join(" "),s=a.join(" ");return e.parse(s,i)})(t,s,O);if(t.isValid(l)){const r=vr(t,l,s,u.getDateFromSection(I.referenceValue,e),!0);return null==a&&q.start(0,()=>{E.current===S&&_(t=>(0,o.A)({},t,{sections:u.clearDateSections(I.sections,e),tempValueStrAndroid:null}))}),B(u.updateDateInValue(S,e,r))}return s.every(e=>""!==e.value)&&(null==a||t.isValid(a))?(W(r),B(u.updateDateInValue(S,e,l))):null!=a?(W(r),B(u.updateDateInValue(S,e,null))):_(e=>(0,o.A)({},e,{sections:i,tempValueStrAndroid:null}))}
2,updateValueFromValueStr:e=>{const o=u.parseValueStr(e,I.referenceValue,(e,o)=>{const a=t.parse(e,h);if(!t.isValid(a))return null;const i=on({adapter:t,localeText:r,localizedDigits:O,format:h,date:a,formatDensity:g,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:x,isRtl:n});return vr(t,a,i,o,!1)});B(o)},getSectionsFromValue:k}},un=a.createContext(null);const cn=()=>{const e=a.useContext(un);if(null==e)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},dn=()=>a.useContext(un),pn=a.createContext(null);function mn(){return a.useContext(pn)}function fn(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:r,skipContextFieldRefAssignment:n}=e,i=dn(),s=mn(),l=Sr(r.unstableFieldRef,n?null:s?.fieldRef),u=i?.setValue,c=a.useCallback((e,t)=>u?.(e,{validationError:t.validationError,shouldClose:!1}),[u]);return t(a.useMemo(()=>null!=s&&null!=i?(0,o.A)({value:i.value,onChange:c,timezone:i.timezone,disabled:i.disabled,readOnly:i.readOnly,autoFocus:i.autoFocus&&!i.open,focused:!!i.open||void 0,format:i.fieldFormat,formatDensity:s.formatDensity,enableAccessibleFieldDOMStructure:s.enableAccessibleFieldDOMStructure,selectedSections:s.selectedSections,onSelectedSectionsChange:s.onSelectedSectionsChange,unstableFieldRef:l},r):r,[i,s,r,c,l]))}function hn(e){const{focused:t,domGetters:r,stateResponse:{parsedSelectedSections:n,state:o}}=e;if(!r.isReady())return;const a=Er(r.getRoot()).getSelection();if(!a)return;if(null==n)return a.rangeCount>0&&a.getRangeAt(0).startContainer instanceof Node&&r.getRoot().contains(a.getRangeAt(0).startContainer)&&a.removeAllRanges(),void(t&&r.getRoot().blur());if(!r.getRoot().contains(Mr(r.getRoot())))return;const i=new window.Range;let s;if("all"===n)s=r.getRoot();else{s="empty"===o.sections[n].type?r.getSectionContainer(n):r.getSectionContent(n)}i.selectNodeContents(s),s.focus(),a.removeAllRanges(),a.addRange(i)}function gn(e){const t=Hr(),{manager:{internal_fieldValueManager:r},internalPropsWithDefaults:{minutesStep:n,disabled:o,readOnly:a},stateResponse:{state:i,value:s,activeSectionIndex:l,parsedSelectedSections:u,sectionsValueBoundaries:c,localizedDigits:d,timezone:p,sectionOrder:m,clearValue:f,clearActiveSection:h,setSelectedSections:g,updateSectionValue:y}}=e;return Cr(e=>{if(!o)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),g("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==u)g(m.startIndex);else if("all"===u)g(m.endIndex);else{const e=m.neighbors[u].rightIndex;null!==e&&g(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==u)g(m.endIndex);else if("all"===u)g(m.startIndex);else{const e=m.neighbors[u].leftIndex;null!==e&&g(e)}break;case"Delete"===e.key:if(e.preventDefault(),a)break;null==u||"all"===u?f():h();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),a||null==l)break;"all"===u&&g(l);const o=i.sections[l],m=function(e,t,r,n,o,a,i,s){const l=function(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}(n),u="Home"===n,c="End"===n,d=""===r.value||u||c,p=()=>{const n=o[r.type]({currentDate:i,format:r.format,contentType:r.contentType}),p=t=>dr(e,t,n,a,r),m="minutes"===r.type&&s?.minutesStep?s.minutesStep:1;let f;if(d){if("year"===r.type&&!c&&!u)return e.formatByString(e.date(void 0,t),r.format);f=l>0||u?n.minimum:n.maximum}else{f=parseInt(sr(r.value,a),10)+l*m}return f%m!==0&&((l<0||u)&&(f+=m-(m+f)%m),(l>0||c)&&(f-=f%m)),f>n.maximum?p(n.minimum+(f-n.maximum-1)%(n.maximum-n.minimum+1)):f<n.minimum?p(n.maximum-(n.minimum-f-1)%(n.maximum-n.minimum+1)):p(f)},m=()=>{const n=ar(e,t,r.type,r.format);if(0===n.length)return r.value;if(d)return l>0||u?n[0]:n[n.length-1];const o=n.indexOf(r.value);return n[((o+l)%n.length+n.length)%n.length]};if("digit"===r.contentType||"digit-with-letter"===r.contentType)return p();return m()}(t,p,o,e.key,c,d,r.getDateFromSection(s,o),{minutesStep:n});y({section:o,newSectionValue:m,shouldGoToNextSection:!1});break}}})}function yn(e,t){if(e.value)switch(e.type){case"month":{if("digit"===e.contentType){const r=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(r)?t.format(r,"month"):""}const r=t.parse(e.value,e.format);return r&&t.isValid(r)?t.format(r,"month"):void 0}case"day":if("digit"===e.contentType){const r=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(r)?t.format(r,"dayOfMonthFull"):""}return e.value;default:return}}function vn(e,t){if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{const r=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return r?t.getHours(r)>=12?1:0:void 0}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);const r=t.parse(e.value,e.format);return r?t.getMonth(r)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}}const bn=e=>{const{props:t,manager:r,skipContextFieldRefAssignment:n,manager:{valueType:i,internal_useOpenPickerButtonAriaLabel:s}}=e,{internalProps:l,forwardedProps:u}=Fr(t,i),c=fn({manager:r,internalProps:l,skipContextFieldRefAssignment:n}),{sectionListRef:d,onBlur:p,onClick:m,onFocus:f,onInput:h,onPaste:g,onKeyDown:y,onClear:v,clearable:b}=u,{disabled:w=!1,readOnly:x=!1,autoFocus:A=!1,focused:S,unstableFieldRef:P}=c,C=a.useRef(null),E=Sr(d,C),D=a.useMemo(()=>({isReady:()=>null!=C.current,getRoot:()=>C.current.getRoot(),getSectionContainer:e=>C.current.getSectionContainer(e),getSectionContent:e=>C.current.getSectionContent(e),getSectionIndexFromDOMElement:e=>C.current.getSectionIndexFromDOMElement(e)}),[C]),M=ln({manager:r,internalPropsWithDefaults:c,forwardedProps:u}),{areAllSectionsEmpty:O,error:T,parsedSelectedSections:k,sectionOrder:I,state:_,value:R,clearValue:$,setSelectedSections:V}=M,N=Gr({stateResponse:M}),F=s(R),[j,L]=a.useState(!1);function B(e=0){if(w||!C.current||null!=wn(C))return;const t=br(e,_.sections);L(!0),C.current.getSectionContent(t).focus()}const U=function(e){const{manager:t,focused:r,setFocused:n,domGetters:o,stateResponse:a,applyCharacterEditing:i,internalPropsWithDefaults:s,stateResponse:{parsedSelectedSections:l,sectionOrder:u,state:c,clearValue:d,setCharacterQuery:p,setSelectedSections:m,updateValueFromValueStr:f},internalPropsWithDefaults:{disabled:h=!1,readOnly:g=!1}}=e,y=gn({manager:t,internalPropsWithDefaults:s,stateResponse:a}),v=Qr(),b=Cr(e=>{!h&&o.isReady()&&(n(!0),"all"===l?v.start(0,()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void m(u.startIndex);let t=0,r=0;for(;r<e&&t<c.sections.length;){const e=c.sections[t];t+=1,r+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}m(t-1)}):r?o.getRoot().contains(e.target)||m(u.startIndex):(n(!0),m(u.startIndex)))}),w=Cr(e=>{if(!o.isReady()||"all"!==l)return;const t=e.target.textContent??"";o.getRoot().innerHTML=c.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}
2`).join(""),hn({focused:r,domGetters:o,stateResponse:a}),0===t.length||10===t.charCodeAt(0)?(d(),m("all")):t.length>1?f(t):("all"===l&&m(0),i({keyPressed:t,sectionIndex:0}))}),x=Cr(e=>{if(g||"all"!==l)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),p(null),f(t)}),A=Cr(()=>{if(r||h||!o.isReady())return;const e=Mr(o.getRoot());n(!0),null!=o.getSectionIndexFromDOMElement(e)||m(u.startIndex)});return{onKeyDown:y,onBlur:Cr(()=>{setTimeout(()=>{if(!o.isReady())return;const e=Mr(o.getRoot());!o.getRoot().contains(e)&&(n(!1),m(null))})}),onFocus:A,onClick:b,onPaste:x,onInput:w,contentEditable:"all"===l,tabIndex:s.disabled||0===l?-1:0}}({manager:r,internalPropsWithDefaults:c,stateResponse:M,applyCharacterEditing:N,focused:j,setFocused:L,domGetters:D}),Y=function(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:r,state:n,updateValueFromValueStr:o}}=e,i=Cr(e=>{o(e.target.value)});return{value:a.useMemo(()=>r?"":t.getV7HiddenInputValueFromSections(n.sections),[r,n.sections,t]),onChange:i}}({manager:r,stateResponse:M}),z=function(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:r=!1}}=e,n=a.useCallback(e=>n=>{r||n.isDefaultPrevented()||t(e)},[r,t]);return a.useCallback(e=>({"data-sectionindex":e,onClick:n(e)}),[n])}({stateResponse:M,internalPropsWithDefaults:c}),W=function(e){const t=Hr(),r=tn(),{focused:n,domGetters:o,stateResponse:i,applyCharacterEditing:s,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:u,sectionsValueBoundaries:c,state:d,value:p,clearActiveSection:m,setCharacterQuery:f,setSelectedSections:h,updateSectionValue:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:v=!1,readOnly:b=!1}}=e,w="all"===u,x=!w&&!v&&!b,A=Cr(e=>{if(!o.isReady())return;const t=d.sections[e];o.getSectionContent(e).innerHTML=t.value||t.placeholder,hn({focused:n,domGetters:o,stateResponse:i})}),S=Cr(e=>{if(!o.isReady())return;const t=e.target,r=t.textContent??"",n=o.getSectionIndexFromDOMElement(t),a=d.sections[n];if(b)A(n);else{if(0===r.length){if(""===a.value)return void A(n);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void A(n):(A(n),void m())}s({keyPressed:r,sectionIndex:n}),A(n)}}),P=Cr(e=>{e.preventDefault()}),C=Cr(e=>{if(e.preventDefault(),b||v||"number"!=typeof u)return;const t=d.sections[u],r=e.clipboardData.getData("text"),n=/^[a-zA-Z]+$/.test(r),o=/^[0-9]+$/.test(r),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(r);"letter"===t.contentType&&n||"digit"===t.contentType&&o||"digit-with-letter"===t.contentType&&a?(f(null),g({section:t,newSectionValue:r,shouldGoToNextSection:!0})):n||o||(f(null),y(r))}),E=Cr(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),D=a.useCallback(e=>()=>{v||h(e)},[v,h]);return a.useCallback((e,n)=>{const o=c[e.type]({currentDate:l.getDateFromSection(p,e),contentType:e.contentType,format:e.format});return{onInput:S,onPaste:C,onMouseUp:P,onDragOver:E,onFocus:D(n),"aria-readonly":b,"aria-valuenow":vn(e,t),"aria-valuemin":o.minimum,"aria-valuemax":o.maximum,"aria-valuetext":e.value?yn(e,t):r.empty,"aria-label":r[e.type],"aria-disabled":v,tabIndex:!x||w||n>0?-1:0,contentEditable:!w&&!v&&!b,role:"spinbutton","data-range-position":e.dateName||void 0,spellCheck:!x&&void 0,autoCapitalize:x?"none":void 0,autoCorrect:x?"off":void 0,children:e.value||e.placeholder,inputMode:"letter"===e.contentType?"text":"numeric"}},[c,w,v,b,x,r,t,S,C,P,E,D,l,p])}({manager:r,stateResponse:M,applyCharacterEditing:N,internalPropsWithDefaults:c,domGetters:D,focused:j}),H=Cr(e=>{y?.(e),U.onKeyDown(e)}),q=Cr(e=>{p?.(e),U.onBlur(e)}),G=Cr(e=>{f?.(e),U.onFocus(e)}),Z=Cr(e=>{e.isDefaultPrevented()||(m?.(e),U.onClick(e))}),K=Cr(e=>{g?.(e),U.onPaste(e)}),J=Cr(e=>{h?.(e),U.onInput(e)}),X=Cr((e,...t)=>{e.preventDefault(),v?.(e,...t),$(),xn(C)?V(I.startIndex):B(0)}),Q=a.useMemo(()=>_.sections.map((e,t)=>{const r=W(e,t);return{container:z(t),content:W(e,t),before:{children:e.startSeparator},after:{children:e.endSeparator,"data-range-position":e.isEndFormatSeparator?r["data-range-position"]:void 0}}}),[_.sections,z,W]);return a.useEffect(()=>{if(null==C.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));A&&!w&&C.current&&C.current.getSectionContent(I.startIndex).focus()},[]),Pr(()=>{if(j&&C.current)if("all"===k)C.current.getRoot().focus();else if("number"==typeof k){const e=C.current.getSectionContent(k);e&&e.focus()}},[k,j]),Pr(()=>
2{hn({focused:j,domGetters:D,stateResponse:M})}),a.useImperativeHandle(P,()=>({getSections:()=>_.sections,getActiveSectionIndex:()=>wn(C),setSelectedSections:e=>{if(w||!C.current)return;const t=br(e,_.sections);L(null!==("all"===t?0:t)),V(e)},focusField:B,isFieldFocused:()=>xn(C)})),(0,o.A)({},u,U,{onBlur:q,onClick:Z,onFocus:G,onInput:J,onPaste:K,onKeyDown:H,onClear:X},Y,{error:T,clearable:Boolean(b&&!O&&!x&&!w),focused:S??j,sectionListRef:E,enableAccessibleFieldDOMStructure:!0,elements:Q,areAllSectionsEmpty:O,disabled:w,readOnly:x,autoFocus:A,openPickerAriaLabel:F})};function wn(e){const t=Mr(e.current?.getRoot());return t&&e.current&&e.current.getRoot().contains(t)?e.current.getSectionIndexFromDOMElement(t):null}function xn(e){const t=Mr(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const An=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Sn=e=>{const t=(0,en.I)(),r=Qr(),n=Qr(),{props:i,manager:s,skipContextFieldRefAssignment:l,manager:{valueType:u,internal_valueManager:c,internal_fieldValueManager:d,internal_useOpenPickerButtonAriaLabel:p}}=e,{internalProps:m,forwardedProps:f}=Fr(i,u),h=fn({manager:s,internalProps:m,skipContextFieldRefAssignment:l}),{onFocus:g,onClick:y,onPaste:v,onBlur:b,onKeyDown:w,onClear:x,clearable:A,inputRef:S,placeholder:P}=f,{readOnly:C=!1,disabled:E=!1,autoFocus:D=!1,focused:M,unstableFieldRef:O}=h,T=a.useRef(null),k=Sr(S,T),I=ln({manager:s,internalPropsWithDefaults:h,forwardedProps:f}),{activeSectionIndex:_,areAllSectionsEmpty:R,error:$,localizedDigits:V,parsedSelectedSections:N,sectionOrder:F,state:j,value:L,clearValue:B,clearActiveSection:U,setCharacterQuery:Y,setSelectedSections:z,setTempAndroidValueStr:W,updateSectionValue:H,updateValueFromValueStr:q,getSectionsFromValue:G}=I,Z=Gr({stateResponse:I}),K=p(L),J=a.useMemo(()=>((e,t,r)=>{let n=0,a=r?1:0;const i=[];for(let s=0;s<e.length;s+=1){const l=e[s],u=pr(l,r?"input-rtl":"input-ltr",t),c=`${l.startSeparator}${u}${l.endSeparator}`,d=An(c).length,p=c.length,m=An(u),f=a+(""===m?0:u.indexOf(m[0]))+l.startSeparator.length,h=f+m.length;i.push((0,o.A)({},l,{start:n,end:n+d,startInInput:f,endInInput:h})),n+=d,a+=p}return i})(j.sections,V,t),[j.sections,V,t]);function X(){const e=T.current.selectionStart??0;let t;t=e<=J[0].startInInput||e>=J[J.length-1].endInInput?1:J.findIndex(t=>t.startInInput-t.startSeparator.length>e);const r=-1===t?J.length-1:t-1;z(r)}function Q(e=0){Mr(T.current)!==T.current&&(T.current?.focus(),z(e))}const ee=Cr(e=>{g?.(e);const t=T.current;r.start(0,()=>{t&&t===T.current&&null==_&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?z("all"):X())})}),te=Cr((e,...t)=>{e.isDefaultPrevented()||(y?.(e,...t),X())}),re=Cr(e=>{if(v?.(e),e.preventDefault(),C||E)return;const t=e.clipboardData.getData("text");if("number"==typeof N){const e=j.sections[N],r=/^[a-zA-Z]+$/.test(t),n=/^[0-9]+$/.test(t),o=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&r||"digit"===e.contentType&&n||"digit-with-letter"===e.contentType&&o)return Y(null),void H({section:e,newSectionValue:t,shouldGoToNextSection:!0});if(r||n)return}Y(null),q(t)}),ne=Cr(e=>{b?.(e),z(null)}),oe=Cr(e=>{if(C)return;const r=e.target.value;if(""===r)return void B();const n=e.nativeEvent.data,o=n&&n.length>1,a=o?n:r,i=An(a);if("all"===N&&z(_),null==_||o)return void q(o?n:i);let s;if("all"===N&&1===i.length)s=i;else{const e=An(d.getV6InputValueFromSections(J,V,t));let r=-1,n=-1;for(let t=0;t<e.length;t+=1)-1===r&&e[t]!==i[t]&&(r=t),-1===n&&e[e.length-t-1]!==i[i.length-t-1]&&(n=t);const o=J[_];if(r<o.start||e.length-n-1>o.end)return;const a=i.length-e.length+o.end-An(o.endSeparator||"").length;s=i.slice(o.start+An(o.startSeparator||"").length,a)}if(0===s.length)return navigator.userAgent.toLowerCase().includes("android")&&W(a),void U();Z({keyPressed:s,sectionIndex:_})}),ae=Cr((e,...t)=>{e.preventDefault(),x?.(e,...t),B(),Pn(T)?z(F.startIndex):Q(0)}),ie=gn({manager:s,internalPropsWithDefaults:h,stateResponse:I}),se=Cr(e=>{w?.(e),ie(e)}),le=a.useMemo(()=>void 0!==P?P:d.getV6InputValueFromSections(G(c.emptyValue),V,t),[P,d,G,c.emptyValue,V,t]),ue=a.useMemo(()=>j.tempValueStrAndroid??d.getV6InputValueFromSections(j.sections,V,t),[j.sections,d,j.tempValueStrAndroid,V,t]);a.useEffect(()=>{T.current&&T.current===Mr(T.current)&&z("all")},[]),Pr(()=>{!function e(){if(!T.current)return;if(null==N)return void(T.current.scrollLeft&&(T.current.scrollLeft=0));if(T.current!==Mr(T.current))return;const t=T.current.scrollTop;if("all"===N)T.current.select();else{const t=J[N],r="empty"===t.type?t.startInInput-t.startSeparator.length:t.startInInput,o="empty"===t.type?t.endInInput+t.endSeparator.length:t.endInInput;r===T.current.selectionStart&&o===T.current.selectionEnd||T.current===Mr(T.current)&&T.current.setSelectionRange(r,o),n.start(0,()=>{!T.current||T.current!==Mr(T.current)||T.current.selectionStart!==T.current.selectionEnd||T.current.selectionStart===r&&T.current.selectionEnd===o||e()})}T.current.scrollTop=t}()});const ce=a.useMemo(()=>null==_||"letter"===j.sections[_].contentType?"text":"numeric",[_,j.sections]),de=!(T.current&&T.current===Mr(T.current))&&R;return a.useImperativeHandle(O,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>{const e=T.current.selectionStart??0,t=T.current.selectionEnd??0;if(0===e&&0===t)return null;const r=e<=J[0].startInInput?1:J.findIndex(t=>t.startInInput-t.startSeparator.length>e);return-1===r?J.length-1:r-1},setSelectedSections:e=>z(e),focusField:Q,isFieldFocused:()=>Pn(T)})),(0,o.A)({},f,{error:$,clearable:Boolean(A&&!R&&!C&&!E),onBlur:ne,onClick:te,onFocus:ee,onPaste:re,onKeyDown:se,onClear:ae,inputRef:k,enableAccessibleFieldDOMStructure:!1,placeholder:le,inputMode:ce,autoComplete:"off",value:de?"":ue,onChange:oe,focused:M,disabled:E,readOnly:C,autoFocus:D,openPickerAriaLabel:K})};function Pn(e){return e.current===Mr(e.current)}const Cn=({props:e,value:t,timezone:r,adapter:n})=>{if(null===t)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:i,disablePast:s,disableFuture:l,minDate:u,maxDate:c}=e,d=n.date(void 0,r);switch(!0){case!n.isValid(t):return"invalidDate";case Boolean(o&&o(t)):return"shouldDisableDate";case Boolean(a&&a(t)):return"shouldDisableMonth";case Boolean(i&&i(t)):return"shouldDisableYear";case Boolean(l&&n.isAfterDay(t,d)):return"disableFuture";case Boolean(s&&n.isBeforeDay(t,d)):return"disablePast";case Boolean(u&&n.isBeforeDay(t,u)):return"minDate";case Boolean(c&&n.isAfterDay(t,c)):return"maxDate";default:return null}};Cn.valueManager=xr;const En=({adapter:e,value:t,timezone:r,props:n})=>{if(null===t)return null;const{minTime:o,maxTime:a,minutesStep:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=n,d=e.date(void 0,r),p=Qt(l,e);switch(!0){case!e.isValid(t):return"invalidDate";case Boolean(o&&p(o,t)):return"minTime";case Boolean(a&&p(t,a)):return"maxTime";case Boolean(c&&e.isAfter(t,d)):return"disableFuture";case Boolean(u&&e.isBefore(t,d)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(i&&e.getMinutes(t)%i!==0):return"minutesStep";default:return null}};En.valueManager=xr;const Dn=({adapter:e,value:t,timezone:r,props:n})=>{const o=Cn({adapter:e,value:t,timezone:r,props:n});return null!==o?o:En({adapter:e,value:t,timezone:r,props:n})};Dn.valueManager=xr;const Mn=()=>
2Wr().defaultDates,On=e=>{const t=Hr(),r=a.useRef(void 0);return void 0===r.current&&(r.current=t.date(void 0,e)),r.current};function Tn(e){const t=Hr(),r=tn();return a.useMemo(()=>{const n=t.isValid(e)?t.format(e,"fullDate"):null;return r.openDatePickerDialogue(n)},[e,r,t])}function kn(e){const t=Hr(),r=In(e),n=a.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return a.useMemo(()=>(0,o.A)({},e,r,{format:e.format??(n?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,r,n,t])}function In(e){const t=Hr(),r=Mn();return a.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime||e.disableFuture||e.disablePast),minDate:jt(t,e.minDateTime??e.minDate,r.minDate),maxDate:jt(t,e.maxDateTime??e.maxDate,r.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}const _n=e=>(e=>{const t=mn();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??1?bn:Sn)(e)})({manager:function(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return a.useMemo(()=>({valueType:"date-time",validator:Dn,internal_valueManager:xr,internal_fieldValueManager:Ar,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:kn,internal_useOpenPickerButtonAriaLabel:Tn}),[t])}(e),props:e});var Rn=r(25239);const $n=Number("5");Number("18"),Number("0"),Number(void 0);var Vn=function(e){return"string"==typeof e};var Nn=function(e,t,r){return void 0===e||Vn(e)?t:{...t,ownerState:{...t.ownerState,...r}}};var Fn=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r};var jn=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t};var Ln=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,v.A)(r?.className,a,o?.className,n?.className),t={...r?.style,...o?.style,...n?.style},i={...r,...o,...n};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Fn({...o,...n}),s=jn(n),l=jn(o),u=t(i),c=(0,v.A)(u?.className,r?.className,a,o?.className,n?.className),d={...u?.style,...r?.style,...o?.style,...n?.style},p={...u,...r,...l,...s};return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}};var Bn=function(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:_t(r,n),{props:s,internalRef:l}=Ln({...a,externalSlotProps:i}),u=Sr(l,i?.ref,e.additionalProps?.ref);return Nn(t,{...s,ref:u},n)};const Un=a.createContext(()=>!0);const Yn=a.createContext(null);const zn=a.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function Wn(e){const{contextValue:t,actionsContextValue:r,privateContextValue:n,fieldPrivateContextValue:o,isValidContextValue:a,localeText:i,children:s}=e;return(0,T.jsx)(un.Provider,{value:t,children:(0,T.jsx)(Yn.Provider,{value:r,children:(0,T.jsx)(zn.Provider,{value:n,children:(0,T.jsx)(pn.Provider,{value:o,children:(0,T.jsx)(Un.Provider,{value:a,children:(0,T.jsx)(zr,{localeText:i,children:s})})})})})})}const Hn=()=>a.useContext(zn);function qn(e){const{ownerState:t}=Hn(),r=(0,en.I)();return a.useMemo(()=>(0,o.A)({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:r?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,r])}const Gn=(0,vt.A)((0,T.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Zn=(0,vt.A)((0,T.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Kn=(0,vt.A)((0,T.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Jn=(0,vt.A)((0,T.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Xn=((0,vt.A)((0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,T.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),(0,vt.A)((0,T.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange")),Qn=(0,vt.A)((0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,T.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),eo=(0,vt.A)((0,T.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function to(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const n=a[e];n&&(i+=(!0===s?"":" ")+t(n),s=!1,r&&r[n]&&(i+=" "+r[n]))}n[o]=i}return n}let ro=0;const no={...i}.useId;function oo(e){if(void 0!==no){const t=no();return e??t}return function(e){const[t,r]=a.useState(e),n=e||t;return a.useEffect(()=>{null==t&&(ro+=1,r(`mui-${ro}`))},[t]),n}(e)}var ao=r(54433),io=r(6347),so=r(50779);const lo=e=>e;var uo=(()=>{let e=lo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=lo}}})();const co={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function po(e,t,r="Mui"){const n=co[t];return n?`${r}-${n}`:`${uo.generate(e)}-${t}`}function mo(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=po(e,t,r)}),n}function fo(e){return po("MuiPickersTextField",e)}mo("MuiPickersTextField",["root","focused","disabled","error","required"]);var ho=r(79716);function go(e){return po("MuiPickersInputBase",e)}const yo=mo("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function vo(e){return po("MuiPickersOutlinedInput",e)}const bo=(0,o.A)({},yo,mo("MuiPickersOutlinedInput",["root","notchedOutline","input"]));var wo=r(56461);const xo=a.createContext(null);const Ao=()=>{const e=a.useContext(xo);if(null==e)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join("\n"));return e},So=["children","className","label","notched","shrink"],Po=(0,s.Ay)("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroun
2dChannel} / 0.23)`:t}}),Co=(0,s.Ay)("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Eo=(0,s.Ay)("legend",{shouldForwardProp:e=>(0,wo.MC)(e)&&"notched"!==e})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function Do(e){const{className:t,label:r,notched:n}=e,a=(0,y.A)(e,So),i=Ao();return(0,T.jsx)(Po,(0,o.A)({"aria-hidden":!0,className:t},a,{ownerState:i,children:(0,T.jsx)(Eo,{ownerState:i,notched:n,children:r?(0,T.jsx)(Co,{children:r}):(0,T.jsx)(Co,{className:"notranslate",children:"​"})})}))}function Mo(e){if("string"!=typeof e)throw new Error(function(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Oo={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function To(e){return po("MuiPickersSectionList",e)}const ko=mo("MuiPickersSectionList",["root","section","sectionContent"]),Io=["slots","slotProps","elements","sectionListRef","classes"],_o=(0,s.Ay)("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Ro=(0,s.Ay)("span",{name:"MuiPickersSectionList",slot:"Section"})({}),$o=(0,s.Ay)("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Vo=(0,s.Ay)("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"});function No(e){const{slots:t,slotProps:r,element:n,classes:a}=e,{ownerState:i}=Hn(),s=t?.section??Ro,l=Bn({elementType:s,externalSlotProps:r?.section,externalForwardedProps:n.container,className:a.section,ownerState:i}),u=t?.sectionContent??Vo,c=Bn({elementType:u,externalSlotProps:r?.sectionContent,externalForwardedProps:n.content,additionalProps:{suppressContentEditableWarning:!0},className:a.sectionContent,ownerState:i}),d=t?.sectionSeparator??$o,p=Bn({elementType:d,externalSlotProps:r?.sectionSeparator,externalForwardedProps:n.before,ownerState:(0,o.A)({},i,{separatorPosition:"before"})}),m=Bn({elementType:d,externalSlotProps:r?.sectionSeparator,externalForwardedProps:n.after,ownerState:(0,o.A)({},i,{separatorPosition:"after"})});return(0,T.jsxs)(s,(0,o.A)({},l,{children:[(0,T.jsx)(d,(0,o.A)({},p)),(0,T.jsx)(u,(0,o.A)({},c)),(0,T.jsx)(d,(0,o.A)({},m))]}))}const Fo=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersSectionList"}),{slots:n,slotProps:i,elements:s,sectionListRef:l,classes:u}=r,c=(0,y.A)(r,Io),d=(e=>to({root:["root"],section:["section"],sectionContent:["sectionContent"]},To,e))(u),{ownerState:p}=Hn(),m=a.useRef(null),f=Sr(t,m),h=e=>{if(!m.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return m.current};a.useImperativeHandle(l,()=>({getRoot(){return h("getRoot")},getSectionContainer(e){return h("getSectionContainer").querySelector(`.${ko.section}[data-sectionindex="${e}"]`)},getSectionContent(e){return h("getSectionContent").querySelector(`.${ko.section}[data-sectionindex="${e}"] .${ko.sectionContent}`)},getSectionIndexFromDOMElement(e){const t=h("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let r=null;return e.classList.contains(ko.section)?r=e:e.classList.contains(ko.sectionContent)&&(r=e.parentElement),null==r?null:Number(r.dataset.sectionindex)}}));const g=n?.root??_o,v=Bn({elementType:g,externalSlotProps:i?.root,externalForwardedProps:c,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:d.root,ownerState:p});return(0,T.jsx)(g,(0,o.A)({},v,{children:v.contentEditable?s.map(({content:e,before:t,after:r})=>`${t.children}${e.children}${r.children}`).join(""):(0,T.jsx)(a.Fragment,{children:s.map((e,t)=>(0,T.jsx)(No,{slots:n,slotProps:i,element:e,classes:d},t))})}))});const jo=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","render
2Suffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],Lo=(0,s.Ay)("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>{return(0,o.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:(t=.15/16,Math.round(1e5*t)/1e5)+"em",variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]});var t}),Bo=(0,s.Ay)(_o,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]})),Uo=(0,s.Ay)(Ro,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Yo=(0,s.Ay)(Vo,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),zo=(0,s.Ay)($o,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Wo=(0,s.Ay)("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})((0,o.A)({},Oo)),Ho=(0,s.Ay)("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}}));function qo(e,t,r,n){if(e.content.id){const e=t.current?.querySelectorAll(`[data-sectionindex="${r}"] [data-range-position="${n}"]`);if(e)return Array.from(e).reduce((e,t)=>e+t.offsetWidth,0)}return 0}const Go=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersInputBase"}),{elements:n,areAllSectionsEmpty:i,value:s,onChange:l,id:u,endAdornment:c,startAdornment:d,renderSuffix:p,slots:m,slotProps:f,contentEditable:h,tabIndex:g,onInput:v,onPaste:b,onKeyDown:w,name:x,readOnly:A,inputProps:S,inputRef:P,sectionListRef:C,onFocus:E,onBlur:D,classes:M,ownerState:O}=r,k=(0,y.A)(r,jo),I=Ao(),_=a.useRef(null),R=a.useRef(null),$=a.useRef([]),V=Sr(t,_),N=Sr(S?.ref,P),F=(0,ho.A)();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const j=O??I,L=e=>{F.onFocus?.(e),E?.(e)};a.useEffect(()=>{F&&F.setAdornedStart(Boolean(d))},[F,d]),a.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const B=((e,t)=>{const{isFieldFocused:r,isFieldDisabled:n,isFieldReadOnly:o,hasFieldError:a,inputSize:i,isInputInFullWidth:s,inputColor:l,hasStartAdornment:u,hasEndAdornment:c}=t;return to({root:["root",r&&!n&&"focused",n&&"disabled",o&&"readOnly",a&&"error",s&&"fullWidth",`color${Mo(l)}`,"small"===i&&"inputSizeSmall",u&&"adornedStart",c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]},go,e)})(M,j),U=m?.root||Lo,Y=Bn({elementType:U,externalSlotProps:f?.root,externalForwardedProps:k,additionalProps:{"aria-invalid":F.error,ref:V},className:B.root,ownerState:j}),z=m?.input||Bo,W=n.some(e=>void 0!==e.content["data-range-position"]);return a.useEffect(()=>{if(!W||!j.isPickerOpen)return;const{activeBarWidth:e,sectionOffsets:t}=function(e,t){let r=0;const n=t.current?.getAttribute("data-active-range-position");if("end"===n)for(let o=e.length-1;o>=e.length/2;o-=1)r+=qo(e[o],t,o,"end");else for(let o=0;o<e.length/2;o+=1)r+=qo(e[o],t,o,"start");return{activeBarWidth:r,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}(n,_);$.current=[t[0],t[1]],R.current&&(R.current.style.width=`${e}px`)},[n,W,j.isPickerOpen]),(0,T.jsxs)(U,(0,o.A)({},Y,{children:[d,(0,T.jsx)(Fo,{sectionListRef:C,elements:n,contentEditable:h,tabIndex:g,className:B.sectionsContainer,onFocus:L,onBlur:e=>{F.onBlur?.(e),D?.(e)},onInput:v,onPaste:b,onKeyDown:e=>{if(w?.(e),"Enter"===e.key&&!e.defaultMuiPrevented){if(_.current?.dataset.multiInput)return;const t=_.current?.closest("form"),r=t?.querySelector('[type="submit"]');if(!t||!r)return;e.preventDefault(),t.requestSubmit(r)}},slots:{root:z,section:Uo,sectionContent:Yo,sectionSeparator:zo},slotProps:{root:(0,o.A)({},f?.input,{ownerState:j}),sectionContent:{className:yo.sectionContent},sectionSeparator:({separatorPosition:e})=>({className:"before"===e?yo.sectionBefore:yo.sectionAfter})}}),c,p?p((0,o.A)({},F)):null,(0,T.jsx)(Wo,(0,o.A)({name:x,className:B.input,value:s,onChange:l,id:u,"aria-hidden":"true",tabIndex:-1,readOnly:A,required:F.required,disabled:F.disabled,onFocus:e=>{L(e)}},S,{ref:N})),W&&(0,T.jsx)(Ho,{className:B.activeBar,ref:R,ownerState:{sectionOffsets:$.current}})]}))});
2const Zo=["label","autoFocus","ownerState","classes","notched"],Ko=(0,s.Ay)(Lo,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${bo.disabled}`]:{[`& .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t]?.main??!1).map(t=>({props:{inputColor:t},style:{[`&.${bo.focused}:not(.${bo.error}) .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))}}),Jo=(0,s.Ay)(Bo,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),Xo=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersOutlinedInput"}),{label:n,classes:i,notched:s}=r,l=(0,y.A)(r,Zo),u=(0,ho.A)(),c=(e=>{const t=to({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vo,e);return(0,o.A)({},e,t)})(i);return(0,T.jsx)(Go,(0,o.A)({slots:{root:Ko,input:Jo},renderSuffix:e=>(0,T.jsx)(Do,{shrink:Boolean(s||e.adornedStart||e.focused||e.filled),notched:Boolean(s||e.adornedStart||e.focused||e.filled),className:c.notchedOutline,label:null!=n&&""!==n&&u?.required?(0,T.jsxs)(a.Fragment,{children:[n," ","*"]}):n})},l,{label:n,classes:c,ref:t}))});Xo.muiName="Input";var Qo=r(85329);function ea(e){return po("MuiPickersFilledInput",e)}const ta=(0,o.A)({},yo,mo("MuiPickersFilledInput",["root","underline","input"])),ra=["label","autoFocus","disableUnderline","hiddenLabel","classes"],na=(0,s.Ay)(Lo,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>(0,Qo.MC)(e)&&"disableUnderline"!==e})(({theme:e})=>{const t="light"===e.palette.mode,r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ta.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ta.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ta.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ta.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ta.disabled}, .${ta.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ta.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),oa=(0,s.Ay)(Bo,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>(0,Qo.MC)(e)&&"hiddenLabel"!==e})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),aa=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersFilledInput"}),{label:n,disableUnderline:a=!1,hiddenLabel:i=!1,classes:s}=r,l=(0,y.A)(r,ra),u=Ao(),c=(0,o.A)({},u,{inputHasUnderline:!a}),d=((e,t)=>{const{inputHasUnderline:r}=t,n=to({root:["root",r&&"underline"],input:["input"]},ea,e);return(0,o.A)({},e,n)})(s,c);return(0,T.jsx)(Go,(0,o.A)({slots:{root:na,input:oa},slotProps:{root:{disableUnderline:a},input:{hiddenLabel:i}}},l,{label:n,classes:d,ref:t,ownerState:c}))});function ia(e){return po("MuiPickersFilledInput",e)}aa.muiName="Input";const sa=(0,o.A)({},yo,mo("MuiPickersInput",["root","underline","input"])),la=["label","autoF
2ocus","disableUnderline","ownerState","classes"],ua=(0,s.Ay)(Lo,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>(0,wo.MC)(e)&&"disableUnderline"!==e})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sa.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${sa.disabled}, .${sa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${sa.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),ca=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersInput"}),{label:n,disableUnderline:a=!1,classes:i}=r,s=(0,y.A)(r,la),l=Ao(),u=(0,o.A)({},l,{inputHasUnderline:!a}),c=((e,t)=>{const{inputHasUnderline:r}=t,n=to({root:["root",!r&&"underline"],input:["input"]},ia,e);return(0,o.A)({},e,n)})(i,u);return(0,T.jsx)(Go,(0,o.A)({slots:{root:ua},slotProps:{root:{disableUnderline:a}}},s,{ownerState:u,label:n,classes:c,ref:t}))});ca.muiName="Input";const da=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],pa={standard:ca,filled:aa,outlined:Xo},ma=(0,s.Ay)(so.A,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),fa=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersTextField"}),{onFocus:n,onBlur:i,className:s,classes:l,color:u="primary",disabled:c=!1,error:d=!1,variant:p="outlined",required:m=!1,hiddenLabel:f=!1,InputProps:h,inputProps:g,inputRef:b,sectionListRef:w,elements:x,areAllSectionsEmpty:A,onClick:S,onKeyDown:P,onKeyUp:C,onPaste:E,onInput:D,endAdornment:M,startAdornment:O,tabIndex:k,contentEditable:I,focused:_,value:R,onChange:$,fullWidth:V,id:N,name:F,helperText:j,FormHelperTextProps:L,label:B,InputLabelProps:U,"data-active-range-position":Y}=r,z=(0,y.A)(r,da),W=Sr(t,a.useRef(null)),H=oo(N),q=j&&H?`${H}-helper-text`:void 0,G=B&&H?`${H}-label`:void 0,Z=qn({disabled:r.disabled,required:r.required,readOnly:h?.readOnly}),K=a.useMemo(()=>(0,o.A)({},Z,{isFieldValueEmpty:A,isFieldFocused:_??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:u??"primary",isInputInFullWidth:V??!1,hasStartAdornment:Boolean(O??h?.startAdornment),hasEndAdornment:Boolean(M??h?.endAdornment),inputHasLabel:!!B,isLabelShrunk:Boolean(U?.shrink)}),[Z,A,_,d,r.size,u,V,O,M,h?.startAdornment,h?.endAdornment,B,U?.shrink]),J=((e,t)=>{const{isFieldFocused:r,isFieldDisabled:n,isFieldRequired:o}=t;return to({root:["root",r&&!n&&"focused",n&&"disabled",o&&"required"]},fo,e)})(l,K),X=pa[p],Q={};return"outlined"===p?(U&&void 0!==U.shrink&&(Q.notched=U.shrink),Q.label=B):"filled"===p&&(Q.hiddenLabel=f),(0,T.jsx)(xo.Provider,{value:K,children:(0,T.jsxs)(ma,(0,o.A)({className:(0,v.A)(J.root,s),ref:W,focused:_,disabled:c,variant:p,error:d,color:u,fullWidth:V,required:m,ownerState:K},z,{children:[null!=B&&""!==B&&(0,T.jsx)(ao.A,(0,o.A)({htmlFor:H,id:G},U,{children:B})),(0,T.jsx)(X,(0,o.A)({elements:x,areAllSectionsEmpty:A,onClick:S,onKeyDown:P,onKeyUp:C,onInput:D,onPaste:E,onFocus:n,onBlur:i,endAdornment:M,startAdornment:O,tabIndex:k,contentEditable:I,value:R,onChange:$,id:H,fullWidth:V,inputProps:g,inputRef:b,sectionListRef:w,label:B,name:F,role:"group","aria-labelledby":G,"aria-describedby":q,"aria-live":q?"polite":void 0,"data-active-range-position":Y},Q,h)),j&&(0,T.jsx)(io.A,(0,o.A)({id:q},L,{children:j}))]}))})});const ha=["enableAccessibleFieldDOMStructure"],ga=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],ya=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],va=["ownerState"],ba=["ownerState"],wa=["ownerState"],xa=["ownerState"],Aa=["InputProps","inputProps"],Sa=()=>{},Pa=a.createContext({slots:{},slotProps:{},inputRef:void 0});function Ca(e){const{fieldResponse:t,defaultOpenPickerIcon:r}=e,n=tn(),i=dn(),s=a.useContext(Pa),{textFieldProps:l,onClear:c,clearable:d,openPickerAriaLabel:p,clearButtonPosition:m="end",openPickerButtonPosition:f="end"}=(e=>{let{enableAccessibleFieldDOMStructure:t}=e,r=(0,y.A)(e,ha);if(t){const{InputProps:e,readOnly:t,onClear:n,clearable:a,clearButtonPosition:i,openPickerButtonPosition:s,openPickerAriaLabel:l}=r,u=(0,y.A)(r,ga),c=$n>=6&&u?.slotProps?.input?Ea(u?.slotProps?.input,e):Sa;return{clearable:a,onClear:n,clearButtonPosition:i,openPickerButtonPosition:s,openPickerAriaLabel:l,textFieldProps:(0,o.A)({},u,$n>=6&&u?.slotProps?.input?{slotProps:(0,o.A)({},u?.slotProps,{input:e=>(0,o.A)({},_t(c,e),{readOnly:t})})}:{InputProps:(0,o.A)({},e??{},{readOnly:t})})}}const{onPaste:n,onKeyDown:a,inputMode:i,readOnly:s,InputProps:l,inputProps:u,inputRef:c,onClear:d,clearable:p,clearButtonPosition:m,openPickerButtonPosition:f,openPickerAriaLabel:h}=r,g=(0,y.A)(r,ya),v=$n>=6&&g?.slotProps?.input?Ea(g?.slotProps?.input,l):Sa,b=$n>=6&&g?.slotProps?.htmlInput?Ea(g?.slotProps?.htmlInput,u):Sa;return{clearable:p,onClear:d,clearButtonPosition:m,openPickerButtonPosition:f,openPickerAriaLabel:h,textFieldProps:(0,o.A)({},g,$n>=6&&(g?.slotProps?.input||g?.slotProps?.htmlInput)?{slotProps:(0,o.A)({},g?.slotProps,{input:e=>(0,o.A)({},_t(v,e),{readOnly:s}),htmlInput:e=>(0,o.A)({},_t(b,e),{inputMode:i,onPaste:n,onKeyDown:a,ref:c})})}:{InputProps:(0,o.A)({},l??{},{readOnly:s}),inputProps:(0,o.A)({},u??{},{inputMode:i,onPaste:n,onKeyDown:a,ref:c})})}})(t),h=qn(l),g=Cr(e=>{e.preventDefault(),i?.setOpen(e=>!e)}),v=i?i.triggerStatus:"hidden",b=d?m:null,w="hidden"!==v?f:null,x=s.slots.textField??(!1===t.enableAccessibleFieldDOMStructure?u.A:fa),A=s.slots.inputAdornment??Rn.A,S=Bn({elementType:A,externalSlotProps:s.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:(0,o.A)({},h,{position:"start"})}),P=(0,y.A)(S,va),C=Bn({elementType:A,externalSlotProps:s.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:(0,o.A)({},h,{position:"end"})}),E=(0,y.A)(C,ba),D=s.slots.openPickerButton??yt.A,M=Bn({elementType:D,externalSlotProps:s.slotProps.openPickerButton,additionalProps:{disabled:"disabled"===v,onClick:g,"aria-label":p,edge:"standard"!==l.variant&&w},ownerState:h}),O=(0,y.A)(M,wa),k=s.slots.openPickerIcon??r,I=Bn({elementType:k,externalSlotProps:s.slotProps.openPickerIcon,ownerState:h}),_=s.slots.clearButton??yt.A,R=Bn({elementType:_,externalSlotProps:s.slotProps.clearButton,className:"clearButton",additionalProps:{title:n.fieldClearLabel,tabIndex:-1,onClick:c,disabled:t.disabled||t.readOnly,edge:"standard"!==l.variant&&b!==w&&b},ownerState:h}),$=(0,y.A)(R,xa),V=s.slots.clearIcon??eo,N=Bn({elementType:V,externalSlotProps:s.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});l.ref=Sr(l.ref,i?.rootRef);const F={},j=_t(($n>=6&&l?.slotProps?.input)??l.InputProps,h);i&&(F.ref=i.triggerRef),j?.startAdornment||"start"!==b&&"start"!==w||(F.startAdornment=(0,T.jsxs)(A,(0,o.A)({},P,{children:["start"===w&&(0,T.jsx)(D,(0,o.A)({},O,{children:(0,T.jsx)(k,(0,o.A)({},I))})),"start"===b&&(0,T.jsx)(_,(0,o.A)({},$,{children:(0,T.jsx)(V,(0,o.A)({},N))}))]}))),j?.endAdornment||"end"!==b&&"end"!==w||(F.endAdornment=(0,T.jsxs)(A,(0,o.A)({},E,{children:["end"===b&&(0,T.jsx)(_,(0,o.A)({},$,{children:(0,T.jsx)(V,(0,o.A)({},N))})),"end"===w&&(0,T.jsx)(D,(0,o.A)({},O,{children:(0,T.jsx)(k,(0,o.A)({},I))}))]}))),F?.endAdornment||F?.startAdornment||!s.slots.inputAdornment||(F.endAdornment=(0,T.jsx)(A,(0,o.A)({},E))),null!=b&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0}
2,"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]);const L=$n>=6&&l?.slotProps?.input?_t(Ea(j,F),h):(0,o.A)({},j,F);return l.inputProps=$n>=6&&l?.slotProps?.htmlInput?_t(l.slotProps.htmlInput,h):l.inputProps,delete l?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete l?.slotProps,(0,T.jsx)(x,(0,o.A)({},l,{InputProps:L}))}function Ea(e,t){return e?t?r=>(0,o.A)({},_t(t,r),_t(e,r)):e:t}function Da(e){const{slots:t={},slotProps:r={},inputRef:n,children:o}=e,i=a.useMemo(()=>({inputRef:n,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:r.openPickerButton,openPickerIcon:r.openPickerIcon,textField:r.textField,inputAdornment:r.inputAdornment,clearIcon:r.clearIcon,clearButton:r.clearButton}}),[n,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,r.openPickerButton,r.openPickerIcon,r.textField,r.inputAdornment,r.clearIcon,r.clearButton]);return(0,T.jsx)(Pa.Provider,{value:i,children:o})}const Ma=["slots","slotProps"],Oa=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiDateTimeField"}),{slots:n,slotProps:i}=r,s=(0,y.A)(r,Ma),l=function(e){const{ref:t,externalForwardedProps:r,slotProps:n}=e,i=a.useContext(Pa),s=dn(),l=qn(r),{InputProps:u,inputProps:c}=r,d=(0,y.A)(r,Aa),p=Bn({elementType:fa,externalSlotProps:Ea(i.slotProps.textField,n?.textField),externalForwardedProps:d,additionalProps:{ref:t,sx:s?.rootSx,label:s?.label,name:s?.name,className:s?.rootClassName,inputRef:i.inputRef},ownerState:l});return p.inputProps=(0,o.A)({},c,p.inputProps),p.InputProps=(0,o.A)({},u,p.InputProps),p}({slotProps:i,ref:t,externalForwardedProps:s}),u=_n(l);return(0,T.jsx)(Da,{slots:n,slotProps:i,inputRef:s.inputRef,children:(0,T.jsx)(Ca,{fieldResponse:u,defaultOpenPickerIcon:Jn})})});var Ta=r(10423),ka=r(91434),Ia=r(6533);function _a(e){return po("MuiDateTimePickerTabs",e)}mo("MuiDateTimePickerTabs",["root"]);const Ra=e=>zt(e)?"date":"time",$a=(0,s.Ay)(ka.A,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Ia.A.indicator}`]:{bottom:"auto",top:0}}})),Va=function(e){const t=(0,kt.A)({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:r=(0,T.jsx)(Xn,{}),timeIcon:n=(0,T.jsx)(Qn,{}),hidden:o="undefined"==typeof window||window.innerHeight<667,className:i,classes:s,sx:l}=t,u=tn(),{ownerState:c}=Hn(),{view:d,setView:p}=cn(),m=(e=>to({root:["root"]},_a,e))(s);return o?null:(0,T.jsxs)($a,{ownerState:c,variant:"fullWidth",value:Ra(d),onChange:(e,t)=>
2{p("date"===t?"day":"hours")},className:(0,v.A)(i,m.root),sx:l,children:[(0,T.jsx)(Ta.A,{value:"date","aria-label":u.dateTableLabel,icon:(0,T.jsx)(a.Fragment,{children:r})}),(0,T.jsx)(Ta.A,{value:"time","aria-label":u.timeTableLabel,icon:(0,T.jsx)(a.Fragment,{children:n})})]})};function Na(e){return po("MuiPickersToolbarText",e)}const Fa=mo("MuiPickersToolbarText",["root"]),ja=["className","classes","selected","value"],La=(0,s.Ay)(l.A,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),Ba=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersToolbarText"}),{className:n,classes:a,selected:i,value:s}=r,l=(0,y.A)(r,ja),u=(e=>to({root:["root"]},Na,e))(a);return(0,T.jsx)(La,(0,o.A)({ref:t,className:(0,v.A)(u.root,n),component:"span",ownerState:r},i&&{"data-selected":!0},l,{children:s}))});function Ua(e){return po("MuiPickersToolbar",e)}const Ya=mo("MuiPickersToolbar",["root","title","content"]);function za(){const{ownerState:e}=Hn(),t=(0,en.I)();return a.useMemo(()=>(0,o.A)({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const Wa=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],Ha=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),qa=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>(0,wo.MC)(e)&&"landscapeDirection"!==e})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Ga=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersToolbar"}),{children:n,className:a,classes:i,toolbarTitle:s,hidden:u,titleId:c,landscapeDirection:d}=r,p=(0,y.A)(r,Wa),m=za(),f=(e=>to({root:["root"],title:["title"],content:["content"]},Ua,e))(i);return u?null:(0,T.jsxs)(Ha,(0,o.A)({ref:t,className:(0,v.A)(f.root,a),ownerState:m},p,{children:[(0,T.jsx)(l.A,{color:"text.secondary",variant:"overline",id:c,className:f.title,children:s}),(0,T.jsx)(qa,{className:f.content,ownerState:m,landscapeDirection:d,children:n})]}))});var Za=r(86990);const Ka=["align","className","classes","selected","typographyClassName","value","variant","width"],Ja=(0,s.Ay)(Za.A,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Xa=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersToolbarButton"}),{align:n,className:a,classes:i,selected:s,typographyClassName:l,value:u,variant:c,width:d}=r,p=(0,y.A)(r,Ka),m=(e=>to({root:["root"]},Ua,e))(i);return(0,T.jsx)(Ja,(0,o.A)({variant:"text",ref:t,className:(0,v.A)(m.root,a),ownerState:r},d?{sx:{width:d}}:{},p,{children:(0,T.jsx)(Ba,{align:n,className:l,variant:c,value:u,selected:s})}))});function Qa(e){return po("MuiDateTimePickerToolbar",e)}const ei=mo("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function ti(e,t,r,n){const o=Hr(),i=a.useMemo(()=>o.isValid(e)?e:null,[o,e]),s=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(i,o),l=a.useCallback(e=>{const a=null==i?null:((e,t,r,n)=>{const o=Jt(n.getHours(e),t,r);return n.setHours(e,o)})(i,e,Boolean(t),o);r(a,n??"partial")},[t,i,r,n,o]);return{meridiemMode:s,handleMeridiemChange:l}}const ri=320,ni=336,oi=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],ai=(0,s.Ay)(Ga,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>(0,wo.MC)(e)&&"toolbarVariant"!==e})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Ya.content} .${Fa.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),ii=(0,s.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),si=(0,s.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>(0,wo.MC)(e)&&"toolbarVariant"!==e})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>"landscape"===e&&"desktop"!==t,style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:r})=>"landscape"===e&&"desktop"!==t&&"rtl"===r,style:{flexDirection:"column-reverse"}}]}),li=(0,s.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>(0,wo.MC)(e)&&"toolbarVariant"!==e})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),ui=(0,s.Ay)(Ba,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>(0,wo.MC)(e)&&"toolbarVariant"!==e})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),ci=(0,s.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ei.ampmLabel}`]:t.ampmLabel},{[`&.${ei.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${ei.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),di=a.createContext(null);function pi(e){const t=(0,kt.A)({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:n,toolbarFormat:i,toolbarPlaceholder:s="––",toolbarTitle:l,className:u,classes:c}=t,d=(0,y.A)(t,oi),{value:p,setValue:m,disabled:f,readOnly:h,variant:g,orientation:b,view:w,setView:x,views:A}=cn(),S=tn(),P=za(),C=((e,t)=>{const{pickerOrientation:r,toolbarDirection:n}=t;return to({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer","rtl"===n&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer","rtl"===n&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection","landscape"===r&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Qa,e)})(c,P),E=Hr(),D=a.useContext(di),M=D?D.value:p,O=D?D.setValue:m,k=D?D.view:w,I=D?D.setView:x,{meridiemMode:_,handleMeridiemChange:R}=ti(M,r,e=>O(e,{changeImportance:"set"})),$=D?.forceDesktopVariant?"desktop":g,V="desktop"===$,N=Boolean(r&&!n),F=l??S.dateTimePickerToolbarTitle,j=a.useMemo(()=>E.isValid(M)?i?E.formatByString(M,i):E.format(M,"shortDate"):s,[M,i,s,E]),L=(e,t)=>E.isValid(M)?E.format(M,e):t;return(0,T.jsxs)(ai,(0,o.A)({className:(0,v.A)(C.root,u),toolbarTitle:F,toolbarVariant:$},d,{ownerState:P,children:[(0,T.jsxs)(ii,{className:C.dateContainer,ownerState:P,children:[A.includes("year")&&(0,T.jsx)(Xa,{tabIndex:-1,variant:"subtitle1",onClick:()=>I("year"),selected:"year"===k,value:L("year","–")}),A.includes("day")&&(0,T.jsx)(Xa,{tabIndex:-1,variant:V?"h5":"h4",onClick:()=>I("day"),selected:"day"===k,value:j})]}),(0,T.jsxs)(si,{className:C.timeContainer,ownerState:P,toolbarVariant:$,children:[(0,T.jsxs)(li,{className:C.timeDigitsContainer,ownerState:P,toolbarVariant:$,children:[A.includes("hours")&&(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(Xa,{variant:V?"h5":"h3",width:V&&"portrait"===b?48:void 0,onClick:()=>I("hours"),selected:"hours"===k,value:L(r?"hours12h":"hours24h","--")}),(0,T.jsx)(ui,{variant:V?"h5":"h3",value:":",className:C.separator,ownerState:P,toolbarVariant:$}),(0,T.jsx)(Xa,{variant:V?"h5":"h3",width:V&&"portrait"===b?48:void 0,onClick:()=>I("minutes"),selected:"minutes"===k||!A.includes("minutes")&&"hours"===k,value:L("minutes","--"),disabled:!A.includes("minutes")})]}),A.includes("seconds")&&(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)(ui,{variant:V?"h5":"h3",value:":",className:C.separator,ownerState:P,toolbarVariant:$}),(0,T.jsx)(Xa,{variant:V?"h5":"h3",width:V&&"portrait"===b?48:void 0,onClick:()=>I("seconds"),selected:"seconds"===k,value:L("seconds","--")})]})]}),N&&!V&&(0,T.jsxs)(ci,{className:C.ampmSelection,ownerState:P,children:[(0,T.jsx)(Xa,{variant:"subtitle2",selected:"am"===_,typographyClassName:C.ampmLabel,value:Ut(E,"am"),onClick:h?void 0:()=>R("am"),disabled:f}),(0,T.jsx)(Xa,{variant:"subtitle2",selected:"pm"===_,typographyClassName:C.ampmLabel,value:Ut(E,"pm"),onClick:h?void 0:()=>R("pm"),disabled:f})]}),r&&V&&(0,T.jsx)(Xa,{variant:"h5",onClick:()=>I("meridiem"),selected:"meridiem"===k,value:M&&_?Ut(E,_):"--",width:48})]})]}))}const mi=["views","format"],fi=(e,t,r)=>{let{views:n,format:a}=t,i=(0,y.A)(t,mi);if(a)return a;const s=[],l=[];
2if(n.forEach(e=>{Zt(e)?l.push(e):zt(e)&&s.push(e)}),0===l.length)return Wt(e,(0,o.A)({views:s},i),!1);if(0===s.length)return er(e,(0,o.A)({views:l},i));const u=er(e,(0,o.A)({views:l},i));return`${r?e.formats.keyboardDate:Wt(e,(0,o.A)({views:s},i),!1)} ${u}`},hi=(e,t,r)=>r?t.filter(e=>!Kt(e)||"hours"===e):e?[...t,"meridiem"]:t;function gi(e,t){const r=Hr(),n=(0,kt.A)({props:e,name:t}),i=In(n),s=n.ampm??r.is12HourCycleInCurrentLocale(),l=a.useMemo(()=>null==n.localeText?.toolbarTitle?n.localeText:(0,o.A)({},n.localeText,{dateTimePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]),{openTo:u,views:c}=(({openTo:e,defaultOpenTo:t,views:r,defaultViews:n})=>{const o=r??n;let a;if(null!=e)a=e;else if(o.includes(t))a=t;else{if(!(o.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");a=o[0]}return{views:o,openTo:a}})({views:n.views,openTo:n.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:d,thresholdToRenderTimeInASingleColumn:p,views:m,timeSteps:f}=function({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:r,views:n}){const a=e??24,i=(0,o.A)({hours:1,minutes:5,seconds:5},r),s=((e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t)(i,a);return{thresholdToRenderTimeInASingleColumn:a,timeSteps:i,shouldRenderTimeInASingleColumn:s,views:hi(t,n,s)}}({thresholdToRenderTimeInASingleColumn:n.thresholdToRenderTimeInASingleColumn,ampm:s,timeSteps:n.timeSteps,views:c}),h=s?[...c,"meridiem"]:c;return(0,o.A)({},n,i,{timeSteps:f,openTo:u,shouldRenderTimeInASingleColumn:d,thresholdToRenderTimeInASingleColumn:p,views:m,viewsForFormatting:h,ampm:s,localeText:l,orientation:n.orientation??"portrait",slots:(0,o.A)({toolbar:pi,tabs:Va},n.slots),slotProps:(0,o.A)({},n.slotProps,{toolbar:(0,o.A)({ampm:s},n.slotProps?.toolbar)})})}const yi=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:i,disablePast:s,timezone:l})=>{const u=Hr();return a.useCallback(a=>null!==Cn({adapter:u,value:a,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:n,maxDate:o,disableFuture:i,disablePast:s}}),[u,e,t,r,n,o,i,s,l])},vi=e=>{const{value:t,referenceDate:r,disableFuture:n,disablePast:i,maxDate:s,minDate:l,onMonthChange:u,onYearChange:c,reduceAnimations:d,shouldDisableDate:p,timezone:m,getCurrentMonthFromVisibleDate:f}=e,h=Hr(),g=a.useRef(((e,t)=>(r,n)=>{switch(n.type){case"setVisibleDate":return(0,o.A)({},r,{slideDirection:n.direction,currentMonth:n.month,isMonthSwitchingAnimating:!t.isSameMonth(n.month,r.currentMonth)&&!e&&!n.skipAnimation,focusedDay:n.focusedDay});case"changeMonthTimezone":{const e=n.newTimezone;if(t.getTimezone(r.currentMonth)===e)return r;let a=t.setTimezone(r.currentMonth,e);return t.getMonth(a)!==t.getMonth(r.currentMonth)&&(a=t.setMonth(a,t.getMonth(r.currentMonth))),(0,o.A)({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return(0,o.A)({},r,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}})(Boolean(d),h)).current,y=a.useMemo(()=>xr.getInitialReferenceValue({value:t,adapter:h,timezone:m,props:e,referenceDate:r,granularity:tr.day}),[r,m]),[v,b]=a.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:h.startOfMonth(y),slideDirection:"left"}),w=yi({shouldDisableDate:p,minDate:l,maxDate:s,disableFuture:n,disablePast:i,timezone:m});a.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:h.getTimezone(y)})},[y,h]);const x=Cr(({target:e,reason:t})=>{if("cell-interaction"===t&&null!=v.focusedDay&&h.isSameDay(e,v.focusedDay))return;const r="cell-interaction"===t;let o,a;if("cell-interaction"===t)o=f(e,v.currentMonth),a=e;else if(o=h.isSameMonth(e,v.currentMonth)?v.currentMonth:h.startOfMonth(e),a=e,w(a)){const t=h.startOfMonth(e),r=h.endOfMonth(e);a=Ft({adapter:h,date:a,minDate:h.isBefore(l,t)?t:l,maxDate:h.isAfter(s,r)?r:s,disablePast:i,disableFuture:n,isDateDisabled:w,timezone:m})}const d=!h.isSameMonth(v.currentMonth,o),p=!h.isSameYear(v.currentMonth,o);d&&u?.(o),p&&c?.(h.startOfYear(o)),b({type:"setVisibleDate",month:o,direction:h.isAfterDay(o,v.currentMonth)?"left":"right",focusedDay:null!=v.focusedDay&&null!=a&&h.isSameDay(a,v.focusedDay)?v.focusedDay:a,skipAnimation:r})}),A=a.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:y,calendarState:v,setVisibleDate:x,isDateDisabled:w,onMonthSwitchingAnimationEnd:A}};var bi=r(44038),wi=r(20973);const xi=e=>po("MuiPickersFadeTransitionGroup",e),Ai=(mo("MuiPickersFadeTransitionGroup",["root"]),["children"]),Si=(0,s.Ay)(bi.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Pi(e){const t=(0,kt.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:r,reduceAnimations:n,transKey:o,classes:a}=t,{children:i}=t,s=(0,y.A)(t,Ai),l=(e=>to({root:["root"]},xi,e))(a),u=(0,S.A)();return n?i:(0,T.jsx)(Si,{className:(0,v.A)(l.root,r),ownerState:s,children:(0,T.jsx)(wi.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:i},o)})}var Ci=r(18850),Ei=r(24279);function Di(e){return po("MuiPickersDay",e)}const Mi=mo("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function Oi(e){const{disabled:t,selected:r,today:n,outsideCurrentMonth:i,day:s,disableMargin:l,disableHighlightToday:u,showDaysOutsideCurrentMonth:c}=e,d=Hr(),{ownerState:p}=Hn();return a.useMemo(()=>(0,o.A)({},p,{day:s,isDaySelected:r??!1,isDayDisabled:t??!1,isDayCurrent:n??!1,isDayOutsideMonth:i??!1,isDayStartOfWeek:d.isSameDay(s,d.startOfWeek(s)),isDayEndOfWeek:d.isSameDay(s,d.endOfWeek(s)),disableMargin:l??!1,disableHighlightToday:u??!1,showDaysOutsideCurrentMonth:c??!1}),[d,p,s,r,t,n,i,l,u,c])}const Ti=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onF
2ocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],ki=({theme:e})=>(0,o.A)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Mi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mi.disabled}:not(.${Mi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mi.disabled}&.${Mi.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Mi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Ii=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.isDayCurrent&&t.today,!r.isDayOutsideMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.isDayOutsideMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},_i=(0,s.Ay)(Ci.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:Ii})(ki),Ri=(0,s.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Ii})(({theme:e})=>(0,o.A)({},ki({theme:e}),{opacity:0,pointerEvents:"none"})),$i=()=>{},Vi=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersDay"}),{autoFocus:n=!1,className:i,classes:s,isAnimating:l,onClick:u,onDaySelect:c,onFocus:d=$i,onBlur:p=$i,onKeyDown:m=$i,onMouseDown:f=$i,onMouseEnter:h=$i,children:g,day:b,selected:w,disabled:x,today:A,outsideCurrentMonth:S,disableMargin:P,disableHighlightToday:C,showDaysOutsideCurrentMonth:E}=r,D=(0,y.A)(r,Ti),M=Oi({day:b,selected:w,disabled:x,today:A,outsideCurrentMonth:S,disableMargin:P,disableHighlightToday:C,showDaysOutsideCurrentMonth:E}),O=((e,t)=>{const{isDaySelected:r,isDayDisabled:n,isDayCurrent:o,isDayOutsideMonth:a,disableMargin:i,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=t,u=a&&!l;return to({root:["root",r&&!u&&"selected",n&&"disabled",!i&&"dayWithMargin",!s&&o&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Di,e)})(s,M),k=Hr(),I=a.useRef(null),_=Sr(I,t);Pr(()=>{!n||x||l||S||I.current.focus()},[n,x,l,S]);return S&&!E?(0,T.jsx)(Ri,{className:(0,v.A)(O.root,O.hiddenDaySpacingFiller,i),ownerState:M,role:D.role}):(0,T.jsx)(_i,(0,o.A)({className:(0,v.A)(O.root,i),ref:_,centerRipple:!0,disabled:x,tabIndex:w?0:-1,onKeyDown:e=>m(e,b),onFocus:e=>d(e,b),onBlur:e=>p(e,b),onMouseEnter:e=>h(e,b),onClick:e=>{e.defaultMuiPrevented=!0,x||c(b),S&&e.currentTarget.focus(),u&&u(e)},onMouseDown:e=>{f(e),S&&e.preventDefault()}},D,{ownerState:M,children:g??k.format(b,"dayOfMonth")}))});const Ni=a.memo(Vi);var Fi=r(77387);
2function ji(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Li=r(80851),Bi=r(92403),Ui=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=ji(r.className,n):r.setAttribute("class",ji(r.className&&r.className.baseVal||"",n)));var r,n})},Yi=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}(0,Fi.A)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&(0,Bi.F)(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach(function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n})}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,a=r.done;this.appliedClasses[t]={},n&&Ui(e,n),o&&Ui(e,o),a&&Ui(e,a)},r.render=function(){var e=this.props,t=(e.classNames,(0,y.A)(e,["classNames"]));return a.createElement(Li.Ay,(0,o.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.Component);Yi.defaultProps={classNames:""},Yi.propTypes={};var zi=Yi;const Wi=e=>po("MuiPickersSlideTransition",e),Hi=mo("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),qi=["children","className","reduceAnimations","slideDirection","transKey","classes"],Gi=(0,s.Ay)(bi.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Hi["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Hi["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Hi.slideEnterActive}`]:t.slideEnterActive},{[`.${Hi.slideExit}`]:t.slideExit},{[`.${Hi["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Hi["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Hi["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Hi["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Hi.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Hi.slideExit}`]:{transform:"translate(0%)"},[`& .${Hi["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Hi["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});const Zi=e=>po("MuiDayCalendar",e),Ki=(mo("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),Ji=["ownerState"],Xi=(0,s.Ay)("div",{name:"MuiDayCalendar",slot:"Root"})({}),Qi=(0,s.Ay)("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),es=(0,s.Ay)(l.A,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ts=(0,s.Ay)(l.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),rs=(0,s.Ay)(l.A,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>(0,o.A)({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ns=(0,s.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),os=(0,s.Ay)(function(e){const t=(0,kt.A)({props:e,name:"MuiPickersSlideTransition"}),{children:r,className:n,reduceAnimations:i,slideDirection:s,transKey:l,classes:u}=t,c=(0,y.A)(t,qi),{ownerState:d}=Hn(),p=(0,o.A)({},d,{slideDirection:s}),m=((e,t)=>{const{slideDirection:r}=t;return to({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter
2:[`slideEnter-${r}`],exitActive:[`slideExitActiveLeft-${r}`]},Wi,e)})(u,p),f=(0,S.A)();if(i)return(0,T.jsx)("div",{className:(0,v.A)(m.root,n),children:r});const h={exit:m.exit,enterActive:m.enterActive,enter:m.enter,exitActive:m.exitActive};return(0,T.jsx)(Gi,{className:(0,v.A)(m.root,n),childFactory:e=>a.cloneElement(e,{classNames:h}),role:"presentation",ownerState:p,children:(0,T.jsx)(zi,(0,o.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:f.transitions.duration.complex,classNames:h},c,{children:r}),l)})},{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:240}),as=(0,s.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),is=(0,s.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:"2px 0",display:"flex",justifyContent:"center"});function ss(e){let{parentProps:t,day:r,focusedDay:n,selectedDays:i,isDateDisabled:s,currentMonthNumber:l,isViewFocused:u}=e,c=(0,y.A)(e,Ki);const{disabled:d,disableHighlightToday:p,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:f,slots:h,slotProps:g,timezone:v}=t,b=Hr(),w=On(v),x=null!=n&&b.isSameDay(r,n),A=u&&x,S=i.some(e=>b.isSameDay(e,r)),P=b.isSameDay(r,w),C=a.useMemo(()=>d||s(r),[d,s,r]),E=a.useMemo(()=>b.getMonth(r)!==l,[b,r,l]),D=Oi({day:r,selected:S,disabled:C,today:P,outsideCurrentMonth:E,disableMargin:void 0,disableHighlightToday:p,showDaysOutsideCurrentMonth:f}),M=h?.day??Ni,O=Bn({elementType:M,externalSlotProps:g?.day,additionalProps:(0,o.A)({disableHighlightToday:p,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:m,"data-timestamp":b.toJsDate(r).valueOf()},c),ownerState:(0,o.A)({},D,{day:r,isDayDisabled:C,isDaySelected:S})}),k=(0,y.A)(O,Ji),I=a.useMemo(()=>{const e=b.startOfMonth(b.setMonth(r,l));return f?b.isSameDay(r,b.startOfWeek(e)):b.isSameDay(r,e)},[l,r,f,b]),_=a.useMemo(()=>{const e=b.endOfMonth(b.setMonth(r,l));return f?b.isSameDay(r,b.endOfWeek(e)):b.isSameDay(r,e)},[l,r,f,b]);return(0,T.jsx)(M,(0,o.A)({},k,{day:r,disabled:C,autoFocus:!E&&A,today:P,outsideCurrentMonth:E,isFirstVisibleCell:I,isLastVisibleCell:_,selected:S,tabIndex:x?0:-1,"aria-selected":S,"aria-current":P?"date":void 0}))}function ls(e){const t=(0,kt.A)({props:e,name:"MuiDayCalendar"}),r=Hr(),{onFocusedDayChange:n,className:i,classes:s,currentMonth:l,selectedDays:u,focusedDay:c,loading:d,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:f,reduceAnimations:h,renderLoading:g=()=>(0,T.jsx)("span",{children:"..."}),slideDirection:y,TransitionProps:b,disablePast:w,disableFuture:x,minDate:A,maxDate:S,shouldDisableDate:P,shouldDisableMonth:C,shouldDisableYear:E,dayOfWeekFormatter:D=e=>r.format(e,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:O,gridLabelId:k,displayWeekNumber:I,fixedWeekNumber:_,timezone:R}=t,$=On(R),V=(e=>to({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Zi,e))(s),N=(0,en.I)(),F=yi({shouldDisableDate:P,shouldDisableMonth:C,shouldDisableYear:E,minDate:A,maxDate:S,disablePast:w,disableFuture:x,timezone:R}),j=tn(),L=Cr(e=>{f||p(e)}),B=e=>{F(e)||(n(e),O?.(!0))},U=Cr((e,t)=>{switch(e.key){case"ArrowUp":B(r.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":B(r.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=r.addDays(t,N?1:-1),o=r.addMonths(t,N?1:-1),a=Ft({adapter:r,date:n,minDate:N?n:r.startOfMonth(o),maxDate:N?r.endOfMonth(o):n,isDateDisabled:F,timezone:R});B(a||n),e.preventDefault();break}case"ArrowRight":{const n=r.addDays(t,N?-1:1),o=r.addMonths(t,N?-1:1),a=Ft({adapter:r,date:n,minDate:N?r.startOfMonth(o):n,maxDate:N?n:r.endOfMonth(o),isDateDisabled:F,timezone:R});B(a||n),e.preventDefault();break}case"Home":B(r.startOfWeek(t)),e.preventDefault();break;case"End":B(r.endOfWeek(t)),e.preventDefault();break;case"PageUp":B(r.addMonths(t,1)),e.preventDefault();break;case"PageDown":B(r.addMonths(t,-1)),e.preventDefault()}}),Y=Cr((e,t)=>B(t)),z=Cr((e,t)=>{null!=c&&r.isSameDay(c,t)&&O?.(!1)}),W=r.getMonth(l),H=r.getYear(l),q=a.useMemo(()=>u.filter(e=>!!e).map(e=>r.startOfDay(e)),[r,u]),G=`${H}-${W}`,Z=a.useMemo(()=>a.createRef(),[G]),K=a.useMemo(()=>{const e=r.getWeekArray(l);let t=r.addMonths(l,1);for(;_&&e.length<_;){const n=r.getWeekArray(t),o=r.isSameDay(e[e.length-1][0],n[0][0]);
2n.slice(o?1:0).forEach(t=>{e.length<_&&e.push(t)}),t=r.addMonths(t,1)}return e},[l,_,r]);return(0,T.jsxs)(Xi,{role:"grid","aria-labelledby":k,className:V.root,children:[(0,T.jsxs)(Qi,{role:"row",className:V.header,children:[I&&(0,T.jsx)(ts,{variant:"caption",role:"columnheader","aria-label":j.calendarWeekNumberHeaderLabel,className:V.weekNumberLabel,children:j.calendarWeekNumberHeaderText}),Ht(r,$).map((e,t)=>(0,T.jsx)(es,{variant:"caption",role:"columnheader","aria-label":r.format(e,"weekday"),className:V.weekDayLabel,children:D(e)},t.toString()))]}),d?(0,T.jsx)(ns,{className:V.loadingContainer,children:g()}):(0,T.jsx)(os,(0,o.A)({transKey:G,onExited:m,reduceAnimations:h,slideDirection:y,className:(0,v.A)(i,V.slideTransition)},b,{nodeRef:Z,children:(0,T.jsx)(as,{ref:Z,role:"rowgroup",className:V.monthContainer,children:K.map((e,n)=>(0,T.jsxs)(is,{role:"row",className:V.weekContainer,"aria-rowindex":n+1,children:[I&&(0,T.jsx)(rs,{className:V.weekNumber,role:"rowheader","aria-label":j.calendarWeekNumberAriaLabelText(r.getWeekNumber(e[0])),children:j.calendarWeekNumberText(r.getWeekNumber(e[0]))}),e.map((e,r)=>(0,T.jsx)(ss,{parentProps:t,day:e,selectedDays:q,isViewFocused:M,focusedDay:c,onKeyDown:U,onFocus:Y,onBlur:z,onDaySelect:L,isDateDisabled:F,currentMonthNumber:W,"aria-colindex":r+1},e.toString()))]},`week-${e[0]}`))})}))]})}function us(e){return po("MuiMonthCalendar",e)}const cs=mo("MuiMonthCalendar",["root","button","disabled","selected"]),ds=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],ps=(0,s.Ay)("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${cs.disabled}`]:t.disabled},{[`&.${cs.selected}`]:t.selected}]})(({theme:e})=>(0,o.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${cs.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${cs.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ms=a.memo(function(e){const{autoFocus:t,classes:r,disabled:n,selected:i,value:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:d,slots:p,slotProps:m}=e,f=(0,y.A)(e,ds),h=a.useRef(null),{ownerState:g}=Hn(),v=(0,o.A)({},g,{isMonthDisabled:n,isMonthSelected:i}),b=((e,t)=>to({button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]},us,e))(r,v);Pr(()=>{t&&h.current?.focus()},[t]);const w=p?.monthButton??ps,x=Bn({elementType:w,externalSlotProps:m?.monthButton,externalForwardedProps:f,additionalProps:{disabled:n,ref:h,type:"button",role:"radio","aria-checked":i,onClick:e=>l(e,s),onKeyDown:e=>u(e,s),onFocus:e=>c(e,s),onBlur:e=>d(e,s)},ownerState:v,className:b.button});return(0,T.jsx)(w,(0,o.A)({},x))});function fs(e){const t=Hr(),r=Mn();return a.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:jt(t,e.minDate,r.minDate),maxDate:jt(t,e.maxDate,r.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,r])}const hs=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"];const gs=(e,t,r,n,o)=>Boolean(e===t&&n&&o.isSameYear(r,n)),ys=(0,s.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>(0,wo.MC)(e)&&"monthsPerRow"!==e})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:ri,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),vs=a.forwardRef(function(e,t){const r=function(e,t){const r=(0,kt.A)({props:e,name:t}),n=fs(r);return(0,o.A)({},r,n,{monthsPerRow:r.monthsPerRow??3})}(e,"MuiMonthCalendar"),{autoFocus:n,className:i,currentMonth:s,classes:l,value:u,defaultValue:c,referenceDate:d,disabled:p,disableFuture:m,disablePast:f,maxDate:h,minDate:g,onChange:b,shouldDisableMonth:w,readOnly:x,onMonthFocus:A,hasFocus:S,onFocusedViewChange:P,monthsPerRow:C,timezone:E,gridLabelId:D,slots:M,slotProps:O}
2=r,k=(0,y.A)(r,hs),{value:I,handleValueChange:_,timezone:R}=sn({name:"MonthCalendar",timezone:E,value:u,defaultValue:c,referenceDate:d,onChange:b,valueManager:xr}),$=On(R),V=(0,en.I)(),N=Hr(),{ownerState:F}=Hn(),j=a.useMemo(()=>xr.getInitialReferenceValue({value:I,adapter:N,props:r,timezone:R,referenceDate:d,granularity:tr.month}),[]),L=(e=>to({root:["root"]},us,e))(l),B=a.useMemo(()=>N.getMonth($),[N,$]),U=a.useMemo(()=>null!=I?N.getMonth(I):null,[I,N]),[Y,z]=a.useState(()=>U||N.getMonth(j)),[W,H]=Zr({name:"MonthCalendar",state:"hasFocus",controlled:S,default:n??!1}),q=Cr(e=>{H(e),P&&P(e)}),G=a.useCallback(e=>{const t=N.startOfMonth(f&&N.isAfter($,g)?$:g),r=N.startOfMonth(m&&N.isBefore($,h)?$:h),n=N.startOfMonth(e);return!!N.isBefore(n,t)||(!!N.isAfter(n,r)||!!w&&w(n))},[m,f,h,g,$,w,N]),Z=Cr((e,t)=>{if(x)return;const r=I&&s&&!N.isSameYear(I,s)?N.setYear(I,N.getYear(s)):I,n=N.setMonth(r??j,t);_(n)}),K=Cr(e=>{G(N.setMonth(I??s??j,e))||(z(e),q(!0),A&&A(e))});a.useEffect(()=>{z(e=>null!==U&&e!==U?U:e)},[U]);const J=Cr((e,t)=>{const r=12;switch(e.key){case"ArrowUp":K((r+t-3)%r),e.preventDefault();break;case"ArrowDown":K((r+t+3)%r),e.preventDefault();break;case"ArrowLeft":K((r+t+(V?1:-1))%r),e.preventDefault();break;case"ArrowRight":K((r+t+(V?-1:1))%r),e.preventDefault()}}),X=Cr((e,t)=>{K(t)}),Q=Cr((e,t)=>{Y===t&&q(!1)});return(0,T.jsx)(ys,(0,o.A)({ref:t,className:(0,v.A)(L.root,i),ownerState:F,role:"radiogroup","aria-labelledby":D,monthsPerRow:C},k,{children:Lt(N,s??I??j).map(e=>{const t=N.getMonth(e),r=N.format(e,"monthShort"),n=N.format(e,"month"),o=gs(t,U,e,I,N),a=p||G(e);return(0,T.jsx)(ms,{selected:o,value:t,onClick:Z,onKeyDown:J,autoFocus:W&&t===Y,disabled:a,tabIndex:t!==Y||a?-1:0,onFocus:X,onBlur:Q,"aria-current":gs(t,B,e,$,N)?"date":void 0,"aria-label":n,slots:M,slotProps:O,classes:l,children:r},r)})}))});function bs(e){return po("MuiYearCalendar",e)}const ws=mo("MuiYearCalendar",["root","button","disabled","selected"]),xs=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],As=(0,s.Ay)("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ws.disabled}`]:t.disabled},{[`&.${ws.selected}`]:t.selected}]})(({theme:e})=>(0,o.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Ei.X4)(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ws.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ws.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ss=a.memo(function(e){const{autoFocus:t,classes:r,disabled:n,selected:i,value:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:d,slots:p,slotProps:m}=e,f=(0,y.A)(e,xs),h=a.useRef(null),{ownerState:g}=Hn(),v=(0,o.A)({},g,{isYearDisabled:n,isYearSelected:i}),b=((e,t)=>to({button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]},bs,e))(r,v);Pr(()=>{t&&h.current?.focus()},[t]);const w=p?.yearButton??As,x=Bn({elementType:w,externalSlotProps:m?.yearButton,externalForwardedProps:f,additionalProps:{disabled:n,ref:h,type:"button",role:"radio","aria-checked":i,onClick:e=>l(e,s),onKeyDown:e=>u(e,s),onFocus:e=>c(e,s),onBlur:e=>d(e,s)},ownerState:v,className:b.button});return(0,T.jsx)(w,(0,o.A)({},x))});const Ps=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"];const Cs=(0,s.Ay)("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>(0,wo.MC)(e)&&"yearsPerRow"!==e})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:ri,maxHeight:280,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Es=(0,s.Ay)("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),Ds=a.forwardRef(function(e,t){const r=function(e,t){const r=(0,kt.A)({props:e,name:t}),n=fs(r);return(0,o.A)({},r,n,{yearsPerRow:r.yearsPerRow??3,yearsOrder:r.yearsOrder??"asc"})}(e,"MuiYearCalendar"),{autoFocus:n,className:i,classes:s,value:l,defaultValue:u,referenceDate:c,disabled:d,disableFuture:p,disablePast:m,maxDate:f,minDate:h,onChange:g,readOnly:b,shouldDisableYear:w,onYearFocus:x,hasFocus:A,onFocusedViewChange:S,yearsOrder:P,yearsPerRow:C,timezone:E,gridLabelId:D,slots:M,slotProps:O}
2=r,k=(0,y.A)(r,Ps),{value:I,handleValueChange:_,timezone:R}=sn({name:"YearCalendar",timezone:E,value:l,defaultValue:u,referenceDate:c,onChange:g,valueManager:xr}),$=On(R),V=(0,en.I)(),N=Hr(),{ownerState:F}=Hn(),j=a.useMemo(()=>xr.getInitialReferenceValue({value:I,adapter:N,props:r,timezone:R,referenceDate:c,granularity:tr.year}),[]),L=(e=>to({root:["root"]},bs,e))(s),B=a.useMemo(()=>N.getYear($),[N,$]),U=a.useMemo(()=>null!=I?N.getYear(I):null,[I,N]),[Y,z]=a.useState(()=>U||N.getYear(j)),[W,H]=Zr({name:"YearCalendar",state:"hasFocus",controlled:A,default:n??!1}),q=Cr(e=>{H(e),S&&S(e)}),G=a.useCallback(e=>{if(m&&N.isBeforeYear(e,$))return!0;if(p&&N.isAfterYear(e,$))return!0;if(h&&N.isBeforeYear(e,h))return!0;if(f&&N.isAfterYear(e,f))return!0;if(!w)return!1;const t=N.startOfYear(e);return w(t)},[p,m,f,h,$,w,N]),Z=Cr((e,t)=>{if(b)return;const r=N.setYear(I??j,t);_(r)}),K=Cr(e=>{G(N.setYear(I??j,e))||(z(e),q(!0),x?.(e))});a.useEffect(()=>{z(e=>null!==U&&e!==U?U:e)},[U]);const J="desc"!==P?1*C:-1*C,X=V&&"asc"===P||!V&&"desc"===P?-1:1,Q=Cr((e,t)=>{switch(e.key){case"ArrowUp":K(t-J),e.preventDefault();break;case"ArrowDown":K(t+J),e.preventDefault();break;case"ArrowLeft":K(t-X),e.preventDefault();break;case"ArrowRight":K(t+X),e.preventDefault()}}),ee=Cr((e,t)=>{K(t)}),te=Cr((e,t)=>{Y===t&&q(!1)}),re=a.useRef(null),ne=Sr(t,re);a.useEffect(()=>{if(n||null===re.current)return;const e=re.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,r=e.offsetTop,o=re.current.clientHeight,a=re.current.scrollTop,i=r+t;t>o||r<a||(re.current.scrollTop=i-o/2-t/2)},[n]);const oe=N.getYearRange([h,f]);"desc"===P&&oe.reverse();let ae=C-oe.length%C;return ae===C&&(ae=0),(0,T.jsxs)(Cs,(0,o.A)({ref:ne,className:(0,v.A)(L.root,i),ownerState:F,role:"radiogroup","aria-labelledby":D,yearsPerRow:C},k,{children:[oe.map(e=>{const t=N.getYear(e),r=t===U,n=d||G(e);return(0,T.jsx)(Ss,{selected:r,value:t,onClick:Z,onKeyDown:Q,autoFocus:W&&t===Y,disabled:n,tabIndex:t!==Y||n?-1:0,onFocus:ee,onBlur:te,"aria-current":B===t?"date":void 0,slots:M,slotProps:O,classes:s,children:N.format(e,"year")},N.format(e,"year"))}),Array.from({length:ae},(e,t)=>(0,T.jsx)(Es,{},t))]}))});const Ms={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function Os({onChange:e,onViewChange:t,openTo:r,view:n,views:i,autoFocus:s,focusedView:l,onFocusedViewChange:u,getStepNavigation:c}){const d=a.useRef(r),p=a.useRef(i),m=a.useRef(i.includes(r)?r:i[0]),[f,h]=Zr({name:"useViews",state:"view",controlled:n,default:m.current}),g=a.useRef(s?f:null),[y,v]=Zr({name:"useViews",state:"focusedView",controlled:l,default:g.current}),b=c?c({setView:h,view:f,defaultView:m.current,views:i}):Ms;a.useEffect(()=>{(d.current&&d.current!==r||p.current&&p.current.some(e=>!i.includes(e)))&&(h(i.includes(r)?r:i[0]),p.current=i,d.current=r)},[r,h,f,i]);const w=i.indexOf(f),x=i[w-1]??null,A=i[w+1]??null,S=Cr((e,t)=>{v(t?e:t=>e===t?null:t),u?.(e,t)}),P=Cr(e=>{S(e,!0),e!==f&&(h(e),t&&t(e))}),C=Cr(()=>{A&&P(A)}),E=Cr((t,r,n)=>{const o="finish"===r,a=n?i.indexOf(n)<i.length-1:Boolean(A);e(t,o&&a?"partial":r,n);let s=null;if(null!=n&&n!==f?s=n:o&&(s=f),null==s)return;const l=i[i.indexOf(s)+1];null!=l&&b.areViewsInSameStep(s,l)&&P(l)});return(0,o.A)({},b,{view:f,setView:P,focusedView:y,setFocusedView:S,nextView:A,previousView:x,defaultView:i.includes(r)?r:i[0],goToNextView:C,setValueAndGoToNextView:E})}function Ts(e){return po("MuiPickersArrowSwitcher",e)}mo("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const ks=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Is=["ownerState"],_s=["ownerState"],Rs=(0,s.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),$s=(0,s.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Vs=(0,s.Ay)(yt.A,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Ns=a.forwardRef(function(e,t){const r=(0,en.I)(),n=(0,kt.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:a,className:i,slots:s,slotProps:u,isNextDisabled:c,isNextHidden:d,onGoToNext:p,nextLabel:m,isPreviousDisabled:f,isPreviousHidden:h,onGoToPrevious:g,previousLabel:b,labelId:w,classes:x}=n,A=(0,y.A)(n,ks),{ownerState:S}=Hn(),P=(e=>to({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Ts,e))(x),C={isDisabled:c,isHidden:d,goTo:p,label:m},E={isDisabled:f,isHidden:h,goTo:g,label:b},D=s?.previousIconButton??Vs,M=Bn({elementType:D,externalSlotProps:u?.previousIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"end",onClick:E.goTo},ownerState:(0,o.A)({},S,{isButtonHidden:E.isHidden??!1}),className:(0,v.A)(P.button,P.previousIconButton)}),O=s?.nextIconButton??Vs,k=Bn({elementType:O,externalSlotProps:u?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:(0,o.A)({},S,{isButtonHidden:C.isHidden??!1}),className:(0,v.A)(P.button,P.nextIconButton)}),I=s?.leftArrowIcon??Zn,_=Bn({elementType:I,externalSlotProps:u?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.leftArrowIcon}),R=(0,y.A)(_,Is),$=s?.rightArrowIcon??Kn,V=Bn({elementType:$,externalSlotProps:u?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:P.rightArrowIcon}),N=(0,y.A)(V,_s);return(0,T.jsxs)(Rs,(0,o.A)({ref:t,className:(0,v.A)(P.root,i),ownerState:S},A,{children:[(0,T.jsx)(D,(0,o.A)({},M,{children:r?(0,T.jsx)($,(0,o.A)({},N)):(0,T.jsx)(I,(0,o.A)({},R))})),a?(0,T.jsx)(l.A,{variant:"subtitle1",component:"span",id:w,children:a}):(0,T.jsx)($s,{className:P.spacer,ownerState:S}),(0,T.jsx)(O,(0,o.A)({},k,{children:r?(0,T.jsx)(I,(0,o.A)({},R)):(0,T.jsx)($,(0,o.A)({},N))}))]}))});const Fs=e=>po("MuiPickersCalendarHeader",e),js=mo("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Ls=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Bs=["ownerState"],Us=(0,s.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Ys=(0,s.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>
2(0,o.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),zs=(0,s.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Ws=(0,s.Ay)(yt.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${js.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Hs=(0,s.Ay)(Gn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),qs=a.forwardRef(function(e,t){const r=tn(),n=Hr(),i=(0,kt.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:l,currentMonth:u,disabled:c,disableFuture:d,disablePast:p,maxDate:m,minDate:f,onMonthChange:h,onViewChange:g,view:b,reduceAnimations:w,views:x,labelId:A,className:S,classes:P,timezone:C,format:E=`${n.formats.month} ${n.formats.year}`}=i,D=(0,y.A)(i,Ls),{ownerState:M}=Hn(),O=(e=>to({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Fs,e))(P),k=s?.switchViewButton??Ws,I=Bn({elementType:k,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:(0,o.A)({},M,{view:b}),className:O.switchViewButton}),_=s?.switchViewIcon??Hs,R=Bn({elementType:_,externalSlotProps:l?.switchViewIcon,ownerState:M,className:O.switchViewIcon}),$=(0,y.A)(R,Bs),V=function(e,{disableFuture:t,maxDate:r,timezone:n}){const o=Hr();return a.useMemo(()=>{const a=o.date(void 0,n),i=o.startOfMonth(t&&o.isBefore(a,r)?a:r);return!o.isAfter(i,e)},[t,r,e,o,n])}(u,{disableFuture:d,maxDate:m,timezone:C}),N=function(e,{disablePast:t,minDate:r,timezone:n}){const o=Hr();return a.useMemo(()=>{const a=o.date(void 0,n),i=o.startOfMonth(t&&o.isAfter(a,r)?a:r);return!o.isBefore(i,e)},[t,r,e,o,n])}(u,{disablePast:p,minDate:f,timezone:C});if(1===x.length&&"year"===x[0])return null;const F=n.formatByString(u,E);return(0,T.jsxs)(Us,(0,o.A)({},D,{ownerState:M,className:(0,v.A)(O.root,S),ref:t,children:[(0,T.jsxs)(Ys,{role:"presentation",onClick:()=>{if(1!==x.length&&g&&!c)if(2===x.length)g(x.find(e=>e!==b)||x[0]);else{const e=0!==x.indexOf(b)?0:1;g(x[e])}},ownerState:M,"aria-live":"polite",className:O.labelContainer,children:[(0,T.jsx)(Pi,{reduceAnimations:w,transKey:F,children:(0,T.jsx)(zs,{id:A,ownerState:M,className:O.label,children:F})}),x.length>1&&!c&&(0,T.jsx)(k,(0,o.A)({},I,{children:(0,T.jsx)(_,(0,o.A)({},$))}))]}),(0,T.jsx)(wi.A,{in:"day"===b,appear:!w,enter:!w,children:(0,T.jsx)(Ns,{slots:s,slotProps:l,onGoToPrevious:()=>h(n.addMonths(u,-1)),isPreviousDisabled:N,previousLabel:r.previousMonth,onGoToNext:()=>h(n.addMonths(u,1)),isNextDisabled:V,nextLabel:r.nextMonth})})]}))});const Gs=(0,s.Ay)("div")({overflow:"hidden",width:ri,maxHeight:ni,display:"flex",flexDirection:"column",margin:"0 auto"}),Zs="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Ks=Zs&&Zs[1]?parseInt(Zs[1],10):null,Js=Zs&&Zs[2]?parseInt(Zs[2],10):null,Xs=Ks&&Ks<10||Js&&Js<13||!1;function Qs(e){const t=Tt("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1});return null!=e?e:t||Xs}const el=e=>po("MuiDateCalendar",e),tl=(mo("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"]);const rl=(0,s.Ay)(Gs,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:ni}),nl=(0,s.Ay)(Pi,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),ol=a.forwardRef(function(e,t){const r=Hr(),{ownerState:n}=Hn(),i=oo(),s=function(e,t){const r=(0,kt.A)({props:e,name:t}),n=Qs(r.reduceAnimations),a=fs(r);return(0,o.A)({},r,a,{loading:r.loading??!1,openTo:r.openTo??"day",views:r.views??["year","day"],reduceAnimations:n,renderLoading:r.renderLoading??(()=>(0,T.jsx)("span",{children:"..."}))})}
2(e,"MuiDateCalendar"),{autoFocus:l,onViewChange:u,value:c,defaultValue:d,referenceDate:p,disableFuture:m,disablePast:f,onChange:h,onMonthChange:g,reduceAnimations:b,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:A,view:S,views:P,openTo:C,className:E,classes:D,disabled:M,readOnly:O,minDate:k,maxDate:I,disableHighlightToday:_,focusedView:R,onFocusedViewChange:$,showDaysOutsideCurrentMonth:V,fixedWeekNumber:N,dayOfWeekFormatter:F,slots:j,slotProps:L,loading:B,renderLoading:U,displayWeekNumber:Y,yearsOrder:z,yearsPerRow:W,monthsPerRow:H,timezone:q}=s,G=(0,y.A)(s,tl),{value:Z,handleValueChange:K,timezone:J}=sn({name:"DateCalendar",timezone:q,value:c,defaultValue:d,referenceDate:p,onChange:h,valueManager:xr}),{view:X,setView:Q,focusedView:ee,setFocusedView:te,goToNextView:re,setValueAndGoToNextView:ne}=Os({view:S,views:P,openTo:C,onChange:K,onViewChange:u,autoFocus:l,focusedView:R,onFocusedViewChange:$}),{referenceDate:oe,calendarState:ae,setVisibleDate:ie,isDateDisabled:se,onMonthSwitchingAnimationEnd:le}=vi({value:Z,referenceDate:p,reduceAnimations:b,onMonthChange:g,minDate:k,maxDate:I,shouldDisableDate:w,disablePast:f,disableFuture:m,timezone:J,getCurrentMonthFromVisibleDate:(e,t)=>r.isSameMonth(e,t)?t:r.startOfMonth(e)}),ue=M&&Z||k,ce=M&&Z||I,de=`${i}-grid-label`,pe=null!==ee,me=j?.calendarHeader??qs,fe=Bn({elementType:me,externalSlotProps:L?.calendarHeader,additionalProps:{views:P,view:X,currentMonth:ae.currentMonth,onViewChange:Q,onMonthChange:e=>ie({target:e,reason:"header-navigation"}),minDate:ue,maxDate:ce,disabled:M,disablePast:f,disableFuture:m,reduceAnimations:b,timezone:J,labelId:de},ownerState:n}),he=Cr(e=>{const t=r.startOfMonth(e),n=r.endOfMonth(e),o=se(e)?Ft({adapter:r,date:e,minDate:r.isBefore(k,t)?t:k,maxDate:r.isAfter(I,n)?n:I,disablePast:f,disableFuture:m,isDateDisabled:se,timezone:J}):e;o?(ne(o,"finish"),ie({target:o,reason:"cell-interaction"})):(re(),ie({target:t,reason:"cell-interaction"}))}),ge=Cr(e=>{const t=r.startOfYear(e),n=r.endOfYear(e),o=se(e)?Ft({adapter:r,date:e,minDate:r.isBefore(k,t)?t:k,maxDate:r.isAfter(I,n)?n:I,disablePast:f,disableFuture:m,isDateDisabled:se,timezone:J}):e;o?(ne(o,"finish"),ie({target:o,reason:"cell-interaction"})):(re(),ie({target:t,reason:"cell-interaction"}))}),ye=Cr(e=>K(e?Nt(r,e,Z??oe):e,"finish",X));a.useEffect(()=>{r.isValid(Z)&&ie({target:Z,reason:"controlled-value-change"})},[Z]);const ve=(e=>to({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},el,e))(D),be={disablePast:f,disableFuture:m,maxDate:I,minDate:k},we={disableHighlightToday:_,readOnly:O,disabled:M,timezone:J,gridLabelId:de,slots:j,slotProps:L},xe=a.useRef(X);a.useEffect(()=>{xe.current!==X&&(ee===xe.current&&te(X,!0),xe.current=X)},[ee,te,X]);const Ae=a.useMemo(()=>[Z],[Z]);return(0,T.jsxs)(rl,(0,o.A)({ref:t,className:(0,v.A)(ve.root,E),ownerState:n},G,{children:[(0,T.jsx)(me,(0,o.A)({},fe,{slots:j,slotProps:L})),(0,T.jsx)(nl,{reduceAnimations:b,className:ve.viewTransitionContainer,transKey:X,ownerState:n,children:(0,T.jsxs)("div",{children:["year"===X&&(0,T.jsx)(Ds,(0,o.A)({},be,we,{value:Z,onChange:ge,shouldDisableYear:A,hasFocus:pe,onFocusedViewChange:e=>te("year",e),yearsOrder:z,yearsPerRow:W,referenceDate:oe})),"month"===X&&(0,T.jsx)(vs,(0,o.A)({},be,we,{currentMonth:ae.currentMonth,hasFocus:pe,className:E,value:Z,onChange:he,shouldDisableMonth:x,onFocusedViewChange:e=>te("month",e),monthsPerRow:H,referenceDate:oe})),"day"===X&&(0,T.jsx)(ls,(0,o.A)({},ae,be,we,{onMonthSwitchingAnimationEnd:le,hasFocus:pe,onFocusedDayChange:e=>ie({target:e,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:Ae,onSelectedDaysChange:ye,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:A,onFocusedViewChange:e=>te("day",e),showDaysOutsideCurrentMonth:V,fixedWeekNumber:N,dayOfWeekFormatter:F,displayWeekNumber:Y,loading:B,renderLoading:U}))]})})]}))});const al=({view:e,onViewChange:t,views:r,focusedView:n,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,maxDate:f,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:y,reduceAnimations:v,onMonthChange:b,monthsPerRow:w,onYearChange:x,yearsOrder:A,yearsPerRow:S,slots:P,slotProps:C,loading:E,renderLoading:D,disableHighlightToday:M,readOnly:O,disabled:k,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:_,sx:R,autoFocus:$,fixedWeekNumber:V,displayWeekNumber:N,timezone:F})=>(0,T.jsx)(ol,{view:e,onViewChange:t,views:r.filter(zt),focusedView:n&&zt(n)?n:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:m,maxDate:f,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:y,reduceAnimations:v,onMonthChange:b,monthsPerRow:w,onYearChange:x,yearsOrder:A,yearsPerRow:S,slots:P,slotProps:C,loading:E,renderLoading:D,disableHighlightToday:M,readOnly:O,disabled:k,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:_,sx:R,autoFocus:$,fixedWeekNumber:V,displayWeekNumber:N,timezone:F});var il=r(87467),sl=r(60538),ll=r(87558),ul=r(73524);function cl(e){return po("MuiPickerPopper",e)}mo("MuiPickerPopper",["root","paper"]);const dl=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],pl=(0,s.Ay)(ll.A,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),ml=(0,s.Ay)(sl.A,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>
2new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});const fl=a.forwardRef((e,t)=>{const{PaperComponent:r,ownerState:n,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=(0,y.A)(e,dl),d=Bn({elementType:r,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:n});return(0,T.jsx)(r,(0,o.A)({},c,d,{onClick:e=>{l(e),d.onClick?.(e)},onTouchStart:e=>{u(e),d.onTouchStart?.(e)},ownerState:n,children:a}))});function hl(e){const t=(0,kt.A)({props:e,name:"MuiPickerPopper"}),{children:r,placement:n="bottom-start",slots:i,slotProps:s,classes:l}=t,{open:u,popupRef:c,reduceAnimations:d}=cn(),{ownerState:p,rootRefObject:m}=Hn(),{dismissViews:f,getCurrentViewMode:h,onPopperExited:g,triggerElement:y,viewContainerRole:v}=Hn();a.useEffect(()=>{function e(e){u&&"Escape"===e.key&&f()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[f,u]);const b=a.useRef(null);a.useEffect(()=>{"tooltip"!==v&&"field"!==h()&&(u?b.current=Mr(m.current):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[u,v,h,m]);const w=(e=>to({root:["root"],paper:["paper"]},cl,e))(l),x=Cr(()=>{"tooltip"===v?setTimeout(()=>{m.current?.contains(Mr(m.current))||c.current?.contains(Mr(c.current))||f()},0):f()}),[A,S,P]=function(e,t){const r=a.useRef(!1),n=a.useRef(!1),o=a.useRef(null),i=a.useRef(!1);a.useEffect(()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}},[e]);const s=Cr(e=>{if(!i.current)return;const a=n.current;n.current=!1;const s=Er(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!s.documentElement.contains(e.target)||o.current.contains(e.target),l||a||t(e)}),l=e=>{e.defaultMuiPrevented||(n.current=!0)};return a.useEffect(()=>{if(e){const e=Er(o.current),t=()=>{r.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}},[e,s]),a.useEffect(()=>{if(e){const e=Er(o.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),n.current=!1}}},[e,s]),[o,l,l]}(u,x),C=Sr(a.useRef(null),c),E=Sr(C,A),D=i?.desktopTransition??d?wi.A:il.A,M=i?.desktopTrapFocus??ul.A,O=i?.desktopPaper??ml,k=i?.popper??pl,I=Bn({elementType:k,externalSlotProps:s?.popper,additionalProps:{transition:!0,role:null==v?void 0:v,open:u,placement:n,anchorEl:y,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),f())}},className:w.root,ownerState:p}),_=a.useMemo(()=>(0,o.A)({},p,{popperPlacement:I.placement}),[p,I.placement]);return(0,T.jsx)(k,(0,o.A)({},I,{children:({TransitionProps:e})=>(0,T.jsx)(M,(0,o.A)({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===v,isEnabled:()=>!0},s?.desktopTrapFocus,{children:(0,T.jsx)(D,(0,o.A)({},e,s?.desktopTransition,{onExited:t=>{g?.(),s?.desktopTransition?.onExited?.(t),e?.onExited?.()},children:(0,T.jsx)(fl,{PaperComponent:O,ownerState:_,ref:E,onPaperClick:S,onPaperTouchStart:P,paperClasses:w.paper,paperSlotProps:s?.desktopPaper,children:r})}))}))}))}function gl(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function yl(e,t){const[r,n]=a.useState(gl);return Pr(()=>{const e=()=>{n(gl())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),o=e,i=["hours","minutes","seconds"],(Array.isArray(i)?i.every(e=>-1!==o.indexOf(e)):-1!==o.indexOf(i))?"portrait":t??r;var o,i}const vl=["className","sx"],bl=({ref:e,props:t,valueManager:r,valueType:n,variant:i,validator:s,onPopperExited:l,autoFocusView:u,rendererInterceptor:c,localeText:d,viewContainerRole:p,getStepNavigation:m})=>{const{views:f,view:h,openTo:g,onViewChange:v,viewRenderers:b,reduceAnimations:w,orientation:x,disableOpenPicker:A,closeOnSelect:S,disabled:P,readOnly:C,formatDensity:E,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:O,format:k,label:I,autoFocus:_,name:R}=t,{className:$,sx:V}=t,N=(0,y.A)(t,vl),F=oo(),j=Hr(),L=Qs(w),B=yl(f,x),{current:U}=a.useRef(g??null),[Y,z]=a.useState(null),W=a.useRef(null),H=a.useRef(null),q=a.useRef(null),G=Sr(e,q),{timezone:Z,state:K,setOpen:J,setValue:X,setValueFromVie
2w:Q,value:ee,viewValue:te}=function(e){const{props:t,valueManager:r,validator:n}=e,{value:i,defaultValue:s,onChange:l,referenceDate:u,timezone:c,onAccept:d,closeOnSelect:p,open:m,onOpen:f,onClose:h}=t,{current:g}=a.useRef(s),{current:y}=a.useRef(void 0!==i),{current:v}=a.useRef(void 0!==m),b=Hr(),{timezone:w,value:x,handleValueChange:A}=sn({name:"a picker component",timezone:c,value:i,defaultValue:g,referenceDate:u,onChange:l,valueManager:r}),[S,P]=a.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:C}=an({props:t,validator:n,timezone:w,value:x,onError:t.onError}),E=Cr(e=>{const t="function"==typeof e?e(S.open):e;v||P(e=>(0,o.A)({},e,{open:t})),t&&f&&f(),t||h?.()}),D=Cr((e,t)=>{const{changeImportance:n="accept",skipPublicationIfPristine:a=!1,validationError:i,shortcut:s,shouldClose:l="accept"===n}=t??{};let u,c;a||y||S.hasBeenModifiedSinceMount?(u=!r.areValuesEqual(b,e,x),c="accept"===n&&!r.areValuesEqual(b,e,S.lastCommittedValue)):(u=!0,c="accept"===n),P(t=>(0,o.A)({},t,{clockShallowValue:u?void 0:t.clockShallowValue,lastCommittedValue:c?e:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let p=null;const m=()=>(p||(p={validationError:null==i?C(e):i},s&&(p.shortcut=s)),p);u&&A(e,m()),c&&d&&d(e,m()),l&&E(!1)});x!==S.lastExternalValue&&P(e=>(0,o.A)({},e,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const M=Cr((e,t="partial")=>{"shallow"!==t?D(e,{changeImportance:"finish"===t&&p?"accept":"set"}):P(t=>(0,o.A)({},t,{clockShallowValue:e,hasBeenModifiedSinceMount:!0}))});a.useEffect(()=>{if(v){if(void 0===m)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(e=>(0,o.A)({},e,{open:m}))}},[v,m]);const O=a.useMemo(()=>r.cleanValue(b,void 0===S.clockShallowValue?x:S.clockShallowValue),[b,r,S.clockShallowValue,x]);return{timezone:w,state:S,setValue:D,setValueFromView:M,setOpen:E,value:x,viewValue:O}}({props:t,valueManager:r,validator:s}),{view:re,setView:ne,defaultView:oe,focusedView:ae,setFocusedView:ie,setValueAndGoToNextView:se,goToNextStep:le,hasNextStep:ue,hasSeveralSteps:ce}=Os({view:h,views:f,openTo:g,onChange:Q,onViewChange:v,autoFocus:u,getStepNavigation:m}),de=Cr(()=>X(r.emptyValue)),pe=Cr(()=>X(r.getTodayValue(j,Z,n))),me=Cr(()=>X(ee)),fe=Cr(()=>X(K.lastCommittedValue,{skipPublicationIfPristine:!0})),he=Cr(()=>{X(ee,{skipPublicationIfPristine:!0})}),{hasUIView:ge,viewModeLookup:ye,timeViewsCount:ve}=a.useMemo(()=>f.reduce((e,t)=>{const r=null==b[t]?"field":"UI";return e.viewModeLookup[t]=r,"UI"===r&&(e.hasUIView=!0,Zt(t)&&(e.timeViewsCount+=1)),e},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[b,f]),be=ye[re],we=Cr(()=>be),[xe,Ae]=a.useState("UI"===be?re:null);xe!==re&&"UI"===ye[re]&&Ae(re),Pr(()=>{"field"===be&&K.open&&(J(!1),setTimeout(()=>{H?.current?.setSelectedSections(re),H?.current?.focusField(re)}))},[re]),Pr(()=>{if(!K.open)return;let e=re;"field"===be&&null!=xe&&(e=xe),e!==oe&&"UI"===ye[e]&&"UI"===ye[oe]&&(e=oe),e!==re&&ne(e),ie(e,!0)},[K.open]);const Se=a.useMemo(()=>({isPickerValueEmpty:r.areValuesEqual(j,ee,r.emptyValue),isPickerOpen:K.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:B,pickerVariant:i}),[j,r,ee,K.open,B,i,t.disabled,t.readOnly]),Pe=a.useMemo(()=>A||!ge?"hidden":P||C?"disabled":"enabled",[A,ge,P,C]),Ce=Cr(le),Ee=a.useMemo(()=>S&&!ce?[]:["cancel","nextOrAccept"],[S,ce]),De=a.useMemo(()=>({setValue:X,setOpen:J,clearValue:de,setValueToToday:pe,acceptValueChanges:me,cancelValueChanges:fe,setView:ne,goToNextStep:Ce}),[X,J,de,pe,me,fe,ne,Ce]),Me=a.useMemo(()=>(0,o.A)({},De,{value:ee,timezone:Z,open:K.open,views:f,view:xe,initialView:U,disabled:P??!1,readOnly:C??!1,autoFocus:_??!1,variant:i,orientation:B,popupRef:W,reduceAnimations:L,triggerRef:z,triggerStatus:Pe,hasNextStep:ue,fieldFormat:k??"",name:R,label:I,rootSx:V,rootRef:G,rootClassName:$}),[De,ee,G,i,B,L,P,C,k,$,R,I,V,Pe,ue,Z,K.open,xe,f,U,_]),Oe=a.useMemo(()=>({dismissViews:he,ownerState:Se,hasUIView:ge,getCurrentViewMode:we,rootRefObject:q,labelId:F,triggerElement:Y,viewContainerRole:p,defaultActionBarActions:Ee,onPopperExited:l}),[he,Se,ge,we,F,Y,p,Ee,l]),Te=a.useMemo(()=>({formatDensity:E,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:O,fieldRef:H}),[E,D,M,O,H]);
2return{providerProps:{localeText:d,contextValue:Me,privateContextValue:Oe,actionsContextValue:De,fieldPrivateContextValue:Te,isValidContextValue:e=>{const n=s({adapter:j,value:e,timezone:Z,props:t});return!r.hasError(n)}},renderCurrentView:()=>{if(null==xe)return null;const e=b[xe];if(null==e)return null;const t=(0,o.A)({},N,{views:f,timezone:Z,value:te,onChange:se,view:xe,onViewChange:ne,showViewSwitcher:ve>1,timeViewsCount:ve},"tooltip"===p?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ae,onFocusedViewChange:ie});return c?(0,T.jsx)(c,{viewRenderers:b,popperView:xe,rendererProps:t}):e(t)},ownerState:Se}};function wl(e){return po("MuiPickersLayout",e)}const xl=mo("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);var Al=r(58763);const Sl=["actions"],Pl=(0,s.Ay)(Al.A,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Cl(e){const{actions:t}=e,r=(0,y.A)(e,Sl),n=tn(),{clearValue:a,setValueToToday:i,acceptValueChanges:s,cancelValueChanges:l,goToNextStep:u,hasNextStep:c}=cn();if(null==t||0===t.length)return null;const d=t?.map(e=>{switch(e){case"clear":return(0,T.jsx)(Za.A,{onClick:a,children:n.clearButtonLabel},e);case"cancel":return(0,T.jsx)(Za.A,{onClick:l,children:n.cancelButtonLabel},e);case"accept":return(0,T.jsx)(Za.A,{onClick:s,children:n.okButtonLabel},e);case"today":return(0,T.jsx)(Za.A,{onClick:i,children:n.todayButtonLabel},e);case"next":return(0,T.jsx)(Za.A,{onClick:u,children:n.nextStepButtonLabel},e);case"nextOrAccept":return c?(0,T.jsx)(Za.A,{onClick:u,children:n.nextStepButtonLabel},e):(0,T.jsx)(Za.A,{onClick:s,children:n.okButtonLabel},e);default:return null}});return(0,T.jsx)(Pl,(0,o.A)({},r,{children:d}))}const El=a.memo(Cl);var Dl=r(49799),Ml=r(12794),Ol=r(82022);const Tl=["items","changeImportance"],kl=["getValue"],Il=(0,s.Ay)(Dl.A,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function _l(e){const{items:t,changeImportance:r="accept"}=e,n=(0,y.A)(e,Tl),{setValue:i}=(()=>{const e=a.useContext(Yn);if(null==e)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join("\n"));return e})(),s=a.useContext(Un);if(null==t||0===t.length)return null;const l=t.map(e=>{let{getValue:t}=e,n=(0,y.A)(e,kl);const a=t({isValid:s});return(0,o.A)({},n,{label:n.label,onClick:()=>{i(a,{changeImportance:r,shortcut:n})},disabled:!s(a)})});return(0,T.jsx)(Il,(0,o.A)({dense:!0,sx:[{maxHeight:ni,maxWidth:200,overflow:"auto"},...Array.isArray(n.sx)?n.sx:[n.sx]]},n,{children:l.map(e=>(0,T.jsx)(Ml.Ay,{children:(0,T.jsx)(Ol.A,(0,o.A)({},e))},e.id??e.label))}))}const Rl=["ownerState"];var $l=e=>{const{ownerState:t,defaultActionBarActions:r}=Hn(),{view:n}=cn(),i=(0,en.I)(),{children:s,slots:l,slotProps:u,classes:c}=e,d=a.useMemo(()=>(0,o.A)({},t,{layoutDirection:i?"rtl":"ltr",hasShortcuts:!1}),[t,i]),p=((e,t)=>{const{pickerOrientation:r}=t;return to({root:["root","landscape"===r&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},wl,e)})(c,d),m=l?.actionBar??El,f=Bn({elementType:m,externalSlotProps:u?.actionBar,additionalProps:{actions:r},className:p.actionBar,ownerState:d}),h=(0,y.A)(f,Rl),g=(0,T.jsx)(m,(0,o.A)({},h)),v=l?.toolbar,b=Bn({elementType:v,externalSlotProps:u?.toolbar,className:p.toolbar,ownerState:d}),w=function(e){return null!==e.view}(b)&&v?(0,T.jsx)(v,(0,o.A)({},b)):null,x=s,A=l?.tabs,S=n&&A?(0,T.jsx)(A,(0,o.A)({className:p.tabs},u?.tabs)):null,P=l?.shortcuts??_l,C=Bn({elementType:P,externalSlotProps:u?.shortcuts,className:p.shortcuts,ownerState:d}),E=Array.isArray(C?.items)&&C.items.length>0;return{toolbar:w,content:x,tabs:S,actionBar:g,shortcuts:n&&P?(0,T.jsx)(P,(0,o.A)({},C)):null,ownerState:(0,o.A)({},d,{hasShortcuts:E})}};const Vl=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${xl.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${xl.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${xl.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${xl.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${xl.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${xl.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}}
2,{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${xl.shortcuts}`]:{gridColumn:4}}}]}),Nl=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Fl=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:o,tabs:i,actionBar:s,shortcuts:l,ownerState:u}=$l(r),{orientation:c,variant:d}=cn(),{sx:p,className:m,classes:f}=r,h=((e,t)=>{const{pickerOrientation:r}=t;return to({root:["root","landscape"===r&&"landscape"],contentWrapper:["contentWrapper"]},wl,e)})(f,u);return(0,T.jsxs)(Vl,{ref:t,sx:p,className:(0,v.A)(h.root,m),ownerState:u,children:["landscape"===c?l:n,"landscape"===c?n:l,(0,T.jsx)(Nl,{className:h.contentWrapper,ownerState:u,children:"desktop"===d?(0,T.jsxs)(a.Fragment,{children:[o,i]}):(0,T.jsxs)(a.Fragment,{children:[i,o]})}),s]})});function jl(e){const{steps:t}=e;return function(e){const{steps:t,isViewMatchingStep:r,onStepChange:n}=e;return e=>{if(null==t)return Ms;const a=t.findIndex(t=>r(e.view,t)),i=-1===a||a===t.length-1?null:t[a+1];return{hasNextStep:null!=i,hasSeveralSteps:t.length>1,goToNextStep:()=>{null!=i&&n((0,o.A)({},e,{step:i}))},areViewsInSameStep:(e,n)=>{const o=t.find(t=>r(e,t)),a=t.find(e=>r(n,e));return o===a}}}}({steps:t,isViewMatchingStep:(e,t)=>null==t.views||t.views.includes(e),onStepChange:({step:e,defaultView:t,setView:r,view:n,views:o})=>{const a=null==e.views?t:e.views.find(e=>o.includes(e));a!==n&&r(a)}})}const Ll=["props","steps"],Bl=["ownerState"];var Ul=r(73896),Yl=r(88116);function zl(e){return po("MuiDigitalClock",e)}const Wl=mo("MuiDigitalClock",["root","list","item"]),Hl=({value:e,referenceDate:t,adapter:r,props:n,timezone:o})=>{const i=a.useMemo(()=>xr.getInitialReferenceValue({value:e,adapter:r,props:n,referenceDate:t,granularity:tr.day,timezone:o,getTodayDate:()=>Bt(r,o,"date")}),[t,o]);return e??i},ql=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],Gl=(0,s.Ay)(Gs,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:232,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),Zl=(0,s.Ay)(Yl.A,{name:"MuiDigitalClock",slot:"List"})({padding:0}),Kl=(0,s.Ay)(Ul.A,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>"itemValue"!==e&&"formattedValue"!==e})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}})),Jl=a.forwardRef(function(e,t){const r=Hr(),n=a.useRef(null),i=Sr(t,n),s=a.useRef(null),l=(0,kt.A)({props:e,name:"MuiDigitalClock"}),{ampm:u=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:d,slots:p,slotProps:m,value:f,defaultValue:h,referenceDate:g,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:w,minTime:x,disableFuture:A,disablePast:S,minutesStep:P=1,shouldDisableTime:C,onChange:E,view:D,openTo:M,onViewChange:O,focusedView:k,onFocusedViewChange:I,className:_,classes:R,disabled:$,readOnly:V,views:N=["hours"],skipDisabled:F=!1,timezone:j}=l,L=(0,y.A)(l,ql),{value:B,handleValueChange:U,timezone:Y}=sn({name:"DigitalClock",timezone:j,value:f,defaultValue:h,referenceDate:g,onChange:E,valueManager:xr}),z=tn(),W=On(Y),{ownerState:H}=Hn(),q=(0,o.A)({},H,{hasDigitalClockAlreadyBeenRendered:!!n.current}),G=(e=>to({root:["root"],list:["list"],item:["item"]},zl,e))(R),Z=p?.digitalClockItem??Kl,K=Bn({elementType:Z,externalSlotProps:m?.digitalClockItem,ownerState:q,className:G.item}
2),J=Hl({value:B,referenceDate:g,adapter:r,props:l,timezone:Y}),X=Cr(e=>U(e,"finish","hours")),{setValueAndGoToNextView:Q}=Os({view:D,views:N,openTo:M,onViewChange:O,onChange:X,focusedView:k,onFocusedViewChange:I}),ee=Cr(e=>{Q(e,"finish")});Pr(()=>{if(null===n.current)return;const e=n.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;(d||k)&&e.focus(),n.current.scrollTop=t-4});const te=a.useCallback(e=>{const t=Qt(b,r);return!!(x&&t(x,e)||w&&t(e,w)||A&&t(e,W)||S&&t(W,e))||!!(r.getMinutes(e)%P!==0||C&&C(e,"hours"))},[b,r,x,w,A,W,S,P,C]),re=a.useMemo(()=>{const e=[];let t=r.startOfDay(J);for(;r.isSameDay(J,t);)e.push(t),t=r.addMinutes(t,c);return e},[J,c,r]),ne=re.findIndex(e=>r.isEqual(e,J));return(0,T.jsx)(Gl,(0,o.A)({ref:i,className:(0,v.A)(G.root,_),ownerState:q},L,{children:(0,T.jsx)(Zl,{ref:s,role:"listbox","aria-label":z.timePickerToolbarTitle,className:G.list,onKeyDown:e=>{switch(e.key){case"PageUp":{const t=Or(s.current)-5,r=s.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case"PageDown":{const t=Or(s.current)+5,r=s.current.children,n=r[Math.min(r.length-1,t)];n&&n.focus(),e.preventDefault();break}}},children:re.map((e,t)=>{const n=te(e);if(F&&n)return null;const a=r.isEqual(e,B),i=r.format(e,u?"fullTime12h":"fullTime24h"),s=ne===t||-1===ne&&0===t?0:-1;return(0,T.jsx)(Z,(0,o.A)({onClick:()=>!V&&ee(e),selected:a,disabled:$||n,disableRipple:V,role:"option","aria-disabled":V,"aria-selected":a,tabIndex:s,itemValue:e,formattedValue:i},K,{children:i}),`${e.valueOf()}-${i}`)})})}))});function Xl(e){return po("MuiMultiSectionDigitalClock",e)}const Ql=mo("MuiMultiSectionDigitalClock",["root"]);function eu(e){return po("MuiMultiSectionDigitalClockSection",e)}const tu=mo("MuiMultiSectionDigitalClockSection",["root","item"]),ru=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],nu=(0,s.Ay)(Yl.A,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),ou=(0,s.Ay)(Ul.A,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Ei.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}})),au=a.forwardRef(function(e,t){const r=a.useRef(null),n=Sr(t,r),i=a.useRef(null),s=(0,kt.A)({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,classes:d,disabled:p,readOnly:m,items:f,active:h,slots:g,slotProps:b,skipDisabled:w}=s,x=(0,y.A)(s,ru),{ownerState:A}=Hn(),S=(0,o.A)({},A,{hasDigitalClockAlreadyBeenRendered:!!r.current}),P=(e=>to({root:["root"],item:["item"]},eu,e))(d),C=g?.digitalClockSectionItem??ou;Pr(()=>{if(null===r.current)return;const e=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&l&&e&&e.focus(),!e||i.current===e)return;i.current=e;const t=e.offsetTop,n=e.offsetHeight,o=r.current.clientHeight,a=t-o/2+n/2,s=r.current.scrollHeight-o,u=Math.min(a,s);r.current.scrollTop=Math.max(0,u)});const E=f.findIndex(e=>e.isFocused(e.value));return(0,T.jsx)(nu,(0,o.A)({ref:n,className:(0,v.A)(P.root,c),ownerState:S,autoFocusItem:l&&h,role:"listbox",onKeyDown:e=>{switch(e.key){case"PageUp":{const t=Or(r.current)-5,n=r.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case"PageDown":{const t=Or(r.current)+5,n=r.current.children,o=n[Math.min(n.length-1,t)];o&&o.focus(),e.preventDefault();break}}}},x,{children:f.map((e,t)=>{const r=e.isDisabled?.(e.value),n=p||r;if(w&&n)return null;const a=e.isSelected(e.value),i=E===t||-1===E&&0===t?0:-1;return(0,T.jsx)(C,(0,o.A)({onClick:()=>!m&&u(e.value),selected:a,disabled:n,disableRipple:m,role:"option","aria-disabled":m||n||void 0,"aria-label":e.ariaLabel,"aria-selected":a,tabIndex:i,className:P.item},b?.digitalClockSectionItem,{children:e.label}),e.label)})}))});
2const iu=({now:e,value:t,adapter:r,ampm:n,isDisabled:o,resolveAriaLabel:a,timeStep:i,valueOrReferenceDate:s})=>{const l=t?r.getHours(t):null,u=[],c=(e,t)=>{const r=t??l;return null!==r&&(n?12===e?12===r||0===r:r===e||r-12===e:r===e)},d=e=>c(e,r.getHours(s)),p=n?11:23;for(let m=0;m<=p;m+=i){let t=r.format(r.setHours(e,m),n?"hours12h":"hours24h");const i=a(parseInt(t,10).toString());t=r.formatNumber(t),u.push({value:m,label:t,isSelected:c,isDisabled:o,isFocused:d,ariaLabel:i})}return u},su=({value:e,adapter:t,isDisabled:r,timeStep:n,resolveLabel:o,resolveAriaLabel:a,hasValue:i=!0})=>{const s=t=>null!==e&&(i&&e===t),l=t=>e===t;return[...Array.from({length:Math.ceil(60/n)},(e,i)=>{const u=n*i;return{value:u,label:t.formatNumber(o(u)),isDisabled:r,isSelected:s,isFocused:l,ariaLabel:a(u.toString())}})]},lu=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],uu=(0,s.Ay)(Gs,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),cu=a.forwardRef(function(e,t){const r=Hr(),n=(0,en.I)(),i=(0,kt.A)({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:u,slots:c,slotProps:d,value:p,defaultValue:m,referenceDate:f,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:g,minTime:b,disableFuture:w,disablePast:x,minutesStep:A=1,shouldDisableTime:S,onChange:P,view:C,views:E=["hours","minutes"],openTo:D,onViewChange:M,focusedView:O,onFocusedViewChange:k,className:I,classes:_,disabled:R,readOnly:$,skipDisabled:V=!1,timezone:N}=i,F=(0,y.A)(i,lu),{value:j,handleValueChange:L,timezone:B}=sn({name:"MultiSectionDigitalClock",timezone:N,value:p,defaultValue:m,referenceDate:f,onChange:P,valueManager:xr}),U=tn(),Y=On(B),z=a.useMemo(()=>(0,o.A)({hours:1,minutes:5,seconds:5},l),[l]),W=Hl({value:j,referenceDate:f,adapter:r,props:i,timezone:B}),H=Cr((e,t,r)=>L(e,t,r)),q=a.useMemo(()=>s&&E.includes("hours")?E.includes("meridiem")?E:[...E,"meridiem"]:E,[s,E]),{view:G,setValueAndGoToNextView:Z,focusedView:K}=Os({view:C,views:q,openTo:D,onViewChange:M,onChange:H,focusedView:O,onFocusedViewChange:k}),J=Cr(e=>{Z(e,"finish","meridiem")}),{meridiemMode:X,handleMeridiemChange:Q}=ti(W,s,J,"finish"),ee=a.useCallback((e,t)=>{const n=Qt(h,r),o="hours"===t||"minutes"===t&&q.includes("seconds"),a=({start:e,end:t})=>(!b||!n(b,t))&&((!g||!n(e,g))&&((!w||!n(e,Y))&&(!x||!n(Y,o?t:e)))),i=(e,n=1)=>{if(e%n!==0)return!1;if(S)switch(t){case"hours":return!S(r.setHours(W,e),"hours");case"minutes":return!S(r.setMinutes(W,e),"minutes");case"seconds":return!S(r.setSeconds(W,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=Jt(e,X,s),n=r.setHours(W,t);if(r.getHours(n)!==t)return!0;return!a({start:r.setSeconds(r.setMinutes(n,0),0),end:r.setSeconds(r.setMinutes(n,59),59)})||!i(t)}case"minutes":{const t=r.setMinutes(W,e);return!a({start:r.setSeconds(t,0),end:r.setSeconds(t,59)})||!i(e,A)}case"seconds":{const t=r.setSeconds(W,e);return!a({start:t,end:t})||!i(e)}default:throw new Error("not supported")}},[s,W,h,g,X,b,A,S,r,w,x,Y,q]),te=a.useCallback(e=>{switch(e){case"hours":return{onChange:e=>{const t=Jt(e,X,s);Z(r.setHours(W,t),"finish","hours")},items:iu({now:Y,value:j,ampm:s,adapter:r,isDisabled:e=>ee(e,"hours"),timeStep:z.hours,resolveAriaLabel:U.hoursClockNumberText,valueOrReferenceDate:W})};case"minutes":return{onChange:e=>{Z(r.setMinutes(W,e),"finish","minutes")},items:su({value:r.getMinutes(W),adapter:r,isDisabled:e=>ee(e,"minutes"),resolveLabel:e=>r.format(r.setMinutes(Y,e),"minutes"),timeStep:z.minutes,hasValue:!!j,resolveAriaLabel:U.minutesClockNumberText})};case"seconds":return{onChange:e=>{Z(r.setSeconds(W,e),"finish","seconds")},items:su({value:r.getSeconds(W),adapter:r,isDisabled:e=>ee(e,"seconds"),resolveLabel:e=>r.format(r.setSeconds(Y,e),"seconds"),timeStep:z.seconds,hasValue:!!j,resolveAriaLabel:U.secondsClockNumberText})};case"meridiem":{const e=Ut(r,"am"),t=Ut(r,"pm");return{onChange:Q,items:[{value:"am",label:e,isSelected:()=>!!j&&"am"===X,isFocused:()=>!!W&&"am"===X,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!j&&"pm"===X,isFocused:()=>!!W&&"pm"===X,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e}
2 found.`)}},[Y,j,s,r,z.hours,z.minutes,z.seconds,U.hoursClockNumberText,U.minutesClockNumberText,U.secondsClockNumberText,X,Z,W,ee,Q]),re=a.useMemo(()=>{if(!n)return q;const e=q.filter(e=>"meridiem"!==e);return e.reverse(),q.includes("meridiem")&&e.push("meridiem"),e},[n,q]),ne=a.useMemo(()=>q.reduce((e,t)=>(0,o.A)({},e,{[t]:te(t)}),{}),[q,te]),{ownerState:oe}=Hn(),ae=(e=>to({root:["root"]},Xl,e))(_);return(0,T.jsx)(uu,(0,o.A)({ref:t,className:(0,v.A)(ae.root,I),ownerState:oe,role:"group"},F,{children:re.map(e=>(0,T.jsx)(au,{items:ne[e].items,onChange:ne[e].onChange,active:G===e,autoFocus:u||K===e,disabled:R,readOnly:$,slots:c,slotProps:d,skipDisabled:V,"aria-label":U.selectViewText(e)},e))}))});const du=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:f,shouldDisableTime:h,minutesStep:g,ampm:y,slots:v,slotProps:b,readOnly:w,disabled:x,sx:A,autoFocus:S,disableIgnoringDatePartForTimeValidation:P,timeSteps:C,skipDisabled:E,timezone:D})=>(0,T.jsx)(Jl,{view:e,onViewChange:t,focusedView:r&&Zt(r)?r:null,onFocusedViewChange:n,views:o.filter(Zt),value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:f,shouldDisableTime:h,minutesStep:g,ampm:y,slots:v,slotProps:b,readOnly:w,disabled:x,sx:A,autoFocus:S,disableIgnoringDatePartForTimeValidation:P,timeStep:C?.minutes,skipDisabled:E,timezone:D});const pu=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:n,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:f,shouldDisableTime:h,minutesStep:g,ampm:y,slots:v,slotProps:b,readOnly:w,disabled:x,sx:A,autoFocus:S,disableIgnoringDatePartForTimeValidation:P,timeSteps:C,skipDisabled:E,timezone:D})=>(0,T.jsx)(cu,{view:e,onViewChange:t,focusedView:r&&Kt(r)?r:null,onFocusedViewChange:n,views:o.filter(Zt),value:a,defaultValue:i,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:f,shouldDisableTime:h,minutesStep:g,ampm:y,slots:v,slotProps:b,readOnly:w,disabled:x,sx:A,autoFocus:S,disableIgnoringDatePartForTimeValidation:P,timeSteps:C,skipDisabled:E,timezone:D});const mu=a.forwardRef(function(e,t){const{toolbar:r,tabs:n,content:o,actionBar:a,shortcuts:i,ownerState:s}=$l(e),{orientation:l}=cn(),{sx:u,className:c,classes:d}=e,p=a&&(a.props.actions?.length??0)>0;return(0,T.jsxs)(Vl,{ref:t,className:(0,v.A)(xl.root,d?.root,c),sx:[{[`& .${xl.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${xl.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:s,children:["landscape"===l?i:r,"landscape"===l?r:i,(0,T.jsxs)(Nl,{className:(0,v.A)(xl.contentWrapper,d?.contentWrapper),ownerState:s,sx:{display:"grid"},children:[o,n,p&&(0,T.jsx)($t.A,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})});const fu=["openTo","focusedView","timeViewsCount"],hu=function(e){const{viewRenderers:t,popperView:r,rendererProps:n}=e,{openTo:i,focusedView:s,timeViewsCount:l}=n,u=(0,y.A)(n,fu),c=(0,o.A)({},u,{autoFocus:!1,focusedView:null,sx:[{[`&.${Ql.root}`]:{borderBottom:0},[`&.${Ql.root}, .${tu.root}, &.${Wl.root}`]:{maxHeight:ni}}]}),d=Kt(r),p=d?"day":r,m=d?r:"hours";return(0,T.jsxs)(a.Fragment,{children:[t[p]?.((0,o.A)({},n,{view:d?"day":r,focusedView:s&&zt(s)?s:null,views:n.views.filter(zt),sx:[{gridColumn:1},...c.sx]})),l>0&&(0,T.jsxs)(a.Fragment,{children:[(0,T.jsx)($t.A,{orientation:"vertical",sx:{gridColumn:2}}),t[m]?.((0,o.A)({},c,{view:d?r:"hours",focusedView:s&&Kt(s)?s:null,openTo:Kt(i)?i:"hours",views:n.views.filter(Kt),sx:[{gridColumn:3},...c.sx]}))]})]})};const gu=a.forwardRef(function(e,t){const r=Hr(),n=gi(e,"MuiDesktopDateTimePicker"),a=n.shouldRenderTimeInASingleColumn?du:pu,i=(0,o.A)({day:al,month:al,year:al,hours:a,minutes:a,seconds:a,meridiem:a},n.viewRenderers),s=n.ampmInClock??!0,l=i.hours?.name===pu.name?n.views:n.views.filter(e=>"meridiem"!==e),u=(0,o.A)({},n,{viewRenderers:i,format:fi(r,(0,o.A)({},n,{views:n.viewsForFormatting})),views:l,yearsPerRow:n.yearsPerRow??4,ampmInClock:s,slots:(0,o.A)({field:Oa,layout:mu},n.slots),slotProps:(0,o.A)({},n.slotProps,{field:e=>(0,o.A)({},_t(n.slotProps?.field,e),Vr(n)),toolbar:(0,o.A)({hidden:!0,ampmInClock:s},n.slotProps?.toolbar),tabs:(0,o.A)({hidden:!0},n.slotProps?.tabs)})}),{renderPicker:c}=(e=>{let{props:t,steps:r}=e,n=(0,y.A)(e,Ll);const{slots:a,slotProps:i,label:s,inputRef:l,localeText:u}=t,c=jl({steps:r}),{providerProps:d,renderCurrentView:p,ownerState:m}=bl((0,o.A)({},n,{props:t,localeText:u,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),f=d.privateContextValue.labelId,h=i?.toolbar?.hidden??!1,g=a.field,v=Bn({elementType:g,externalSlotProps:i?.field,additionalProps:(0,o.A)({},h&&{id:f}),ownerState:m}),b=(0,y.A)(v,Bl),w=a.layout??Fl;let x=f;h&&(x=s?`${f}-label`:void 0);const A=(0,o.A)({},i,{toolbar:(0,o.A)({},i?.toolbar,{titleId:f}),popper:(0,o.A)({"aria-labelledby":x},i?.popper)});return{renderPicker:()=>(0,T.jsxs)(Wn,(0,o.A)({},d,{children:[(0,T.jsx)(g,(0,o.A)({},b,{slots:a,slotProps:A,inputRef:l})),(0,T.jsx)(hl,{slots:a,slotProps:A,children:(0,T.jsx)(w,(0,o.A)({},A?.layout,{slots:a,slotProps:A,children:p()}))})]}))}})({ref:t,props:u,valueManager:xr,valueType:"date-time",validator:Dn,rendererInterceptor:hu,steps:null});return c()});gu.propTypes={ampm:It.bool,ampmInClock:It.bool,autoFocus:It.bool,className:It.string,closeOnSelect:It.bool,dayOfWeekFormatter:It.func,defaultValue:It.object,disabled:It.bool,disableFuture:It.bool,disableHighlightToday:It.bool,disableIgnoringDatePartForTimeValidation:It.bool,disableOpenPicker:It.bool,disablePast:It.bool,displayWeekNumber:It.bool,enableAccessibleFieldDOMStructure:It.any,fixedWeekNumber:It.number,format:It.string,formatDensity:It.oneOf(["dense","spacious"]),inputRef:Rt,label:It.no
2de,loading:It.bool,localeText:It.object,maxDate:It.object,maxDateTime:It.object,maxTime:It.object,minDate:It.object,minDateTime:It.object,minTime:It.object,minutesStep:It.number,monthsPerRow:It.oneOf([3,4]),name:It.string,onAccept:It.func,onChange:It.func,onClose:It.func,onError:It.func,onMonthChange:It.func,onOpen:It.func,onSelectedSectionsChange:It.func,onViewChange:It.func,onYearChange:It.func,open:It.bool,openTo:It.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:It.oneOf(["landscape","portrait"]),readOnly:It.bool,reduceAnimations:It.bool,referenceDate:It.object,renderLoading:It.func,selectedSections:It.oneOfType([It.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),It.number]),shouldDisableDate:It.func,shouldDisableMonth:It.func,shouldDisableTime:It.func,shouldDisableYear:It.func,showDaysOutsideCurrentMonth:It.bool,skipDisabled:It.bool,slotProps:It.object,slots:It.object,sx:It.oneOfType([It.arrayOf(It.oneOfType([It.func,It.object,It.bool])),It.func,It.object]),thresholdToRenderTimeInASingleColumn:It.number,timeSteps:It.shape({hours:It.number,minutes:It.number,seconds:It.number}),timezone:It.string,value:It.object,view:It.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:It.shape({day:It.func,hours:It.func,meridiem:It.func,minutes:It.func,month:It.func,seconds:It.func,year:It.func}),views:It.arrayOf(It.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:It.oneOf(["asc","desc"]),yearsPerRow:It.oneOf([3,4])};var yu=r(22477),vu=r(77037),bu=r(68997);const wu=(0,s.Ay)(vu.A)({[`& .${bu.A.container}`]:{outline:0},[`& .${bu.A.paper}`]:{outline:0,minWidth:ri}}),xu=(0,s.Ay)(yu.A)({"&:first-of-type":{padding:0}});function Au(e){const{children:t,slots:r,slotProps:n}=e,{open:a}=cn(),{dismissViews:i,onPopperExited:s}=Hn(),l=r?.dialog??wu,u=r?.mobileTransition??wi.A;return(0,T.jsx)(l,(0,o.A)({open:a,onClose:()=>{i(),s?.()}},n?.dialog,{TransitionComponent:u,TransitionProps:n?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:n?.mobilePaper,children:(0,T.jsx)(xu,{children:t})}))}const Su=["props","steps"],Pu=["ownerState"],Cu=[{views:Yt},{views:qt}],Eu=a.forwardRef(function(e,t){const r=Hr(),n=gi(e,"MuiMobileDateTimePicker"),a=n.shouldRenderTimeInASingleColumn?du:pu,i=(0,o.A)({day:al,month:al,year:al,hours:a,minutes:a,seconds:a,meridiem:a},n.viewRenderers),s=n.ampmInClock??!1,l=i.hours?.name===pu.name?n.views:n.views.filter(e=>"meridiem"!==e),u=(0,o.A)({},n,{viewRenderers:i,format:fi(r,(0,o.A)({},n,{views:n.viewsForFormatting})),views:l,ampmInClock:s,slots:(0,o.A)({field:Oa},n.slots),slotProps:(0,o.A)({},n.slotProps,{field:e=>(0,o.A)({},_t(n.slotProps?.field,e),Vr(n)),toolbar:(0,o.A)({hidden:!1,ampmInClock:s},n.slotProps?.toolbar),tabs:(0,o.A)({hidden:!1},n.slotProps?.tabs),layout:(0,o.A)({},n.slotProps?.layout,{sx:kr([{[`& .${Ql.root}`]:{width:ri},[`& .${tu.root}`]:{flex:1,maxHeight:335,[`.${tu.item}`]:{width:"auto"}},[`& .${Wl.root}`]:{width:ri,maxHeight:ni,flex:1,[`.${Wl.item}`]:{justifyContent:"center"}}}],n.slotProps?.layout?.sx)})})}),{renderPicker:c}=(e=>{let{props:t,steps:r}=e,n=(0,y.A)(e,Su);const{slots:a,slotProps:i,label:s,inputRef:l,localeText:u}=t,c=jl({steps:r}),{providerProps:d,renderCurrentView:p,ownerState:m}=bl((0,o.A)({},n,{props:t,localeText:u,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),f=d.privateContextValue.labelId,h=i?.toolbar?.hidden??!1,g=a.field,v=Bn({elementType:g,externalSlotProps:i?.field,additionalProps:(0,o.A)({},h&&{id:f}),ownerState:m}),b=(0,y.A)(v,Pu),w=a.layout??Fl;let x=f;h&&(x=s?`${f}-label`:void 0);const A=(0,o.A)({},i,{toolbar:(0,o.A)({},i?.toolbar,{titleId:f}),mobilePaper:(0,o.A)({"aria-labelledby":x},i?.mobilePaper)});return{renderPicker:()=>(0,T.jsxs)(Wn,(0,o.A)({},d,{children:[(0,T.jsx)(g,(0,o.A)({},b,{slots:a,slotProps:A,inputRef:l})),(0,T.jsx)(Au,{slots:a,slotProps:A,children:(0,T.jsx)(w,(0,o.A)({},A?.layout,{slots:a,slotProps:A,children:p()}))})]}))}})({ref:t,props:u,valueManager:xr,valueType:"date-time",validator:Dn,steps:Cu});return c()});
2Eu.propTypes={ampm:It.bool,ampmInClock:It.bool,autoFocus:It.bool,className:It.string,closeOnSelect:It.bool,dayOfWeekFormatter:It.func,defaultValue:It.object,disabled:It.bool,disableFuture:It.bool,disableHighlightToday:It.bool,disableIgnoringDatePartForTimeValidation:It.bool,disableOpenPicker:It.bool,disablePast:It.bool,displayWeekNumber:It.bool,enableAccessibleFieldDOMStructure:It.any,fixedWeekNumber:It.number,format:It.string,formatDensity:It.oneOf(["dense","spacious"]),inputRef:Rt,label:It.node,loading:It.bool,localeText:It.object,maxDate:It.object,maxDateTime:It.object,maxTime:It.object,minDate:It.object,minDateTime:It.object,minTime:It.object,minutesStep:It.number,monthsPerRow:It.oneOf([3,4]),name:It.string,onAccept:It.func,onChange:It.func,onClose:It.func,onError:It.func,onMonthChange:It.func,onOpen:It.func,onSelectedSectionsChange:It.func,onViewChange:It.func,onYearChange:It.func,open:It.bool,openTo:It.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:It.oneOf(["landscape","portrait"]),readOnly:It.bool,reduceAnimations:It.bool,referenceDate:It.object,renderLoading:It.func,selectedSections:It.oneOfType([It.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),It.number]),shouldDisableDate:It.func,shouldDisableMonth:It.func,shouldDisableTime:It.func,shouldDisableYear:It.func,showDaysOutsideCurrentMonth:It.bool,skipDisabled:It.bool,slotProps:It.object,slots:It.object,sx:It.oneOfType([It.arrayOf(It.oneOfType([It.func,It.object,It.bool])),It.func,It.object]),thresholdToRenderTimeInASingleColumn:It.number,timeSteps:It.shape({hours:It.number,minutes:It.number,seconds:It.number}),timezone:It.string,value:It.object,view:It.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:It.shape({day:It.func,hours:It.func,meridiem:It.func,minutes:It.func,month:It.func,seconds:It.func,year:It.func}),views:It.arrayOf(It.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:It.oneOf(["asc","desc"]),yearsPerRow:It.oneOf([3,4])};const Du=["desktopModeMediaQuery"],Mu=a.forwardRef(function(e,t){const r=(0,kt.A)({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:n=Tr}=r,a=(0,y.A)(r,Du);return Tt(n,{defaultMatches:!0})?(0,T.jsx)(gu,(0,o.A)({ref:t},a)):(0,T.jsx)(Eu,(0,o.A)({ref:t},a))});var Ou=r(74353),Tu=r.n(Ou),ku=r(8134),Iu=r(90445),_u=r(15750),Ru=r(37872),$u=r(97375);Ou.extend(_u),Ou.extend(ku),Ou.extend(Ru),Ou.extend($u);const Vu={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Nu={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Fu=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),ju=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class Lu{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=(()=>Vu)();constructor({locale:e,formats:t}={}){this.locale=e,this.formats=(0,o.A)({},Nu,t),Ou.extend(Iu)}setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>void 0!==Ou.utc;hasTimezonePlugin=()=>void 0!==Ou.tz;isSame=(e,t,r)=>{const n=this.setTimezone(t,this.getTimezone(e));return e.format(r)===n.format(r)};
2cleanTimezone=e=>{switch(e){case"default":return;case"system":return Ou.tz.guess();default:return e}};createSystemDate=e=>{let t;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=Ou.tz.guess();t="UTC"===r?Ou(e):Ou.tz(e,r)}else t=Ou(e);return this.setLocaleToValue(t)};createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(Fu);return this.setLocaleToValue(Ou.utc(e))};createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(Fu);if(!this.hasTimezonePlugin())throw new Error(ju);const r=void 0!==e&&!e.endsWith("Z");return this.setLocaleToValue(Ou(e).tz(this.cleanTimezone(t),r))};getLocaleFormats=()=>{const e=Ou.Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats};adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const r=e.tz(this.cleanTimezone(t),!0);if(r.$offset===(e.$offset??0))return e;e.$offset=r.$offset}return e};date=(e,t="default")=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t);getInvalidDate=()=>Ou(new Date("Invalid date"));getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"};setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(Fu);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(ju)}return this.setLocaleToValue(Ou.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>""===e?null:Ou(e,t,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,n)=>{const o=n&&n.toUpperCase();return r||t[n]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,r)=>t||r.slice(1))})};isValid=e=>null!=e&&e.isValid();format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>this.setLocaleToValue(e).format(t);formatNumber=e=>e;isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime();isSameYear=(e,t)=>this.isSame(e,t,"YYYY");isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM");isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD");isSameHour=(e,t)=>e.isSame(t,"hour");isAfter=(e,t)=>e>t;isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year");isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day");isBefore=(e,t)=>e<t;isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year");isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day");isWithinRange=(e,[t,r])=>e>=t&&e<=r;startOfYear=e=>this.adjustOffset(e.startOf("year"));startOfMonth=e=>this.adjustOffset(e.startOf("month"));startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week"));startOfDay=e=>this.adjustOffset(e.startOf("day"));endOfYear=e=>this.adjustOffset(e.endOf("year"));endOfMonth=e=>this.adjustOffset(e.endOf("month"));endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week"));endOfDay=e=>this.adjustOffset(e.endOf("day"));addYears=(e,t)=>this.adjustOffset(e.add(t,"year"));addMonths=(e,t)=>this.adjustOffset(e.add(t,"month"));addWeeks=(e,t)=>this.adjustOffset(e.add(t,"week"));addDays=(e,t)=>this.adjustOffset(e.add(t,"day"));addHours=(e,t)=>this.adjustOffset(e.add(t,"hour"));addMinutes=(e,t)=>this.adjustOffset(e.add(t,"minute"));addSeconds=(e,t)=>this.adjustOffset(e.add(t,"second"));getYear=e=>e.year();getMonth=e=>e.month();getDate=e=>e.date();getHours=e=>e.hour();getMinutes=e=>e.minute();getSeconds=e=>e.second();getMilliseconds=e=>e.millisecond();setYear=(e,t)=>this.adjustOffset(e.set("year",t));setMonth=(e,t)=>this.adjustOffset(e.set("month",t));setDate=(e,t)=>this.adjustOffset(e.set("date",t));setHours=(e,t)=>this.adjustOffset(e.set("hour",t));setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t));setSeconds=(e,t)=>this.adjustOffset(e.set("second",t));setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t));getDaysInMonth=e=>e.daysInMonth();getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),r=this.endOfWeek(this.endOfMonth(e));let n=0,o=t;const a=[];for(;o<r;){const e=Math.floor(n/7);a[e]=a[e]||[],a[e].push(o),o=this.addDays(o,1),n+=1}return a};getWeekNumber=e=>e.week();getDayOfWeek(e){return e.day()+1}getYearRange=([e,t])=>{const r=this.startOfYear(e),n=this.endOfYear(t),o=[];let a=r;for(;this.isBefore(a,n);)o.push(a),a=this.addYears(a,1);return o}}var Bu=r(83826),Uu=r.n(Bu),Yu=r(88569),zu=r.n(Yu);const Wu=Intl.supportedValuesOf("timeZone");var Hu=e=>{let{selectedTimezone:t,setSelectedTimezone:r}=e;return(0,f.Y)(c.A,{options:Wu,value:t,onChange:(e,t)=>
2{t&&r(t)},renderInput:e=>(0,f.Y)(u.A,(0,o.A)({},e,{label:H.TimezoneSelect,variant:"outlined",size:"small"}))})};Tu().extend(Uu()),Tu().extend(zu());var qu=e=>{let{timestamp:t,scope:r,setTimestamp:n}=e;const o=a.useContext(Gm),[i,s]=a.useState(Intl.DateTimeFormat().resolvedOptions().timeZone),[l,u]=a.useState(""),[c,d]=a.useState(null),m=a.useMemo(()=>t&&!isNaN(parseInt(t,10))?Tu().utc(parseInt(t,10)/1e3).tz(i):null,[t,i]),h=Boolean(c),g=h?"timezone-popover":void 0,y=a.useCallback(e=>{if(m){const t=1e3*m.tz(e,!0).valueOf();n(t.toString())}s(e)},[m,n,s]),v="https://developers.google.com/analytics/devguides/collection/protocol/ga4",b=o?"firebase":"gtag",w=r===j.FY.USER_PROPERTY?v+"/user-properties?client_type="+b+"#override_timestamp":v+"/sending-events?client_type="+b+"#override_timestamp";return(0,f.Y)(zr,{dateAdapter:Lu},(0,f.Y)(wt.A,{sx:{border:"1px solid",borderColor:"divider",p:2,borderRadius:1}},(0,f.Y)(N,{container:!0,alignItems:"flex-start",spacing:2},(0,f.Y)(N,{item:!0,xs:!0},(0,f.Y)(p.A,{size:"medium",value:t,error:""!==l,helperText:""!==l?l:"The timestamp of the "+r+". Optional.",onChange:e=>{n(e),(e=>{if(""===e)return u(""),!0;const t=parseInt(e,10);isNaN(t)?u("Timestamp must be a number."):t<0?u("Timestamp must be a positive number."):u("")})(e)},label:H.TimestampMicros,linkTitle:"Go to documentation",href:w,extraAction:(0,f.Y)(gt.A,{title:"Set to current time"},(0,f.Y)(yt.A,{size:"small",onClick:()=>{const e=1e3*(new Date).getTime();n(e.toString()),u("")}},(0,f.Y)(At,null)))})),(0,f.Y)(N,{item:!0},(0,f.Y)(Mu,{format:"YYYY-MM-DD[T]HH:mm:ss",ampm:!1,views:["year","month","day","hours","minutes","seconds"],value:m,onChange:e=>{if(e){const t=1e3*e.valueOf();n(t.toString()),u("")}},slotProps:{textField:{helperText:"In "+i}}})),(0,f.Y)(N,{item:!0,sx:{mt:1}},(0,f.Y)(gt.A,{title:"Select timezone"},(0,f.Y)(yt.A,{onClick:e=>{d(e.currentTarget)}},(0,f.Y)(St,null))),(0,f.Y)(xt.Ay,{id:g,open:h,anchorEl:c,onClose:()=>{d(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},(0,f.Y)(wt.A,{sx:{p:2,minWidth:"300px"}},(0,f.Y)(Hu,{selectedTimezone:i,setSelectedTimezone:y})))))))};var Gu=e=>{var t,r;let{parameter:n,idx:o,setParamName:i,setParamValue:s,setParamTimestamp:l,removeParam:c,allowTimestampOverride:d}=e;const p=a.useContext(qm),[m,h]=a.useState(n.name),[g,y]=a.useState(n.value||""),[v,b]=a.useState((null===(t=n.timestamp_micros)||void 0===t?void 0:t.toString())||"");a.useEffect(()=>{const e=parseInt(v,10);l(o,isNaN(e)?void 0:e)},[v,l,o]);const w=(0,f.Y)(N,{container:!0,spacing:1},(0,f.Y)(N,{item:!0,xs:!0},(0,f.Y)(u.A,{id:"#/events/0/params/"+m,variant:"outlined",size:"small",value:m,onChange:e=>h(e.target.value),onBlur:()=>i(m),label:"name",fullWidth:!0})),(0,f.Y)(N,{item:!0,xs:!0},(0,f.Y)(u.A,{variant:"outlined",size:"small",value:g||"",InputLabelProps:Object.assign({},void 0===n.exampleValue?{}:{shrink:!0}),onChange:e=>y(e.target.value),onBlur:()=>s(g),label:n.type+" value",placeholder:null===(r=n.exampleValue)||void 0===r?void 0:r.toString(),fullWidth:!0})),d&&(0,f.Y)(N,{item:!0,xs:12},(0,f.Y)(qu,{timestamp:v,scope:j.FY.USER_PROPERTY,setTimestamp:b})));return p?(0,f.Y)(N,{container:!0,spacing:1,alignItems:"flex-start"},(0,f.Y)(N,{item:!0},(0,f.Y)(gt.A,{title:"remove parameter"},(0,f.Y)(yt.A,{onClick:c},(0,f.Y)(bt,null)))),(0,f.Y)(N,{item:!0,xs:!0},w)):w};const Zu="Parameters",Ku={buttonRow:Zu+"-buttonRow",parameters:Zu+"-parameters"},Ju=(0,s.Ay)("section")(e=>{let{theme:t}=e;return{["&."+Ku.parameters]:{"&> :not(:first-child)":{marginTop:t.spacing(1)}},["& ."+Ku.buttonRow]:{display:"flex","&> *:not(:last-child)":{marginRight:t.spacing(1)}}}});var Xu=e=>{let{parameters:t,setParamName:r,setParamValue:n,setParamTimestamp:o,addStringParam:i,addNumberParam:s,removeParam:l,addItemsParam:u,removeItem:c,allowTimestampOverride:d}=e;const p=a.useContext(qm);return(0,f.Y)(Ju,{className:Ku.parameters},t.map((e,t)=>(0,f.Y)(Gu,{key:"parameter-"+e.name+"-idx",parameter:e,setParamName:e=>r(t,e),setParamValue:e=>n(t,e),setParamTimestamp:o,idx:t,removeParam:()=>l(t),allowTimestampOverride:d})),(0,f.Y)("section",{className:Ku.buttonRow},p&&(0,f.Y)(a.Fragment,null,(0,f.Y)(B.X7,{add:!0,small:!0,title:"add string parameter",onClick:i},"string"),(0,f.Y)(B.X7,{add:!0,small:!0,title:"add number parameter",onClick:s},"number"),void 0!==u&&(0,f.Y)(B.X7,{add:!0,small:!0,title:"add items parameter",onClick:u},"items")),void 0!==c&&(0,f.Y)(a.Fragment,null,(0,f.Y)("div",null),(0,f.Y)(B.IZ,{delete:!0,small:!0,title:"remove item",onClick:c},"item"))))};var Qu=e=>{const[t,r]=(0,Re.oF)(j.Zg.eventBuilderUseFirebase,q.UseFirebase,!0),[n,o]=(0,Re.oF)(j.Zg.eventBuilderUseTextBox,q.UseTextBox,!1),[i,s]=(0,Re.BI)(j.Zg.ga4EventBuilderPayload,q.APISecret),{0:l,1:u}=(0,a.useState)({}),[c,d]=(0,Re.BI)(j.Zg.eventBuilderApiSecret,q.APISecret),[p,m]=(0,Re.BI)(j.Zg.eventBuilderFirebaseAppId,q.FirebaseAppId),[f,h]=(0,Re.BI)(j.Zg.eventBuilderMeasurementId,q.MeasurementId),[g,y]=(0,Re.BI)(j.Zg.eventBuilderClientId,q.ClientId),[v,b]=(0,Re.BI)(j.Zg.eventBuilderAppInstanceId,q.AppInstanceId),[w,x]=(0,Re.BI)(j.Zg.eventBuilderUserId,q.UserId),[A,S]=(0,Re.BI)(j.Zg.ga4EventBuilderPayloadError,q.PayloadError),{0:P,1:C}=(0,a.useState)(e[0]),[E,D]=(0,Re.oF)(j.Zg.eventBuilderNonPersonalizedAds,q.NonPersonalizedAds,!1),[M,O]=(0,Re.BI)(j.Zg.eventBuilderTimestampMicros,q.TimestampMicros);return{useFirebase:t,setUseFirebase:r,useTextBox:n,setUseTextBox:o,inputPayload:i,setInputPayload:s,payloadObj:l,setPayloadObj:u,payloadErrors:A,setPayloadErrors:S,category:P,setCategory:C,api_secret:c,setAPISecret:d,firebase_app_id:t?p:"",setFirebaseAppId:m,app_instance_id:t?v:"",setAppInstanceId:b,measurement_id:t?"":f,setMeasurementId:h,client_id:t?"":g,setClientId:y,user_id:w,setUserId:x,non_personalized_ads:E,setNonPersonalizedAds:D,timestamp_micros:M,setTimestampMicros:O}};var ec=()=>{const[e,t]=(0,Re.pd)(j.Zg.ga4EventBuilderUserProperties,q.UserProperties,ft),r=(0,U.RX)(t),n=(0,a.useCallback)(()=>{r(G("",void 0))},[r]),o=(0,a.useCallback)(()=>{r(Z("",void 0))},[r]),i=(0,U.fi)(t),s=(0,U.IL)(t),l=(0,a.useCallback)((e,t)=>{s(e,e=>Object.assign({},e,{name:t}))},[s]);return{userProperties:e||[],addStringUserProperty:n,addNumberUserProperty:o,removeUserProperty:i,setUserPropertyValue:(0,a.useCallback)((e,t)=>{s(e,e=>Object.assign({},e,{value:t}))},[s]),setUserPropertyName:l,setUserPropertyTimestamp:(0,a.useCallback)((e,t)=>{s(e,e=>Object.assign({},e,{timestamp_micros:t}))},[s])}};const tc="Items",rc={items:tc+"-items",buttonRow:tc+"-buttonRow"},nc=(0,s.Ay)("section")(e=>{let{theme:t}=e;return{["&."+rc.items]:{"&> :not(:first-child)":{marginTop:t.spacing(3)},"&> :last-child":{marginTop:t.spacing(1)}}
2,["& ."+rc.buttonRow]:{display:"flex","&> *:not(:last-child)":{marginRight:t.spacing(1)}}}});var oc=e=>{let{items:t,addItem:r,removeItem:n,addItemStringParam:o,addItemNumberParam:i,setItemParamName:s,setItemParamValue:l,removeItemParam:u,removeItems:c}=e;const d=a.useContext(qm);return(0,f.Y)(nc,{className:rc.items},t.map((e,t)=>(0,f.Y)(L.A,{hrGroup:!d,notched:d,label:"item "+(t+1),key:"item-"+t},(0,f.Y)(Xu,{parameters:e,setParamName:(e,r)=>s(t,e,r),setParamValue:(e,r)=>l(t,e,r),addStringParam:()=>o(t),addNumberParam:()=>i(t),removeParam:e=>u(t,e),removeItem:()=>n(t),setParamTimestamp:()=>{},allowTimestampOverride:!1}))),(0,f.Y)("div",{className:rc.buttonRow},(0,f.Y)(B.X7,{add:!0,title:"add item",small:!0,onClick:r},"item"),(0,f.Y)("div",null),d&&(0,f.Y)(B.IZ,{delete:!0,title:"remove item parameter",small:!0,onClick:c},"item")))},ac=r(46942),ic=r.n(ac),sc=r(54506),lc=r(78460),uc={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJSONPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}
2` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Expected unique items in {{pointer}}: duplicate value `{{value}}` found at {{itemPointer}} and {{duplicatePointer}}",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"};function cc(e,t,r=e){return function(e,t={}){return e.replace(/\{\{\w+\}\}/g,e=>t[e.replace(/[{}]/g,"")])}(uc[e]||r,t)}function dc(e,t){return{type:"error",name:e,code:(r=e,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),message:cc(e,t),data:t};var r}function pc(e){return dc.bind(null,e)}const mc=Object.prototype.toString;function fc(e){const t=mc.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return"file"===t?"object":t}function hc(e){return"error"===(null==e?void 0:e.type)}function gc(e){return hc(e)||e instanceof Promise}function yc(e,t=[]){for(let r=0;r<e.length;r+=1){const n=e[r];Array.isArray(n)?yc(n,t):t.push(n)}return t}var vc={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,floatingPointPrecision:1e4,propertyBlacklist:["_id"]};const{DECLARATOR_ONEOF:bc}=vc;function wc(e,t,r=e.rootSchema,n="#"){if(null!=t&&r[bc]){const o=[],a=r[bc],i=t[r[bc]];if(void 0===i)return e.errors.missingOneOfPropertyError({property:a,pointer:n});for(let s=0;s<r.oneOf.length;s+=1){const l=e.resolveRef(r.oneOf[s]),u=e.step(a,l,t,n);if(hc(u))return u;let c=yc(e.validate(i,u,n));if(c=c.filter(gc),!(c.length>0))return l;o.push(...c)}return e.errors.oneOfPropertyError({property:a,value:i,pointer:n,errors:o})}const o=[],a=[];for(let i=0;i<r.oneOf.length;i+=1){const s=e.resolveRef(r.oneOf[i]);let l=yc(e.validate(t,s,n));l=l.filter(gc),l.length>0?a.push(...l):o.push(s)}return 1===o.length?o[0]:o.length>1?e.errors.multipleOneOfError({value:t,pointer:n,matches:o}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,oneOf:r.oneOf,errors:a})}var xc=e=>JSON.parse(JSON.stringify(e)),Ac=r(14744),Sc=r.n(Ac);const Pc=(e,t)=>t;var Cc=(e,t)=>Sc()(e,t,{arrayMerge:Pc});const Ec=(e,t)=>{const r=e.concat(t);return r.filter((e,t)=>r.indexOf(e)===t)},Dc=(e,t)=>Sc()(e,t,{arrayMerge:Ec});function Mc(e,t,r){var n;const o={...null!==(n=e.resolveRef(t))&&void 0!==n?n:{}};if(o.if&&(o.then||o.else)){const t=e.isValid(r,o.if);if(t&&o.then)return Mc(e,o.then,r);if(!t&&o.else)return Mc(e,o.else,r);delete o.if,delete o.then,delete o.else}return o}function Oc(e,t,r=e.rootSchema,n="#"){let o=xc(r);for(let a=0;a<r.allOf.length;a+=1){const n=Mc(e,r.allOf[a],t);o=Dc(o,n),t=e.getTemplate(t,o)}return delete o.allOf,o}const{DECLARATOR_ONEOF:Tc}=vc;function kc(e,t,r,n){if(null==r||null==t.properties)return-1;let o=0;const a=Object.keys(t.properties);for(let i=0;i<a.length;i+=1){const s=a[i];null!=r[s]&&e.isValid(r[s],t.properties[s],n)&&(o+=1)}return o}function Ic(e,t,r=e.rootSchema,n="#"){if(null!=t&&r[Tc]){const o=[],a=r[Tc],i=t[r[Tc]];if(void 0===i)return e.errors.missingOneOfPropertyError({property:a,pointer:n});for(let s=0;s<r.oneOf.length;s+=1){const l=e.resolveRef(r.oneOf[s]),u=e.step(a,l,t,n);if(hc(u))return u;let c=yc(e.validate(i,u,n));if(c=c.filter(gc),!(c.length>0))return l;o.push(...c)}return e.errors.oneOfPropertyError({property:a,value:i,pointer:n,errors:o})}const o=[];for(let a=0;a<r.oneOf.length;a+=1){const i=e.resolveRef(r.oneOf[a]);e.isValid(t,i,n)&&o.push(i)}if(1===o.length)return o[0];if("object"===fc(t)){let o,a=0;for(let n=0;n<r.oneOf.length;n+=1){const i=e.resolveRef(r.oneOf[n]),s=kc(e,i,t);a<s&&(a=s,o=r.oneOf[n])}return void 0===o?e.errors.oneOfError({value:JSON.stringify(t),pointer:n,oneOf:r.oneOf}):o}return o.length>1?e.errors.multipleOneOfError({matches:o,data:t,pointer:n}):e.errors.oneOfError({value:JSON.stringify(t),pointer:n,oneOf:r.oneOf})}var _c=r(72546),Rc=r.n(_c);const $c={};function Vc(e,t,r,n=e.rootSchema){const o=Rc().split(t);return n=e.resolveRef(n),Nc(e,n,o,t,r)}function Nc(e,t,r,n,o=$c){if(0===r.length)return e.resolveRef(t);const a=r.shift();return hc(t=e.step(a,t,o,n))?t:Nc(e,t,r,`${n}/${a}`,o=o[a])}class Fc{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=JSON.parse(JSON.stringify(e.typeKeywords)),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){null!=e&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,null!==(t=this.rootSchema)&&void 0!==t?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,r,n){return this.config.each(this,e,t,r,n)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e="#",t,r){return this.config.getSchema(this,e,t,r)}getTemplate(e,t,r){return this.config.getTemplate(this,e,t,r)}isValid(e,t,r){return this.config.isValid(this,e,t,r)}resolveAnyOf(e,t,r){return this.config.resolveAnyOf(this,e,t,r)}resolveAllOf(e,t,r){return this.config.resolveAllOf(this,e,t,r)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,r){return this.config.resolveOneOf(this,e,t,r)}setSchema(e){this.rootSchema=e}step(e,t,r,n){return this.config.step(this,e,t,r,n)}validate(e,t,r){return this.config.validate(this,e,t,r)}}function jc(e,t,r){r.id=r.id||t,e.remotes[t]=e.compileSchema(r)}var Lc=r(46782);const Bc="[^?/{}*,()#]+",Uc=`\nroot ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)\nrecursion ::= (SEP query | pattern)*\n\nquery ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?\nproperty ::= ${Bc}\nregex ::= "{" [^}]+ "}"\nSEP ::= "/"\nall ::= "**"\nany ::= "*"\n\ntypecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array")\nlookahead ::= "?" expression ((andExpr | orExpr) expression)*\nandExpr ::= S? "&&" S?\norExpr ::= S? "||" S?\n\nexpression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))*\nexprProperty ::= [a-zA-Z0-9-_ $]+\nescaped ::= [^"]+\nis ::= ":"\nisnot ::= ":!"\nESC ::= '"'\n\npattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead?\nquantifier ::= "+" | "*" | [0-9]+\norPattern ::= S? "," S?\n\nS ::= [ ]*\n`,Yc=new Lc.A.Parser(Uc),zc=e=>Yc.getAST(e),Wc=(e,t)=>`${e}/${t}`,Hc=Object.prototype.toString,qc=/Object|Array/,Gc=e=>qc.test(Hc.call(e));function Zc(e){return new RegExp(e.text.replace(/(^{|}$)/g,""))}function Kc(e){return Array.isArray(e)?e.map(function(e,t){return`${t}`}):"[object Object]"===Object.prototype.toString.call(e)?Object.keys(e):[]}const Jc={mem:[],get(e,t){const r=e[0][t];if(!Jc.mem.includes(r))return Gc(r)&&Jc.mem.push(r),[r,t,e[0],Wc(e[3],t)]},reset(){Jc.mem.length=0}},Xc={any(e,t){const r=t[0];return Kc(r).map(e=>[r[e],e,r,Wc(t[3],e)])},all(e,t){const r=[t];var n,o;return n=t[0],o=(n,o)=>{const a=Jc.get(t,o);a&&r.push(...Xc.all(e,a))}
2,Array.isArray(n)?n.forEach(o):"[object Object]"===Object.prototype.toString.call(n)&&Object.keys(n).forEach(function(e){o(n[e],e,n)}),r},regex(e,t){const r=Zc(e),n=t[0];return Kc(n).filter(e=>r.test(e)).map(e=>[n[e],e,n,Wc(t[3],e)])}},Qc={escaped:(e,t)=>Qc.property(e,t),property:(e,t)=>{const r=e.text;if(t[0]&&void 0!==t[0][r])return[t[0][r],r,t[0],Wc(t[3],r)]},typecheck:(e,t)=>{const r=e.text.replace(/^\?:/,"");if("value"===r)return Gc(t[0])?void 0:t;var n;return(n=t[0],Hc.call(n).match(/\s([^\]]+)\]/).pop().toLowerCase())===r?t:void 0},lookahead:(e,t)=>{let r=!0,n=!1;return e.children.forEach(e=>{if("expression"===e.type){const o=void 0!==Qc.expression(e,t);r=!0===n?r||o:r&&o}else n="orExpr"===e.type}),r?t:void 0},expression:(e,t)=>{const r=e.children[0].text,n=e.children[1],o=e.children[2],a=t[0];if(!1!==Gc(a))return function(e,t,r){if(void 0===t)return void 0!==e;let n;const o=`${e}`;if("regex"===r.type){n=Zc(r).test(o)}else n=o===r.text;"isnot"===t.type&&(n=!1===n&&void 0!==e);return n}(a[r],n,o)?t:void 0}};function ed(e,t,r){const n=[];let o=e;return t.children.forEach(t=>{if("orPattern"===t.type)return n.push(...o),void(o=e);o=rd(o,t,r)}),n.push(...o),n}function td(e,t,r){const n=[],o=t.children.find(e=>"quantifier"===e.type),a=function(e){if(null==e)return 1;if("*"===e||"+"===e)return 1/0;const t=parseInt(e);return isNaN(t)?1:t}(o&&o.text);let i=e;o&&"*"===o.text&&n.push(...i);let s=0;for(;i.length>0&&s<a;)i=ed(i,t,r),n.push(...i),s+=1;return n}function rd(e,t,r){let n;return n="query"===t.type?function(e,t,r){let n=e;return t.children.forEach(e=>{if(Xc[e.type])n=function(e,t,r,n){const o=[];for(let a=0,i=t.length;a<i;a+=1)o.push(...e(r,t[a],r,n));return o}(Xc[e.type],n,e,r);else{if(!Qc[e.type])throw new Error(`Unknown filter ${e.type}`);n=function(e,t,r,n){const o=[];for(let a=0,i=t.length;a<i;a+=1){const i=e(r,t[a],n);i&&o.push(i)}return o}(Qc[e.type],n,e,r)}}),n}(e,t,r):"pattern"===t.type?td(e,t,r):function(e,t,r){let n=e;return t.children.forEach(e=>n=rd(n,e,r)),n}(e,t,r),Jc.reset(),Jc.mem.push(e),n}const nd={value:e=>e.map(e=>e[0]),pointer:e=>e.map(e=>e[3]),all:e=>e,map:e=>{const t={};return e.forEach(e=>t[e[3]]=e[0]),t}};var od;function ad(e,t,r=od.VALUE){if(null==t)return[];""===(t=t.replace(/(\/$)/g,""))&&(t="#");const n=zc(t);if(null==n)throw new Error(`empty ast for '${t}'`);if(""!==n.rest)throw new Error(`Failed parsing queryString from: '${n.rest}'`);const o=function(e,t){return Jc.reset(),Jc.mem.push(e),rd([[e,null,null,"#"]],t)}(e,n);return"function"==typeof r?o.map(e=>r(...e)):nd[r]?nd[r](o):o}!function(e){e.POINTER="pointer",e.VALUE="value",e.ALL="all",e.MAP="map"}(od||(od={})),ad.POINTER=od.POINTER,ad.VALUE=od.VALUE,ad.ALL=od.ALL,ad.MAP=od.MAP;const id=["root","recursion"];function sd(e,t=[]){return id.includes(e.type)?(e.children.forEach(e=>sd(e,t)),t):(t.push(e.text),t)}function ld(e){if(null==e||""===e)return[];return sd(zc(e))}const ud=e=>JSON.parse(JSON.stringify(e)),cd=Object.prototype.toString,dd=e=>cd.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase(),pd=new RegExp(`^("[^"]+"|${Bc})$`),md=["string","number","boolean","null"],fd=/^\[\d*\]$/,hd=/^\[(\d+)\]$/,gd=/^".+"$/,yd=/(^\[\d*\]$|^\d+$)/;function vd(e){return parseInt(e.replace(/^(\[|\]$)/,""))}function bd(e){return gd.test(e)?e.replace(/(^"|"$)/g,""):e}function wd(e,t,r,n){const o=e[0];if(/^\[\]$/.test(t)){o.push(r);const t=o.length-1;return[o[t],t,o,`${e[3]}/${t}}`]}if(null==n&&"object"===dd(o[t])&&"object"===dd(r))return Object.assign(o[t],r),[o[t],t,o,`${e[3]}/${t}}`];if(n===Ad.INSERT_ITEMS||null==n&&hd.test(t)){const n=vd(t);return function(e,t,r){e.length<=t?e[t]=r:e.splice(t,0,r)}(o,n,r),[o[n],n,o,`${e[3]}/${n}}`]}if(n===Ad.REPLACE_ITEMS||null==n){const n=vd(t);return o[n]=r,[o[n],n,o,`${e[3]}/${n}}`]}throw new Error(`Unknown array index '${t}' with force-option '${n}'`)}var xd;function Ad(e,t,r,n){if(null==t)return ud(e);if(""===(t=t.replace(/(\/$)/g,"")))return ud(r);const o=ud(e);let a=[[o,null,null,"#"]];const i=ld(t),s=i.pop(),l=fd.test(s)&&!1===hd.test(s);if(!1===pd.test(s)||l)throw new Error(`Unsupported query '${t}' ending with non-property`);
2return i.forEach((e,t)=>{if("__proto__"===e||"prototyped"===e||"constructor"===e)return;if(!1===pd.test(e))return void(a=function(e,t){const r=[];return e.forEach(e=>r.push(...ad(e[0],t,od.ALL))),r}(a,e));const r=t>=i.length-1?s:i[t+1],o=yd.test(r);a=function(e,t,r,n){return t=bd(t),e.filter(e=>!(!Array.isArray(e[0])||!yd.test(t))||!1===md.includes(dd(e[0][t]))).map(e=>{const o=r?[]:{},a=e[0],i=dd(o),s=dd(a[t]);return Array.isArray(a)&&s!==i?wd(e,t,o,n):(a[t]=a[t]||o,[a[t],t,a,`${e[3]}/${t}`])})}(a,e,o,n)}),a.forEach(e=>{let t=r;"function"===dd(r)&&(t=r(e[3],s,e[0],`${e[3]}/${s}`));const o=e[0];if(Array.isArray(o))wd(e,s,t,n);else{const e=bd(s);if("__proto__"===e||"prototyped"===e||"constructor"===e)return;o[e]=t}}),o}!function(e){e.REPLACE_ITEMS="replace",e.INSERT_ITEMS="insert"}(xd||(xd={})),Ad.REPLACE_ITEMS=xd.REPLACE_ITEMS,Ad.INSERT_ITEMS=xd.INSERT_ITEMS;var Sd={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}};const Pd=Object.keys(Sd).filter(e=>!1===Sd[e].type),Cd=Object.prototype.hasOwnProperty;function Ed(e){if(!1==(t=e,"[object Object]"===Object.prototype.toString.call(t)))return;var t;if(e.enum)return"enum";if(Sd[e.type]||Array.isArray(e.type))return e.type;const r=Pd.filter(t=>e[t]);if(1===r.length)return r[0];if(0!==r.length)throw new Error(`Mutiple typeIds [${r.join(", ")}] matched in ${JSON.stringify(e)}`);for(let n=0,o=Sd.object.keywords.length;n<o;n+=1){const t=Sd.object.keywords[n];if(Cd.call(e,t))return"object"}for(let n=0,o=Sd.array.keywords.length;n<o;n+=1){const t=Sd.array.keywords[n];if(Cd.call(e,t))return"array"}}function Dd(e){const t=[],r=Ed(e);if(null==r)return t;let n;if(Array.isArray(r)){n={};for(let e=0,t=r.length;e<t;e+=1)Object.assign(n,Sd[r[e]])}else n=Sd[r];return null==n.definitions||n.definitions.forEach(r=>{ad(e,r,(e,r,n,o)=>{(e=>"[object Object]"===Object.prototype.toString.call(e))(e)&&Ed(e)&&t.push({pointer:Rc().join(Rc().split(o),!1),def:e})})}),t}function Md(e,t){if(!0===this.callback(e,t))return;Dd(e).forEach(e=>this.nextTypeDefs(e.def,Rc().join(t,e.pointer,!1)))}function Od(e,t,r,n="definitions"){const o=t[n];Object.keys(o).forEach(t=>{if(!1!==o[t]&&(a=o[t],"[object Object]"!==Object.prototype.toString.call(a)))var a;else e.nextTypeDefs(o[t],Rc().join(r,n,t,!1))})}function Td(e,t,r="#"){const n={callback:t,nextTypeDefs:Md};n.nextTypeDefs(e,r),null!=e.definitions&&(n.callback=(e,r)=>{t(e,r),null!=e.definitions&&Od(n,e,r)},Od(n,e,r)),null!=e.$defs&&(n.callback=(e,r)=>{t(e,r),null!=e.definitions&&Od(n,e,r)},Od(n,e,r,"$defs"))}const kd=/(#|\/)+$/,Id=/#$/,_d=/^[^:]+:\/\/[^/]+\//,Rd=/\/[^/]*$/,$d=/#.*$/;function Vd(e,t){return null==e&&null==t?"#":null==t?e.replace(Id,""):null==e?t.replace(Id,""):"#"===t[0]?`${e.replace($d,"")}${t.replace(kd,"")}`:_d.test(t)?t.replace(Id,""):`${e.replace(Rd,"")}/${t.replace(Id,"")}`}const Nd=/(#|\/)+$/g,Fd=["",null,"#"];const jd=/(#|\/)+$/g;function Ld(e,t,r){if("object"===fc(r)&&(r=r.__ref||r.$ref),null==r)return t;let n;const o=r.replace(jd,"");if(e.remotes[o])return n=e.remotes[o],n&&n.$ref?Ld(e,t,n.$ref):n;if(e.ids[r])return n=(0,_c.get)(t,e.ids[r]),n&&n.$ref?Ld(e,t,n.$ref):n;const a=function(e){if(Fd.includes(e))return[];if(-1===(e=e.replace(Nd,"")).indexOf("#"))return[e.replace(Nd,"")];if(0===e.indexOf("#"))return[e.replace(Nd,"")];const t=e.split("#");return t[0]=t[0].replace(Nd,""),t[1]=`#${t[1].replace(Nd,"")}`,t}(r);if(0===a.length)return t;if(1===a.length){if(r=a[0],e.remotes[r])return n=e.remotes[r],Ld(e,t,n.$ref);if(e.ids[r])return n=(0,_c.get)(t,e.ids[r]),n&&n.$ref?Ld(e,t,n.$ref):n}if(2===a.length){const n=a[0];if(r=a[1],e.remotes[n])return e.remotes[n].getRef?e.remotes[n].getRef(r):Ld(e,e.remotes[n],r);if(e.ids[n])return Ld(e,(0,_c.get)(t,e.ids[n]),r)}return n=(0,_c.get)(t,e.ids[r]||r),n&&n.$ref?Ld(e,t,n.$ref):n}const Bd="__compiled",Ud="__ref",Yd=/(#|\/)+$/g;function zd(e,t,r=t,n=!1){if(!0===t||!1===t||void 0===t)return t;if(void 0!==t[Bd])return t;const o={ids:{},remotes:e.remotes},a=JSON.stringify(t),i=JSON.parse(a);if(Object.defineProperty(i,Bd,{enumerable:!1,value:!0}),Object.defineProperty(i,"getRef",{enumerable:!1,value:Ld.bind(null,o,i)}),!1===n&&!1===a.includes("$ref"))return i;i!==r&&Object.defineProperty(i,"$defs",{enumerable:!0,value:Object.assign({}
2,r.definitions,r.$defs,i.definitions,i.$defs)});const s={},l=()=>i;return Td(i,(e,t)=>{var r;if(e.$id){if(e.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(t)){const n=t.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),o=(0,_c.get)(i,n);e.$id=null!==(r=o.$id)&&void 0!==r?r:e.$id}o.ids[e.$id.replace(Yd,"")]=t}const n=(t=`#${t}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),a=t.replace(/\/[^/]+\/[^/]+$/,""),u=Vd(s[n]||s[a],e.$id);s[t]=u,null==o.ids[u]&&(o.ids[u]=t),e.$ref&&!e[Ud]&&(Object.defineProperty(e,Ud,{enumerable:!1,value:Vd(u,e.$ref)}),Object.defineProperty(e,"getRoot",{enumerable:!1,value:l}))}),i}function Wd(e,t,r,n=e.rootSchema,o="#"){n=e.resolveRef(n),r(n,t,o);const a=fc(t);"object"===a?Object.keys(t).forEach(a=>{const i=e.step(a,n,t,o),s=t[a];e.each(s,r,i,`${o}/${a}`)}):"array"===a&&t.forEach((a,i)=>{const s=e.step(i,n,t,o);e.each(a,r,s,`${o}/${i}`)})}var Hd={additionalItemsError:pc("AdditionalItemsError"),additionalPropertiesError:pc("AdditionalPropertiesError"),anyOfError:pc("AnyOfError"),allOfError:pc("AllOfError"),constError:pc("ConstError"),containsError:pc("ContainsError"),containsArrayError:pc("ContainsArrayError"),containsAnyError:pc("ContainsAnyError"),enumError:pc("EnumError"),formatURLError:pc("FormatURLError"),formatURIError:pc("FormatURIError"),formatURIReferenceError:pc("FormatURIReferenceError"),formatURITemplateError:pc("FormatURITemplateError"),formatDateError:pc("FormatDateaError"),formatDateTimeError:pc("FormatDateTimeError"),formatEmailError:pc("FormatEmailError"),formatHostnameError:pc("FormatHostnameError"),formatIPV4Error:pc("FormatIPV4Error"),formatIPV4LeadingZeroError:pc("FormatIPV4LeadingZeroError"),formatIPV6Error:pc("FormatIPV6Error"),formatIPV6LeadingZeroError:pc("FormatIPV6LeadingZeroError"),formatJSONPointerError:pc("FormatJSONPointerError"),formatRegExError:pc("FormatRegExError"),formatTimeError:pc("FormatTimeError"),invalidSchemaError:pc("InvalidSchemaError"),invalidDataError:pc("InvalidDataError"),invalidTypeError:pc("InvalidTypeError"),invalidPropertyNameError:pc("InvalidPropertyNameError"),maximumError:pc("MaximumError"),maxItemsError:pc("MaxItemsError"),maxLengthError:pc("MaxLengthError"),maxPropertiesError:pc("MaxPropertiesError"),minimumError:pc("MinimumError"),minItemsError:pc("MinItemsError"),minItemsOneError:pc("MinItemsOneError"),minLengthError:pc("MinLengthError"),minLengthOneError:pc("MinLengthOneError"),minPropertiesError:pc("MinPropertiesError"),missingDependencyError:pc("MissingDependencyError"),missingOneOfPropertyError:pc("MissingOneOfPropertyError"),multipleOfError:pc("MultipleOfError"),multipleOneOfError:pc("MultipleOneOfError"),noAdditionalPropertiesError:pc("NoAdditionalPropertiesError"),notError:pc("NotError"),oneOfError:pc("OneOfError"),oneOfPropertyError:pc("OneOfPropertyError"),patternError:pc("PatternError"),patternPropertiesError:pc("PatternPropertiesError"),requiredPropertyError:pc("RequiredPropertyError"),typeError:pc("TypeError"),undefinedValueError:pc("UndefinedValueError"),uniqueItemsError:pc("UniqueItemsError"),unknownPropertyError:pc("UnknownPropertyError"),valueNotEmptyError:pc("ValueNotEmptyError")},qd=r(17853),Gd=r.n(qd);const Zd=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),Kd=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Jd=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Xd=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,Qd=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ep=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,tp=[0,31,28,31,30,31,30,31,31,30,31,30,31],rp=/^(?:\/(?:[^~/]|~0|~1)*)*$/,np=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,op=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2}
2)*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,ap=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var ip={date:(e,t,r,n)=>{if("string"!=typeof r)return;const o=r.match(Qd);if(!o)return Hd.formatDateTimeError({value:r,pointer:n});const a=+o[1],i=+o[2],s=+o[3];return i>=1&&i<=12&&s>=1&&s<=(2==i&&(a%4==0&&(a%100!=0||a%400==0))?29:tp[i])?void 0:Hd.formatDateError({value:r,pointer:n})},"date-time":(e,t,r,n)=>{if("string"==typeof r)return""===r||Zd.test(r)?"Invalid Date"===new Date(r).toString()?Hd.formatDateTimeError({value:r,pointer:n}):void 0:Hd.formatDateTimeError({value:r,pointer:n})},email:(e,t,r,n)=>{if("string"!=typeof r)return;if('"'===r[0])return Hd.formatEmailError({value:r,pointer:n});const[o,a,...i]=r.split("@");return!o||!a||0!==i.length||o.length>64||a.length>253||"."===o[0]||o.endsWith(".")||o.includes("..")?Hd.formatEmailError({value:r,pointer:n}):/^[a-z0-9.-]+$/i.test(a)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(o)&&a.split(".").every(e=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(e))?void 0:Hd.formatEmailError({value:r,pointer:n})},hostname:(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!Xd.test(r))return Hd.formatHostnameError({value:r,pointer:n})},ipv4:(e,t,r,n)=>{if("string"==typeof r&&""!==r){if(r&&"0"===r[0])return Hd.formatIPV4LeadingZeroError({value:r,pointer:n});if(!(r.length<=15&&Kd.test(r)))return Hd.formatIPV4Error({value:r,pointer:n})}},ipv6:(e,t,r,n)=>{if("string"==typeof r&&""!==r){if(r&&"0"===r[0])return Hd.formatIPV6LeadingZeroError({value:r,pointer:n});if(!(r.length<=45&&Jd.test(r)))return Hd.formatIPV6Error({value:r,pointer:n})}},"json-pointer":(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!rp.test(r))return Hd.formatJSONPointerError({value:r,pointer:n})},"relative-json-pointer":(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!np.test(r))return Hd.formatJSONPointerError({value:r,pointer:n})},regex:(e,t,r,n)=>{if("string"==typeof r&&!1===/\\Z$/.test(r)){try{return void new RegExp(r)}catch(o){}return Hd.formatRegExError({value:r,pointer:n})}if("object"!=typeof r&&"number"!=typeof r&&!Array.isArray(r))return Hd.formatRegExError({value:r,pointer:n})},time:(e,t,r,n)=>{if("string"!=typeof r)return;const o=r.match(ep);if(!o)return Hd.formatDateTimeError({value:r,pointer:n});const a=+o[1],i=+o[2],s=+o[3],l=!!o[5];return(a<=23&&i<=59&&s<=59||23==a&&59==i&&60==s)&&l?void 0:Hd.formatTimeError({value:r,pointer:n})},uri:(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!Gd().isUri(r))return Hd.formatURIError({value:r,pointer:n})},"uri-reference":(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!op.test(r))return Hd.formatURIReferenceError({value:r,pointer:n})},"uri-template":(e,t,r,n)=>{if("string"==typeof r&&""!==r&&!ap.test(r))return Hd.formatURITemplateError({value:r,pointer:n})},url:(e,t,r,n)=>{if(""!==r&&!Gd().isWebUri(r))return Hd.formatURLError({value:r,pointer:n})}};const sp={addOptionalProps:!0,removeInvalidData:!1};let lp;function up(e,t){const{$ref:r}=e;if(null==r)return!0;return(null==lp[t]||null==lp[t][r]?0:lp[t][r])<vc.GET_TEMPLATE_RECURSION_LIMIT}function cp(e,t,r){if(null==r)throw new Error(`missing pointer ${r}`);const{$ref:n}=t;return null==n?t:(lp[r]=lp[r]||{},lp[r][n]=lp[r][n]||0,lp[r][n]+=1,e.resolveRef(t))}function dp(e,t,r,n){if("object"!==fc(t))return Object.assign({pointer:n},t);if(!1===up(t,n)&&null==r)return!1;let o=xc(cp(e,t,n));if(Array.isArray(t.anyOf)&&t.anyOf.length>0){if(up(t.anyOf[0],`${n}
2/anyOf/0`)){const r=cp(e,t.anyOf[0],`${n}/anyOf/0`);o=Cc(o,r),o.pointer=t.anyOf[0].$ref||o.pointer}delete o.anyOf}if(Array.isArray(t.allOf)){for(let r=0,a=t.allOf.length;r<a;r+=1)up(t.allOf[r],`${n}/allOf/${r}`)&&(o=Cc(o,cp(e,t.allOf[r],`${n}/allOf/${r}`)),o.pointer=t.allOf[r].$ref||o.pointer);delete o.allOf}return o.pointer=o.pointer||t.$ref||n,o}const pp=e=>e&&"object"==typeof e;function mp(e,t,r,n,o){if(null==r)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(t)}`);if(null==n)throw new Error("Missing pointer");let a=dp(e,r,t,n);if(!pp(a))return;if(n=a.pointer,null==a?void 0:a.const)return a.const;if(Array.isArray(a.oneOf))if(function(e){switch(fc(e)){case"string":case"array":return 0===e.length;case"null":case"undefined":return!0;case"object":return 0===Object.keys(e).length;default:return!1}}(t)){const e=a.oneOf[0].type||a.type||a.const&&typeof a.const||fc(t);a={...a.oneOf[0],type:e}}else{const r=Ic(e,t,a);if(hc(r)){if(null!=t&&!0!==o.removeInvalidData)return t;a=a.oneOf[0],t=void 0}else a=r}if(!pp(a)||null==a.type)return;const i=Array.isArray(a.type)?function(e,t,r){if(null==t){if(null!=r){const t=fc(r);if(e.includes(t))return t}return e[0]}const n=fc(t);if(e.includes(n))return n;return e[0]}(a.type,t,a.default):a.type,s=fc(t);if(null==t||s===i||"number"===s&&"integer"===i||(t=function(e,t){if("string"===e)return JSON.stringify(t);if("string"!=typeof t)return null;try{if(typeof(t=JSON.parse(t))===e)return t}catch(r){}return null}(i,t)),null==fp[i]){if(o.removeInvalidData)return;return t}return fp[i](e,a,t,n,o)}const fp={null:(e,t,r)=>hp(t,r,null),string:(e,t,r)=>hp(t,r,""),number:(e,t,r)=>hp(t,r,0),integer:(e,t,r)=>hp(t,r,0),boolean:(e,t,r)=>hp(t,r,!1),object:(e,t,r,n,o)=>{var a;const i=void 0===t.default?{}:t.default,s={},l=null!==(a=t.required)&&void 0!==a?a:[];if(t.properties&&Object.keys(t.properties).forEach(a=>{const u=null==r||null==r[a]?i[a]:r[a],c=l.includes(a);(null!=u||c||o.addOptionalProps)&&(s[a]=mp(e,u,t.properties[a],`${n}/properties/${a}`,o))}),t.dependencies&&Object.keys(t.dependencies).forEach(a=>{if(void 0===s[a])return;const i=t.dependencies[a];if(Array.isArray(i))return void i.forEach(r=>{s[r]=mp(e,s[r],t.properties[r],`${n}/properties/${r}`,o)});if("object"!==fc(i))return;const l=mp(e,r,{...i,type:"object"},`${n}/dependencies/${a}`,o);l&&!hc(l)&&Object.assign(s,l)}),r&&Object.keys(r).forEach(e=>null==s[e]&&(s[e]=r[e])),t.if&&(t.then||t.else)){const r=e.isValid(s,t.if);if(r&&t.then){const r=e.getTemplate(s,{type:"object",...t.then},o);Object.assign(s,r)}else if(!r&&t.else){const r=e.getTemplate(s,{type:"object",...t.else},o);Object.assign(s,r)}}return s},array:(e,t,r,n,o)=>{var a,i,s;const l=void 0===t.default?[]:t.default;t.minItems=t.minItems||0;const u=r||[];if(null==t.items)return u;if(Array.isArray(t.items)){for(let r=0,c=Math.max(null!==(a=t.minItems)&&void 0!==a?a:0,null!==(s=null===(i=t.items)||void 0===i?void 0:i.length)&&void 0!==s?s:0);r<c;r+=1)u[r]=mp(e,null==u[r]?l[r]:u[r],t.items[r],`${n}/items/${r}`,o);return u}if("object"!==fc(t.items))return u;const c=dp(e,t.items,r,n);if(!1===c)return u;if(n=c.pointer||n,c.oneOf&&0===u.length){const r=c.oneOf[0];for(let a=0;a<t.minItems;a+=1)u[a]=mp(e,null==u[a]?l[a]:u[a],r,`${n}/oneOf/0`,o);return u}if(c.oneOf&&u.length>0){const r=Math.max(t.minItems,u.length);for(let t=0;t<r;t+=1){let r=null==u[t]?l[t]:u[t],a=Ic(e,r,c);null==a||hc(a)?null!=r&&!0!==o.removeInvalidData?u[t]=r:(r=void 0,a=c.oneOf[0],u[t]=mp(e,r,a,`${n}/oneOf/${t}`,o)):u[t]=mp(e,r,a,`${n}/oneOf/${t}`,o)}return u}if(c.type){for(let r=0,a=Math.max(t.minItems,u.length);r<a;r+=1)u[r]=mp(e,null==u[r]?l[r]:u[r],c,`${n}/items`,o);return u}return u}};function hp(e,t,r){return null!=t?t:e.const?e.const:void 0===e.default&&Array.isArray(e.enum)?e.enum[0]:void 0===e.default?r:e.default}var gp=(e,t,r=e.rootSchema,n=sp)=>(lp={mi:{}},mp(e,t,r,"#",n));function yp(e,t,r=e.rootSchema,n="#"){return 0===e.validate(t,r,n).length}function vp(e,t){const r=typeof e;if(r!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(!vp(e[n],t[n]))return!1;return!0}if("object"===r){if(!e||!t)return e===t;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r)if(!vp(e[o],t[o]))return!1;return!0}return e===t}function bp(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const wp=vc.floatingPointPrecision,xp=Object.prototype.hasOwnProperty,Ap=(e,t)=>!(void 0===e[t]||!xp.call(e,t)),Sp={additionalProperties:(e,t,r,n)=>{if(!0===t.additionalProperties||null==t.additionalProperties)return;if("object"===fc(t.patternProperties)&&!1===t.additionalProperties)return;const o=[];let a=Object.keys(r).filter(e=>!1===vc.propertyBlacklist.includes(e));const i=Object.keys(t.properties||{});if("object"===fc(t.patternProperties)){const e=Object.keys(t.patternProperties).map(e=>new RegExp(e));a=a.filter(t=>{for(let r=0;r<e.length;r+=1)if(e[r].test(t))return!1;return!0})}for(let s=0,l=a.length;s<l;s+=1){const l=a[s];if(-1===i.indexOf(l)){const u="object"==typeof t.additionalProperties;if(u&&Array.isArray(t.additionalProperties.oneOf)){const u=e.resolveOneOf(r[l],t.additionalProperties,`${n}/${l}`);hc(u)?o.push(e.errors.additionalPropertiesError({schema:t.additionalProperties,property:a[s],properties:i,pointer:n,errors:u.data.errors})):o.push(...e.validate(r[l],u,n))}else u?o.push(...e.validate(r[l],t.additionalProperties,`${n}/${l}`)):o.push(e.errors.noAdditionalPropertiesError({property:a[s],properties:i,pointer:n}))}}return o},allOf:(e,t,r,n)=>{if(!1===Array.isArray(t.allOf))return;const o=[];return t.allOf.forEach(t=>{o.push(...e.validate(r,t,n))}),o},anyOf:(e,t,r,n)=>{if(!1!==Array.isArray(t.anyOf)){for(let n=0;n<t.anyOf.length;n+=1)if(e.isValid(r,t.anyOf[n]))return;return e.errors.anyOfError({anyOf:t.anyOf,value:r,pointer:n})}},dependencies:(e,t,r,n)=>{if("object"!==fc(t.dependencies))return;const o=[];return Object.keys(r).forEach(a=>{if(void 0===t.dependencies[a])return;if(!0===t.dependencies[a])return;if(!1===t.dependencies[a])return void o.push(e.errors.missingDependencyError({pointer:n}));let i;const s=fc(t.dependencies[a]);if("array"===s)i=t.dependencies[a].filter(e=>void 0===r[e]).map(t=>e.errors.missingDependencyError({missingProperty:t,pointer:n}));
2else{if("object"!==s)throw new Error(`Invalid dependency definition for ${n}/${a}. Must be list or schema`);i=e.validate(r,t.dependencies[a],n)}o.push(...i)}),o.length>0?o:void 0},enum:(e,t,r,n)=>{const o=fc(r);if("object"===o||"array"===o){const e=JSON.stringify(r);for(let r=0;r<t.enum.length;r+=1)if(JSON.stringify(t.enum[r])===e)return}else if(t.enum.includes(r))return;return e.errors.enumError({values:t.enum,value:r,pointer:n})},format:(e,t,r,n)=>{if(e.validateFormat[t.format]){return e.validateFormat[t.format](e,t,r,n)}},items:(e,t,r,n)=>{if(!1===t.items){if(Array.isArray(r)&&0===r.length)return;return e.errors.invalidDataError({pointer:n,value:r})}const o=[];for(let a=0;a<r.length;a+=1){const i=r[a],s=e.step(a,t,r,n);if(hc(s))return[s];const l=e.validate(i,s,`${n}/${a}`);o.push(...l)}return o},maximum:(e,t,r,n)=>{if(!isNaN(t.maximum))return t.maximum&&t.maximum<r||t.maximum&&!0===t.exclusiveMaximum&&t.maximum===r?e.errors.maximumError({maximum:t.maximum,length:r,pointer:n}):void 0},maxItems:(e,t,r,n)=>{if(!isNaN(t.maxItems))return t.maxItems<r.length?e.errors.maxItemsError({maximum:t.maxItems,length:r.length,pointer:n}):void 0},maxLength:(e,t,r,n)=>{if(isNaN(t.maxLength))return;const o=bp(r).length;return t.maxLength<o?e.errors.maxLengthError({maxLength:t.maxLength,length:o,pointer:n}):void 0},maxProperties:(e,t,r,n)=>{const o=Object.keys(r).length;
2if(!1===isNaN(t.maxProperties)&&t.maxProperties<o)return e.errors.maxPropertiesError({maxProperties:t.maxProperties,length:o,pointer:n})},minLength:(e,t,r,n)=>{if(isNaN(t.minLength))return;const o=bp(r).length;return t.minLength>o?1===t.minLength?e.errors.minLengthOneError({minLength:t.minLength,length:o,pointer:n}):e.errors.minLengthError({minLength:t.minLength,length:o,pointer:n}):void 0},minimum:(e,t,r,n)=>{if(!isNaN(t.minimum))return t.minimum>r||!0===t.exclusiveMinimum&&t.minimum===r?e.errors.minimumError({minimum:t.minimum,length:r,pointer:n}):void 0},minItems:(e,t,r,n)=>{if(!isNaN(t.minItems))return t.minItems>r.length?1===t.minItems?e.errors.minItemsOneError({minItems:t.minItems,length:r.length,pointer:n}):e.errors.minItemsError({minItems:t.minItems,length:r.length,pointer:n}):void 0},minProperties:(e,t,r,n)=>{if(isNaN(t.minProperties))return;const o=Object.keys(r).length;return t.minProperties>o?e.errors.minPropertiesError({minProperties:t.minProperties,length:o,pointer:n}):void 0},multipleOf:(e,t,r,n)=>{if(!isNaN(t.multipleOf))return r*wp%(t.multipleOf*wp)/wp!==0?e.errors.multipleOfError({multipleOf:t.multipleOf,value:r,pointer:n}):void 0},not:(e,t,r,n)=>{const o=[];return 0===e.validate(r,t.not,n).length&&o.push(e.errors.notError({value:r,not:t.not,pointer:n})),o},oneOf:(e,t,r,n)=>{if(!1!==Array.isArray(t.oneOf))return hc(t=e.resolveOneOf(r,t,n))?t:void 0},pattern:(e,t,r,n)=>{if(!1===new RegExp(t.pattern,"u").test(r))return e.errors.patternError({pattern:t.pattern,description:t.patternExample||t.pattern,received:r,pointer:n})},patternProperties:(e,t,r,n)=>{const o=t.properties||{},a=t.patternProperties;if("object"!==fc(a))return;const i=[],s=Object.keys(r),l=Object.keys(a).map(e=>({regex:new RegExp(e),patternSchema:a[e]}));return s.forEach(s=>{let u=!1;for(let t=0,o=l.length;t<o;t+=1)if(l[t].regex.test(s)){u=!0;const o=e.validate(r[s],l[t].patternSchema,`${n}/${s}`);o&&o.length>0&&i.push(...o)}o[s]||!1===u&&!1===t.additionalProperties&&i.push(e.errors.patternPropertiesError({key:s,pointer:n,patterns:Object.keys(a).join(",")}))}),i},properties:(e,t,r,n)=>{const o=[],a=Object.keys(t.properties||{});for(let i=0;i<a.length;i+=1){const s=a[i];if(Ap(r,s)){const a=e.step(s,t,r,n),i=e.validate(r[s],a,`${n}/${s}`);o.push(...i)}}return o},propertiesRequired:(e,t,r,n)=>{const o=[],a=Object.keys(t.properties||{});for(let i=0;i<a.length;i+=1){const s=a[i];if(void 0===r[s])o.push(e.errors.requiredPropertyError({key:s,pointer:n}));else{const a=e.step(s,t,r,n),i=e.validate(r[s],a,`${n}/${s}`);o.push(...i)}}return o},required:(e,t,r,n)=>{if(!1!==Array.isArray(t.required))return t.required.map(t=>{if(!Ap(r,t))return e.errors.requiredPropertyError({key:t,pointer:n})})},requiredNotEmpty:(e,t,r,n)=>{if(!1!==Array.isArray(t.required))return t.required.map(t=>{if(null==r[t]||""===r[t])return e.errors.valueNotEmptyError({property:t,pointer:`${n}/${t}`})})},uniqueItems:(e,t,r,n)=>{if(!1===(Array.isArray(r)&&t.uniqueItems))return;const o=[];return r.forEach((t,a)=>{for(let i=a+1;i<r.length;i+=1)vp(t,r[i])&&o.push(e.errors.uniqueItemsError({pointer:n,itemPointer:`${n}/${a}`,duplicatePointer:`${n}/${i}`,value:JSON.stringify(t)}))}),o}};var Pp=Sp;const Cp={...Pp,contains:(e,t,r,n)=>{if(!1===t.contains)return e.errors.containsArrayError({pointer:n,value:r});if(!0===t.contains)return Array.isArray(r)&&0===r.length?e.errors.containsAnyError({pointer:n}):void 0;if("object"===fc(t.contains)){for(let n=0;n<r.length;n+=1)if(e.isValid(r[n],t.contains))return;return e.errors.containsError({pointer:n,schema:JSON.stringify(t.contains)})}},exclusiveMaximum:(e,t,r,n)=>{if(!isNaN(t.exclusiveMaximum))return t.exclusiveMaximum<=r?e.errors.maximumError({maximum:t.exclusiveMaximum,length:r,pointer:n}):void 0},exclusiveMinimum:(e,t,r,n)=>{if(!isNaN(t.exclusiveMinimum))return t.exclusiveMinimum>=r?e.errors.minimumError({minimum:t.exclusiveMinimum,length:r,pointer:n}):void 0},if:(e,t,r,n)=>{if(null==t.if)return;const o=e.validate(r,t.if,n);return 0===o.length&&t.then?e.validate(r,t.then,n):0!==o.length&&t.else?e.validate(r,t.else,n):void 0},maximum:(e,t,r,n)=>{if(!isNaN(t.maximum))return t.maximum&&t.maximum<r?e.errors.maximumError({maximum:t.maximum,length:r,pointer:n}):void 0},minimum:(e,t,r,n)=>{if(!isNaN(t.minimum))return t.minimum>r?e.errors.minimumError({minimum:t.minimum,length:r,pointer:n}):void 0},patternProperties:(e,t,r,n)=>{const o=t.properties||{},a=t.patternProperties;if("object"!==fc(a))return;const i=[],s=Object.keys(r),l=Object.keys(a).map(e=>({regex:new RegExp(e),patternSchema:a[e]}));
2return s.forEach(s=>{let u=!1;for(let t=0,o=l.length;t<o;t+=1)if(l[t].regex.test(s)){if(u=!0,!1===l[t].patternSchema)return void i.push(e.errors.patternPropertiesError({key:s,pointer:n,patterns:Object.keys(a).join(",")}));const o=e.validate(r[s],l[t].patternSchema,`${n}/${s}`);o&&o.length>0&&i.push(...o)}o[s]||!1===u&&!1===t.additionalProperties&&i.push(e.errors.patternPropertiesError({key:s,pointer:n,patterns:Object.keys(a).join(",")}))}),i},propertyNames:(e,t,r,n)=>{if(!1===t.propertyNames){if(0===Object.keys(r).length)return;return e.errors.invalidPropertyNameError({property:Object.keys(r),pointer:n,value:r})}if(!0===t.propertyNames)return;if("object"!==fc(t.propertyNames))return;const o=[],a=Object.keys(r),i={...t.propertyNames,type:"string"};return a.forEach(t=>{const a=e.validate(t,i,`${n}/${t}`);a.length>0&&o.push(e.errors.invalidPropertyNameError({property:t,pointer:n,validationError:a[0],value:r[t]}))}),o}};var Ep=Cp;function Dp(e,t,r=e.rootSchema,n="#"){let o=!1,a=xc(r);for(let i=0;i<r.anyOf.length;i+=1){const s=e.resolveRef(r.anyOf[i]);e.isValid(t,r.anyOf[i],n)&&(o=!0,a=Cc(a,s))}return!1===o?Hd.anyOfError({value:t,pointer:n,anyOf:JSON.stringify(r.anyOf)}):(delete a.anyOf,a)}function Mp(e,t){if(null==e||null==e.$ref)return e;if(e.getRoot){return e.getRoot().getRef(e)}return t.getRef(e)}function Op(e){const t={type:fc(e)};return"object"===t.type&&(t.properties={},Object.keys(e).forEach(r=>t.properties[r]=Op(e[r]))),"array"===t.type&&1===e.length?t.items=Op(e[0]):"array"===t.type&&(t.items=e.map(Op)),t}function Tp(e,t,r=e.rootSchema){const n=e.step(t,r,{},"#");return hc(n)?"one-of-error"===n.code?n.data.oneOf.map(t=>e.resolveRef(t)):n:[n]}const kp={array:(e,t,r,n,o)=>{const a=fc(r.items);if("object"===a)return Array.isArray(r.items.oneOf)?e.resolveOneOf(n[t],r.items,o):Array.isArray(r.items.anyOf)?e.resolveAnyOf(n[t],r.items,o):Array.isArray(r.items.allOf)?e.resolveAllOf(n[t],r.items,o):e.resolveRef(r.items);if("array"===a){if(!0===r.items[t])return Op(n[t]);if(!1===r.items[t])return Hd.invalidDataError({key:t,value:n[t],pointer:o});if(r.items[t])return e.resolveRef(r.items[t]);if(!1===r.additionalItems)return Hd.additionalItemsError({key:t,value:n[t],pointer:o});if(!0===r.additionalItems||void 0===r.additionalItems)return Op(n[t]);if("object"===fc(r.additionalItems))return r.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(r,null,4)} for ${JSON.stringify(n,null,4)}`)}return!1!==r.additionalItems&&n[t]?Op(n[t]):new Error(`Invalid array schema for ${t} at ${o}`)},object:(e,t,r,n,o)=>{if(Array.isArray(r.oneOf)){const t=e.resolveOneOf(n,r,o);if(hc(r=Cc(r,t)))return r}if(Array.isArray(r.anyOf)&&hc(r=e.resolveAnyOf(n,r,o)))return r;if(Array.isArray(r.allOf)&&hc(r=e.resolveAllOf(n,r,o)))return r;let a;if(r.properties&&void 0!==r.properties[t]){if(a=e.resolveRef(r.properties[t]),hc(a))return a;if(a&&Array.isArray(a.oneOf)){let r=e.resolveOneOf(n[t],a,`${o}/${t}`);const i=a.oneOf.findIndex(e=>e===r);return r.variableSchema=!0,r.oneOfIndex=i,r.oneOfSchema=a,r}if(a)return a}const{dependencies:i}=r;if("object"===fc(i)){const r=Object.keys(i).filter(e=>"object"===fc(i[e]));for(let a=0,s=r.length;a<s;a+=1){const s=r[a],l=Ip(e,t,i[s],n,`${o}/${s}`);if(!hc(l))return l}}if(r.if&&(r.then||r.else)){const a=e.isValid(n,r.if);if(a&&r.then){const a=Ip(e,t,r.then,n,o);if("string"==typeof a.type&&"error"!==a.type)return a}if(!a&&r.else){const a=Ip(e,t,r.else,n,o);if("string"==typeof a.type&&"error"!==a.type)return a}}if("object"===fc(r.patternProperties)){let e;const n=Object.keys(r.patternProperties);for(let o=0,a=n.length;o<a;o+=1)if(e=new RegExp(n[o]),e.test(t))return r.patternProperties[n[o]]}return"object"===fc(r.additionalProperties)?r.additionalProperties:!0===r.additionalProperties?Op(n[t]):Hd.unknownPropertyError({property:t,value:n,pointer:`${o}`})}};function Ip(e,t,r,n,o="#"){if(Array.isArray(r.type)){const a=fc(n);return r.type.includes(a)?kp[a](e,`${t}`,r,n,o):e.errors.typeError({value:n,pointer:o,expected:r.type,received:a})}const a=r.type||fc(n),i=kp[a];return i?i(e,`${t}`,r,n,o):new Error(`Unsupported schema type ${r.type} for key ${t}`)}var _p={array:(e,t,r,n)=>e.typeKeywords.array.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),object:(e,t,r,n)=>e.typeKeywords.object.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),string:(e,t,r,n)=>e.typeKeywords.string.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),integer:(e,t,r,n)=>e.typeKeywords.number.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),number:(e,t,r,n)=>e.typeKeywords.number.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),boolean:(e,t,r,n)=>e.typeKeywords.boolean.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n)),null:(e,t,r,n)=>e.typeKeywords.null.filter(e=>t&&null!=t[e]).map(o=>e.validateKeyword[o](e,t,r,n))},Rp=r(32017),$p=r.n(Rp);function Vp(e,t,r=e.rootSchema,n="#"){if("boolean"===fc(r=e.resolveRef(r)))return r?[]:[e.errors.invalidDataError({value:t,pointer:n})];if(hc(r))return[r];if(void 0!==r.const)return $p()(r.const,t)?[]:[e.errors.constError({value:t,expected:r.const,pointer:n})];const o=function(e,t){const r=fc(e);return"number"===r&&("integer"===t||Array.isArray(t)&&t.includes("integer"))?Number.isInteger(e)||isNaN(e)?"integer":"number":r}(t,r.type),a=r.type||o;if(!(o===a||Array.isArray(a)&&a.includes(o)))return[e.errors.typeError({received:o,expected:a,value:t,pointer:n})];if(null==e.validateType[o])return[e.errors.invalidTypeError({receivedType:o,pointer:n})];return yc(e.validateType[o](e,r,t,n)).filter(gc)}const Np={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]}
2,validateKeyword:Ep,validateType:_p,validateFormat:ip,errors:Hd,addRemoteSchema:jc,compileSchema:zd,createSchemaOf:Op,each:Wd,eachSchema:Td,getChildSchemaSelection:Tp,getSchema:Vc,getTemplate:gp,isValid:yp,resolveAllOf:Oc,resolveAnyOf:Dp,resolveOneOf:wc,resolveRef:Mp,step:Ip,validate:Vp};class Fp extends Fc{constructor(e,t={}){super(Cc(Np,t),e)}}let jp=function(e){this.isValid=e=>this.validator.isValid(e),this.getErrors=e=>this.validator.validate(e),this.schema=e,this.validator=new Fp(e)};const Lp={ad_impression:[],add_payment_info:["value","items"],add_shipping_info:["value","items"],add_to_cart:["value","items"],add_to_wishlist:["value","items"],begin_checkout:["value","items"],campaign_details:[],earn_virtual_currency:[],generate_lead:["value"],join_group:[],level_up:[],login:[],post_score:["score"],purchase:["transaction_id","items","value"],refund:["transaction_id","value"],remove_from_cart:["items","value"],screen_view:[],search:["search_term"],select_content:[],select_item:["items"],select_promotion:[],share:[],sign_up:[],spend_virtual_currency:["value","virtual_currency_name"],tutorial_begin:[],tutorial_complete:[],unlock_achievement:["achievement_id"],view_cart:["items","value"],view_item:["items","value"],view_item_list:["items"],view_promotion:["items"],view_search_results:[]},Bp={type:"string"},Up={type:"number"},Yp={type:"string",format:"currency_type"},zp={type:"number"},Wp={currency:Yp,transaction_id:Bp,value:zp,affiliation:Bp,coupon:Bp,shipping:zp,shipping_tier:Bp,virtual_currency_name:Bp,tax:zp,payment_type:Bp,group_id:Bp,level:Up,character:Bp,method:Bp,search_term:Bp,content_type:Bp,item_id:Bp,score:Up,item_list_id:Bp,item_list_name:Bp,creative_name:Bp,creative_slot:Bp,location_id:Bp,promotion_id:Bp,promotion_name:Bp,item_name:Bp,achievement_id:Bp},Hp={currency:["value"],value:["currency"]},qp={type:"array",minItems:1,items:{type:"object",required:[],patternProperties:{".":{maxLength:100}},propertyNames:{maxLength:40,pattern:"^(?!ga_|google_|firebase_)[A-Za-z][A-Za-z0-9_]*$"},properties:{item_id:Bp,item_name:Bp,affiliation:Bp,coupon:Bp,currency:Yp,discount:zp,index:Up,item_brand:Bp,item_category:Bp,item_category2:Bp,item_category3:Bp,item_category4:Bp,item_category5:Bp,item_list_id:Bp,item_list_name:Bp,item_variant:Bp,location_id:Bp,price:zp,quantity:Up,creative_name:Bp,creative_slot:Bp,promotion_id:Bp,promotion_name:Bp},anyOf:[{required:["item_id"]},{required:["item_name"]}]}},Gp=()=>{let e=Wp;return e.items=qp,e},Zp={type:"object",required:[],maxProperties:25,propertyNames:{pattern:"^(?!ga_|google_|firebase_)[A-Za-z][A-Za-z0-9_]*$",maxLength:40},properties:Gp(),dependencies:Hp},Kp={type:"object",required:["events"],additionalProperties:!1,properties:{app_instance_id:{type:"string",format:"app_instance_id"},client_id:{type:"string"},user_id:{type:"string"},timestamp_micros:{},user_properties:{type:"object",maxProperties:25,patternProperties:{".":{type:"object",required:["value"],additionalProperties:!1,properties:{value:{maxLength:36},timestamp_micros:{}}}},propertyNames:{format:"user_property_name",pattern:"^(?!ga_|google_|firebase_)[A-Za-z][A-Za-z0-9_]*$",maxLength:24}},non_personalized_ads:{type:"boolean"},events:{type:"array",maxItems:25,items:{type:"object",maxProperties:25,required:["name","params"],additionalProperties:!1,properties:{name:{type:"string",format:"event_name",pattern:"^[A-Za-z][A-Za-z0-9_]*$",maxLength:40},params:{type:"object"},items:qp,timestamp_micros:{}},allOf:(()=>{const e=[];for(const r in Lp){const t={if:{properties:{name:{const:r}}},then:{properties:{params:{type:"object",required:Lp[r],properties:Gp(),dependencies:Hp,propertyNames:{pattern:"^(?!ga_|google_|firebase_)[A-Za-z][A-Za-z0-9_]*$",maxLength:40}}}}};e.push(t)}const t={if:{properties:{name:{pattern:"^(?!("+("|"+Object.keys(Lp))+")$).*$"}}},then:{properties:{params:Zp}}};return e.push(t),e})()},minItems:1},user_location:{type:"object",additionalProperties:!1,properties:{city:{type:"string"},region_id:{type:"string"},country_id:{type:"string"},subcontinent_id:{type:"string"},continent_id:{type:"string"}}},ip_override:{type:"string"},device:{type:"object",additionalProperties:!1,properties:{category:{type:"string"},language:{type:"string"},screen_resolution:{type:"string"},operating_system:{type:"string"},operating_system_version:{type:"string"},model:{type:"string"},brand:{type:"string"},browser:{type:"string"},browser_version:{type:"string"}}},user_agent:{type:"string"}}};var Jp=r(51029),Xp=r.n(Jp);const Qp=(e,t)=>{const r=[],n=e.app_instance_id,o=e.client_id;if(t)if(n){if(32!==(null==n?void 0:n.length)&&r.push({description:"Measurement app_instance_id is expected to be a 32 digit hexadecimal number but was ["+n.length+"] digits.",validationCode:"value_invalid",fieldPath:"app_instance_id"}),!n.match(/^[A-Fa-f0-9]+$/)){let e=n.split("").filter(e=>!/[0-9A-Fa-f]/.test(e));
2r.push({description:"Measurement app_instance_id contains non hexadecimal character ["+e[0]+"].",validationCode:"value_invalid",fieldPath:"app_instance_id"})}}else r.push({description:"Measurement requires an app_instance_id.",validationCode:"value_invalid",fieldPath:"app_instance_id"});else o||r.push({description:"Measurement requires a client_id.",validationCode:"value_invalid",fieldPath:"client_id"});return r},em=e=>{var t;const r=[];return null===(t=e.events)||void 0===t||t.forEach(e=>{if(e.params&&e.params.currency){const t=e.params.currency;3===t.length&&t.match(/[A-Z]{3}/)||r.push({description:"currency: "+t+" must be a valid uppercase 3-letter ISO 4217 format",validationCode:"value_invalid",fieldPath:"#/events/0/params/currency"})}}),r},tm=e=>{var t;const r=[];return null==e||null===(t=e.events)||void 0===t||t.forEach(e=>{var t,n,o,a;null!=e&&null!==(t=e.params)&&void 0!==t&&t.items&&(null==e||null===(n=e.params)||void 0===n||null===(o=n.items)||void 0===o?void 0:o.length)<1&&rm(null==e||null===(a=e.params)||void 0===a?void 0:a.name)&&r.push({description:"'items' should not be empty; One of 'item_id' or 'item_name' is a required key",validationCode:"minItems",fieldPath:"#/events/0/params/item_id"})}),r},rm=e=>!!Lp[e]&&Lp[e].includes("items"),nm=e=>{var t;const r=[];return null==e||null===(t=e.events)||void 0===t||t.forEach(e=>{var t,n;if((null==e||null===(t=e.params)||void 0===t||null===(n=t.items)||void 0===n?void 0:n.length)>0){const t=e.params.items[0];(om(t)||am(t))&&r.push({description:"'items' object must contain one of the following keys: 'item_id' or 'item_name'",validationCode:"limitation",fieldPath:"#/events/0/params/item_id"})}}),r},om=e=>!(e.hasOwnProperty("item_id")||e.hasOwnProperty("item_name")),am=e=>!(e.item_id||e.item_name),im=(e,t)=>{const r=[],n=null==e?void 0:e.firebase_app_id,o=null==e?void 0:e.measurement_id;return t?n&&!n.match(/[0-9]:[0-9]+:[a-zA-Z]+:[a-zA-Z0-9]+$/)&&r.push({description:n+" does not follow firebase_app_id pattern of X:XX:XX:XX at path",validationCode:"value_invalid",fieldPath:"firebase_app_id"}):o||r.push({description:"Unable to find non-empty parameter [measurement_id] value in request.",validationCode:"value_invalid",fieldPath:"measurement_id"}),r},sm=e=>{const t=[];return e||t.push({description:"Unable to find non-empty parameter [api_secret] value in request.",validationCode:"VALUE_REQUIRED",fieldPath:"api_secret"}),t},lm=e=>{const t=[];return Xp()(e)>13e4&&t.push({description:"Post body must be smaller than 130kBs",validationCode:"max-body-size",fieldPath:"#"}),t},um="does not match '^(?!ga_|google_|firebase_)[A-Za-z][A-Za-z0-9_]*$'",cm=["app_instance_id","api_secret","firebase_app_id","user_id","timestamp_micros","user_properties","non_personalized_ads"],dm=(e,t,r)=>{const{fieldPath:n,validationCode:o}=e;return"max-length-error"===o||"max-properties-error"===o||"max-body-size"===o?"https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?hl=en&client_type=firebase#limitations":null!=n&&n.startsWith("#/events/")?"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events#"+(null==t||null===(a=t.events[0])||void 0===a?void 0:a.name):r||"client_id"!==n&&"measurement_id"!==n?cm.includes(n)?"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference#"+n:"#/user_properties"===n?"https://developers.google.com/analytics/devguides/collection/protocol/ga4/user-properties?hl=en&client_type=firebase":"https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?hl=en&client_type=firebase":"https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=gtag#required_parameters";var a},pm=e=>{if(void 0===e)return;const t=parseFloat(e);return Number.isNaN(t)?void 0:t},mm=(e,t)=>Object.assign({},e,""!==t.name&&void 0!==t.value&&""!==t.value?{[t.name]:t.type===Y.String?t.value:pm(t.value)}:{}),fm=(e,t)=>{let r=t.value;if(t.type===Y.Number&&(r=pm(r)),""===t.name||""===r||void 0===r)return e;const n={value:r};return t.timestamp_micros&&(n.timestamp_micros=t.timestamp_micros),Object.assign({},e,{[t.name]:n})},hm=e=>Object.entries(e).reduce((e,t)=>
2{let[r,n]=t;return Object.assign({},e,void 0===n||""===n||""===r?{}:{[r]:n})},{});var gm=()=>{const{eventName:e,parameters:t,items:r,userProperties:n,timestamp_micros:o,non_personalized_ads:i,clientIds:s,type:l,useTextBox:u,payloadObj:c,ip_override:d,user_location:p,device:m,user_agent:f}=(0,a.useContext)(Hm),h=(0,a.useMemo)(()=>l===W.CustomEvent?e:l,[l,e]),g=(0,a.useMemo)(()=>void 0===r?{}:{items:r.map(e=>e.reduce(mm,{})).filter(e=>JSON.stringify(e)!==JSON.stringify({}))},[r]),y=(0,a.useMemo)(()=>t.reduce(mm,g),[t,g]),v=(0,a.useMemo)(()=>n.reduce(fm,{}),[n]),b=(0,a.useMemo)(()=>{if(void 0===p)return;const e=hm(p);return 0!==Object.keys(e).length?e:void 0},[p]),w=(0,a.useMemo)(()=>{if(void 0===m)return;const e=hm(m);return 0!==Object.keys(e).length?e:void 0},[m]);let x=(0,a.useMemo)(()=>Object.assign({},hm(s),hm({timestamp_micros:o}),hm({non_personalized_ads:i}),hm((e=>{const t=JSON.stringify({});return Object.entries(e).reduce((e,r)=>{let[n,o]=r;return Object.assign({},e,JSON.stringify(o)===t?{}:{[n]:o})},{})})({user_properties:v})),hm({ip_override:d,user_location:b,device:w,user_agent:f}),{events:[Object.assign({name:h},t.length>0?{params:y}:{})]}),[s,h,i,t,y,o,v,d,b,w,f]);return u&&(x="string"==typeof c?0===Object.keys(c).length?{}:JSON.parse(c):c),x};var ym=()=>{const e=(0,a.useContext)(Gm),{clientIds:t,instanceId:r,api_secret:n,timestamp_micros:o,non_personalized_ads:i,userProperties:s,items:l,parameters:u,eventName:c,type:d}=(0,a.useContext)(Hm);return(0,a.useMemo)(()=>{const a=new URLSearchParams;((e,t,r)=>{null===e.get(t.Version)&&e.append(t.Version,r)})(a,q,lc.Qs._2);const p=(e,t)=>{t&&a.append(e,t)};void 0!==e&&a.append(q.UseFirebase,e?"1":"0"),void 0!==i&&a.append(q.NonPersonalizedAds,i?"1":"0"),p(q.AppInstanceId,t.app_instance_id),p(q.EventType,d),p(q.EventName,c),p(q.ClientId,t.client_id),p(q.UserId,t.user_id),p(q.APISecret,n),p(q.MeasurementId,r.measurement_id),p(q.FirebaseAppId,r.firebase_app_id),p(q.TimestampMicros,o),s&&a.append(q.UserProperties,ct(s)),l&&a.append(q.Items,ct(l)),u.length>0&&a.append(q.Parameters,ct(u));const m=a.toString(),{protocol:f,host:h,pathname:g}=window.location;return f+"//"+h+g+"?"+m},[d,u,c,l,s,e,t,r,n,o,i])};const vm=e=>e.firebase_app_id?"&firebase_app_id="+e.firebase_app_id:e.measurement_id?"&measurement_id="+e.measurement_id:"",bm=e=>e?"https://region1.google-analytics.com":"https://www.google-analytics.com";var wm=e=>{const t=(0,a.useContext)(Gm),{useTextBox:r}=(0,a.useContext)(Hm),{0:n,1:o}=(0,a.useState)(lc.IZ.NotStarted),{0:i,1:s}=(0,a.useState)([]),l=gm(),{0:u,1:c}=(0,a.useState)(!1),{instanceId:d,api_secret:p}=(0,a.useContext)(Hm),{categories:m}=ht(),{payloadErrors:f}=Qu(m);(0,a.useEffect)(()=>{r||(o(lc.IZ.NotStarted),c(!1))},[l,r]);const h=(0,a.useCallback)(()=>{n===lc.IZ.Successful&&(async(e,t,r,n)=>{const o=n+"/mp/collect?api_secret="+r+vm(t),a=Object.assign({},e,{validationBehavior:"ENFORCE_RECOMMENDATIONS"});await fetch(o,{method:"POST",body:JSON.stringify(a)})})(l,d,p,bm(e)).then(()=>c(!0))},[n,l,d,p,e]),g=(0,U.T9)(JSON.stringify(l,void 0,"  "),"copied payload"),y=ym(),v=(0,U.T9)(y,"copied link to event"),b=(0,a.useCallback)(e=>{const r=new jp(Kp),n=((e,t,r,n)=>{const o=Qp(e,n),a=em(e),i=tm(e),s=nm(e),l=im(t,n),u=sm(r),c=lm(e);return[].concat([],(0,sc.A)(o),(0,sc.A)(a),(0,sc.A)(i),(0,sc.A)(s),(0,sc.A)(l),(0,sc.A)(u),(0,sc.A)(c))})(e,d,p,t);if(!r.isValid(e)||n){let t=r.getErrors(e).map(e=>{var t,r,n,o;return{description:e.message,validationCode:null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(r=t.validationError)&&void 0!==r&&r.code?null==e||null===(n=e.data)||void 0===n||null===(o=n.validationError)||void 0===o?void 0:o.code:e.code,fieldPath:x(e)}});return[].concat((0,sc.A)(t),(0,sc.A)(n))}return[]},[p,d,t]),w=(0,a.useCallback)(()=>{if(n!==lc.IZ.InProgress)if(o(lc.IZ.InProgress),s([]),r&&0===Object.keys(l).length){s([{description:"Fix formatting issue and re-validate payload by clicking `Validate Event` below",validationCode:"format_invalid",fieldPath:"#",documentation:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?hl=en&client_type=firebase#payload_post_body"}]),o(lc.IZ.Failed)}else{let r=b(l);(async(e,t,r,n)=>{const o=n+"/debug/mp/collect?api_secret="+r+vm(t),a=Object.assign({},e,{validationBehavior:"ENFORCE_RECOMMENDATIONS"}),i=await fetch(o,{method:"POST",body:JSON.stringify(a)});return(await i.json()).validationMessages})(l,d,p,bm(e)).then(e=>{setTimeout(()=>{if(e.length>0||r.length>0){e.filter(e=>"measurement_id"===e.fieldPath?!t:"firebase_app_id"!==e.fieldPath||t).forEach(e
2=>{r.map(e=>e.description).includes(e.description)||r.push(e)}),r=((e,t,r)=>e.map(e=>{const{description:t,fieldPath:r}=e;if(t.endsWith("can have at most [10] custom params."))return e.description="Item array has invalid key",e.validationCode="value_invalid",e.fieldPath="#/events/0/params/item_id",e;if(t.endsWith(um)){let r=t.indexOf(um);return e.description=t.slice(0,r)+" may only contain alpha-numeric characters and underscores,start with an alphabetic character, and cannot contain google_, ga_, firebase_",e}return cm.includes(null==r?void 0:r.slice(2))?(e.fieldPath=r.slice(2),e):e}).map(e=>(e.documentation=dm(e,t,r),e)))(r,l,t),s(r),o(lc.IZ.Failed)}else o(lc.IZ.Successful)},250)}).catch(e=>{console.error(e)})}},[n,l,p,d,t,r,b,e]),x=e=>{const{data:t}=e;return null!=t&&t.pointer?null!=t&&t.key?t.pointer+"/"+t.key:null!=t&&t.missingProperty?t.pointer+"/"+t.missingProperty:null==t?void 0:t.pointer:null==t?void 0:t.key};return n===lc.IZ.Successful?{status:n,sendToGA:h,copyPayload:g,copySharableLink:v,sent:u}:n===lc.IZ.NotStarted?{status:n,validateEvent:w}:n===lc.IZ.Failed?{status:n,validationMessages:i,validateEvent:w,payloadErrors:f}:{status:n}},xm=r(109),Am=r(97449),Sm=(0,vt.A)((0,T.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Pm=r(17147),Cm=r(93934);function Em(e){return(0,E.Ay)("MuiCard",e)}(0,C.A)("MuiCard",["root"]);const Dm=["className","raised"],Mm=(0,s.Ay)(sl.A,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Om=a.forwardRef(function(e,t){const r=(0,A.b)({props:e,name:"MuiCard"}),{className:n,raised:a=!1}=r,i=(0,y.A)(r,Dm),s=(0,o.A)({},r,{raised:a}),l=(e=>{const{classes:t}=e;return(0,x.A)({root:["root"]},Em,t)})(s);return(0,T.jsx)(Mm,(0,o.A)({className:(0,v.A)(l.root,n),elevation:a?8:void 0,ref:t,ownerState:s},i))});var Tm=Om,km=r(41338),Im=r(3542);const _m="ValidateEvent",Rm={template:_m+"-template",payloadTitle:_m+"-payloadTitle",headers:_m+"-headers",heading:_m+"-heading",payload:_m+"-payload",form:_m+"-form",buttonRow:_m+"-buttonRow"},$m=(0,s.Ay)("div")(e=>{let{theme:t}=e;return{["& ."+Rm.template]:{padding:t.spacing(2)},["& ."+Rm.payloadTitle]:{margin:t.spacing(1,0)},["& ."+Rm.headers]:Object.assign({},t.typography.body2,{fontFamily:"monospace"}),["& ."+Rm.heading]:e=>{let{error:r,valid:n}=e;return{backgroundColor:r?km.A[300]:n?Im.A[300]:"inherit",color:r?t.palette.getContrastText(km.A[300]):n?t.palette.getContrastText(Im.A[300]):"inherit",margin:t.spacing(-2),padding:t.spacing(2),display:"flex",alignItems:"center","&> :first-child":{marginRight:t.spacing(1)},marginBottom:t.spacing(2)}},["& ."+Rm.form]:{maxWidth:"80ch"},["& ."+Rm.buttonRow]:{display:"flex","&> *:not(:last-child)":{marginRight:t.spacing(1)}},["& ."+Rm.payload]:{fontSize:t.typography.caption.fontSize}}}),Vm=e=>{let{sent:t,heading:r,headingIcon:n,body:o,validateEvent:i,validationMessages:s,sendToGA:u,copyPayload:c,copySharableLink:d,error:p,valid:m,payloadErrors:h,useTextBox:g,useEuEndpoint:y}=e;const{instanceId:v,api_secret:b}=(0,a.useContext)(Hm),w=gm();return(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,{className:Rm.heading,variant:"h3"},n,r),void 0!==s&&(g&&!h||!g)&&(0,f.Y)("ul",null,s.map((e,t)=>(0,f.Y)("div",null,(0,f.Y)("li",{key:t},((e,t)=>{const{fieldPath:r}=e;let n;if(Object.values(H).includes(r)&&!t&&(n=r),n)return(0,f.Y)(B.pH,{style:{marginRight:"8px"},small:!0,onClick:()=>{var e;n&&(null===(e=document.getElementById(n))||void 0===e||e.focus())}},"focus")})(e,void 0!==g&&g),e.description,(0,f.Y)("br",null),(0,f.Y)("a",{href:e.documentation,target:"_blank",rel:"noreferrer"},"Documentation")),(0,f.Y)("br",null),(0,f.Y)("br",null)))),g&&h&&(0,f.Y)("div",null,(0,f.Y)("ul",null,(0,f.Y)("li",null,"JSON formatting error: ",(0,f.Y)("i",null,h))),(0,f.Y)("br",null),(0,f.Y)("br",null)),o,(0,f.Y)("section",{className:Rm.buttonRow},void 0!==i&&(0,f.Y)(B.QL,{small:!0,onClick:()=>{i()}},"validate event"),u&&(0,f.Y)(B.QL,{check:t,onClick:u},t?"sent":"send to ga"),c&&(0,f.Y)(B.pH,{onClick:c},"copy payload"),d&&(0,f.Y)(B.pH,{onClick:d},"copy sharable link")),(0,f.Y)("br",null),(0,f.Y)(l.A,{variant:"h4"},"Request info"),(0,f.Y)(l.A,{className:Rm.headers},"POST /mp/collect?api_secret=",b,v.firebase_app_id&&"&firebase_app_id="+v.firebase_app_id,v.measurement_id&&"&measurement_id="+v.measurement_id," "," ",(0,f.Y)("br",null),"HTTP/1.1 ",(0,f.Y)("br",null),"HOST: ",y?"region1.google-analytics.com":"www.google-analytics.com"," ",(0,f.Y)("br",null),"Content-Type: application/json"),(0,f.Y)(l.A,{variant:"h5"},"Payload"),(0,f.Y)("section",{"data-testid":"payload"},(0,f.Y)(Pm.Ay,{className:Rm.payload,noPaper:!0,object:w,tooltipText:"Copy payload"})))};var Nm=e=>{let{formatPayload:t,payloadErrors:r,useTextBox:n}=e;const[o,i]=a.useState(!1),s=wm(o);return(0,f.Y)($m,{className:Rm.form},(0,f.Y)(wt.A,{mb:1,className:ic()(Rm.form,Rm.template)},(0,f.Y)(L.A,{notched:!0,shrink:!0,label:"server endpoint",helpText:"The default endpoint is https://www.google-analytics.com. If 'EU' is selected, the https://region1.google-analytics.com endpoint will be used to validate and send events."},(0,f.Y)(N,{component:"label",container:!0,alignItems:"center",spacing:1},(0,f.Y)(N,{item:!0},"Default"),(0,f.Y)(N,{item:!0},(0,f.Y)(F.A,{"data-testid":"use-eu-endpoint",checked:o,onChange:e=>i(e.target.checked),name:"use-eu-endpoint",color:"primary"})),(0,f.Y)(N,{item:!0},"EU")))),(0,f.Y)(Tm,{className:ic()(Rm.form,Rm.template),"data-testid":"validate and send"},(0,f.Y)(xm.A,{request:s,renderNotStarted:e=>{let{validateEvent:r}=e;return(0,f.Y)(Vm,{useEuEndpoint:o,heading:"This event has not been validated",headingIcon:(0,f.Y)(Am.A,null),body:(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,null,"Update the event using the controls above."),(0,f.Y)(l.A,null,'When you\'re done editing the event, click "Validate Event" to check if the event is valid.')),validateEvent:()=>{t&&t(),r()}})},renderInProgress:()=>(0,f.Y)(Vm,{useEuEndpoint:o,heading:"Validating",body:(0,f.Y)(Cm.A,{ellipses:!0})}),renderFailed:e=>{let{validationMessages:a,validateEvent:i}=e;return(0,f.Y)(Vm,{useEuEndpoint:o,error:!0,headingIcon:(0,f.Y)(d.A,null),heading:"Event is invali
2d",body:"",validateEvent:()=>{t&&t(),i()},validationMessages:a,payloadErrors:r,useTextBox:n})},renderSuccessful:e=>{let{sendToGA:t,copyPayload:r,copySharableLink:n,sent:i}=e;return(0,f.Y)(Vm,{useEuEndpoint:o,sent:i,valid:!0,heading:"Event is valid",headingIcon:(0,f.Y)(Sm,null),sendToGA:t,copyPayload:r,copySharableLink:n,body:(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,null,"Use the controls below to copy the event payload or share it with coworkers."),(0,f.Y)(l.A,null,"You can also send the event to Google Analytics and watch it in action in the Real Time view."))})}})))};const Fm=(0,s.Ay)("div")(e=>{let{theme:t}=e;return{marginTop:t.spacing(3)}});var jm=e=>{let{user_location_city:t,setUserLocationCity:r,user_location_region_id:n,setUserLocationRegionId:o,user_location_country_id:a,setUserLocationCountryId:i,user_location_subcontinent_id:s,setUserLocationSubcontinentId:c,user_location_continent_id:d,setUserLocationContinentId:h,ip_override:g,setIpOverride:y}=e;return(0,f.Y)(Fm,null,(0,f.Y)($t.A,null,(0,f.Y)(Ol.A,{label:"GEOGRAPHIC INFORMATION",size:"small"})),(0,f.Y)(l.A,{variant:"h6"},"User Location"),(0,f.Y)(l.A,null,"See the"," ",(0,f.Y)(m.A,{href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference#user_location"},"documentation")," ","for more information about user location attributes."),(0,f.Y)(N,{container:!0,spacing:1},(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,label:H.City,id:H.City,variant:"outlined",size:"small",value:t||"",onChange:e=>
2r(e.target.value),helperText:"The city name, e.g., Mountain View"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,label:H.RegionId,id:H.RegionId,variant:"outlined",size:"small",value:n||"",onChange:e=>o(e.target.value),helperText:"The country and subdivision, e.g., US-CA"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,label:H.CountryId,id:H.CountryId,variant:"outlined",size:"small",value:a||"",onChange:e=>i(e.target.value),helperText:"The country code, e.g., US"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,label:H.ContinentId,id:H.ContinentId,variant:"outlined",size:"small",value:d||"",onChange:e=>h(e.target.value),helperText:"The continent code, e.g., 019"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,label:H.SubcontinentId,id:H.SubcontinentId,variant:"outlined",size:"small",value:s||"",onChange:e=>c(e.target.value),helperText:"The subcontinent code, e.g., 021"}))),(0,f.Y)(l.A,{variant:"h6"},"IP Override"),(0,f.Y)(l.A,null,"Provide an IP address to derive the user's geographic location. If both an IP override and user location are provided, user location will be used."),(0,f.Y)(p.A,{label:H.IpOverride,id:H.IpOverride,linkTitle:"See ip_override on devsite.",href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference#ip_override",value:g||"",onChange:y,helperText:"The IP address of the user."}))};const Lm=(0,s.Ay)("div")(e=>{let{theme:t}=e;return{marginTop:t.spacing(1)}});var Bm=e=>{let{device_category:t,setDeviceCategory:r,device_language:n,setDeviceLanguage:o,device_screen_resolution:i,setDeviceScreenResolution:s,device_operating_system:c,setDeviceOperatingSystem:d,device_operating_system_version:p,setDeviceOperatingSystemVersion:h,device_model:g,setDeviceModel:y,device_brand:v,setDeviceBrand:b,device_browser:w,setDeviceBrowser:x,device_browser_version:A,setDeviceBrowserVersion:S,user_agent:P,setUserAgent:C}=e;const E=(0,a.useContext)(Gm);return(0,f.Y)(Lm,null,(0,f.Y)($t.A,null,(0,f.Y)(Ol.A,{label:"DEVICE INFORMATION",size:"small"})),(0,f.Y)(l.A,{variant:"h6"},"Device Attributes"),(0,f.Y)(l.A,null,"See the"," ",(0,f.Y)(m.A,{href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference#device"},"documentation")," for more information about device attributes."),(0,f.Y)(N,{container:!0,spacing:1},(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-category",label:H.DeviceCategory,variant:"outlined",size:"small",value:t||"",onChange:e=>r(e.target.value),helperText:"The category of the device, e.g., mobile, desktop"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-language",label:H.DeviceLanguage,variant:"outlined",size:"small",value:n||"",onChange:e=>o(e.target.value),helperText:"The language of the device in ISO 639-1 format, e.g., en"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-screen-resolution",label:H.DeviceScreenResolution,variant:"outlined",size:"small",value:i||"",onChange:e=>s(e.target.value),helperText:"The screen resolution of the device, e.g., 1920x1080"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-operating-system",label:H.DeviceOperatingSystem,variant:"outlined",size:"small",value:c||"",onChange:e=>d(e.target.value),helperText:"The device's operating system, e.g., MacOS, Windows"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-operating-system-version",label:H.DeviceOperatingSystemVersion,variant:"outlined",size:"small",value:p||"",onChange:e=>h(e.target.value),helperText:"The version of the device's operating system, e.g., 13.5"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-model",label:H.DeviceModel,variant:"outlined",size:"small",value:g||"",onChange:e=>y(e.target.value),helperText:"The model of the device, e.g., Pixel 6"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-brand",label:H.DeviceBrand,variant:"outlined",size:"small",value:v||"",onChange:e=>b(e.target.value),helperText:"The brand of the device, e.g., Google"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-browser",label:H.DeviceBrowser,variant:"outlined",size:"small",value:w||"",onChange:e=>x(e.target.value),helperText:"The brand or type of browser, e.g., Chrome"})),(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"device-browser-version",label:H.DeviceBrowserVersion,variant:"outlined",size:"small",value:A||"",onChange:e=>S(e.target.value),helperText:"The browser version, e.g., 136.0.7103.60"}))),!E&&(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,{variant:"h6"},"User Agent"),(0,f.Y)(l.A,null,"Provide a custom user agent string. Google Analytics will use this to derive information about the user's device, operating system, and browser. This field is ignored if device attributes are provided."),(0,f.Y)(N,{container:!0,spacing:1},(0,f.Y)(N,{item:!0,xs:12,sm:6},(0,f.Y)(u.A,{fullWidth:!0,id:"user-agent",label:H.UserAgent,variant:"outlined",size:"small",value:P||"",onChange:e=>C(e.target.value),helperText:"The user agent string identifying the client"})))))};const Um="EventBuilder",Ym={clientSwitch:Um+"-clientSwitch",unifiedParameters:Um+"-unifiedParameters",fullWidth:Um+"-fullWidth",parameterPair:Um+"-parameterPair",validateHeading:Um+"-validateHeading",parameters:Um+"-parameters",form:Um+"-form",items:Um+"-items"},zm=(0,s.Ay)("div")(e=>{let{theme:t}=e;return{["& ."+Ym.clientSwitch]:{marginBottom:t.spacing(2)},["& ."+Ym.unifiedParameters]:{},["& ."+Ym.fullWidth]:{width:"100%"},["& ."+Ym.parameterPair]:{display:"flex","& > *:not(:first-child)":{marginLeft:t.spacing(1)}},["& ."+Ym.validateHeading]:{marginTop:t.spacing(3)},["& ."+Ym.parameters]:{"&> :not(:first-child)":{marginTop:t.spacing(1)}},["& ."+Ym.form]:{maxWidth:"80ch","& h5:not(:first-of-type)":{marginTop:t.spacing(4)}},["& ."+Ym.items]:{"&> :not(:first-child)":{marginTop:t.spacing(3)},"&> :last-child":{marginTop:t.spacing(1)}}}}),Wm=(0,f.Y)(m.A,{href:j.s0.ga4MeasurementProtocol},"GA4 Measurement Protocol"),Hm=a.createContext(void 0),qm=a.createContext(!1),Gm=a.createContext(!1);var Zm=()=>{const[e,t]=a.useState(!1),{userProperties:r,addNumberUserProperty:n,addStringUserProperty:i,removeUserProperty:s,setUserPropertyName:m,setUserPropertyValue:y,setUserPropertyTimestamp:v}=ec(),{parameters:b,items:w,type:x,setType:A,eventName:S,setEventName:P,setParamName:C,setParamValue:E,addStringParam:D,addNumberParam:M,setItemParamName:O,setItemParamValue:T,removeParam:k,addItem:I,removeItem:_,addItemsParam:R,addItemNumberParam:$,addItemStringParam:V,removeItemParam:U,removeItems:Y,categories:q}=ht(),{useFirebase:G,setUseFirebase:Z,useTextBox:K,setUseTextBox:J,inputPayload:X,setInputPayload:Q,payloadObj:ee,setPayloadObj:te,payloadErrors:re,setPayloadErrors:ne,category:oe,setCategory:ae,api_secret:ie,setAPISecret:se,firebase_app_id:le,setFirebaseAppId:ue,app_instance_id:ce,setAppInstanceId:de,measurement_id:pe,setMeasurementId:me,client_id:fe,setClientId:he,user_id:ge,setUserId:ye,timestamp_micros:ve,setTimestampMicros:be,non_personalized_ads:we,setN
2onPersonalizedAds:xe}=Qu(q),Ae=a.useMemo(()=>_e(oe,G),[oe,G]),[Se,Pe]=a.useState(""),[Ce,Ee]=a.useState(""),[De,Me]=a.useState(""),[Oe,Te]=a.useState(""),[ke,Ie]=a.useState(""),[Re,$e]=a.useState(""),[Ve,Ne]=a.useState(""),[Fe,je]=a.useState(""),[Le,Be]=a.useState(""),[Ue,Ye]=a.useState(""),[ze,We]=a.useState(""),[He,qe]=a.useState(""),[Ge,Ze]=a.useState(""),[Ke,Je]=a.useState(""),[Xe,Qe]=a.useState(""),[et,tt]=a.useState(""),rt=a.useCallback(()=>{try{if(X){let e=JSON.parse(X);te(JSON.stringify(e,null,"\t")),ne("")}else ne("Empty Payload"),te({}),ne("")}catch(e){ne(e.message),te({})}},[X,ne,te]);return(0,a.useEffect)(()=>{rt()},[X,rt]),(0,f.Y)(zm,null,(0,f.Y)(l.A,{variant:"h3"},"Overview"),(0,f.Y)(l.A,{component:"span"},"The GA4 Event Builder allows you to create, validate, and send events using the ",Wm,"."),(0,f.Y)(l.A,{variant:"h4"},"Usage"),(0,f.Y)(l.A,null,"First, choose the client you are using with the toggle below. Mobile implementations should use firebase, and web implementations should use gtag.js"),(0,f.Y)(L.A,{notched:!0,shrink:!0,label:"client",className:Ym.clientSwitch},(0,f.Y)(N,{component:"label",container:!0,alignItems:"center",spacing:1},(0,f.Y)(N,{item:!0},"gtag.js"),(0,f.Y)(N,{item:!0},(0,f.Y)(F.A,{"data-testid":"use firebase",checked:G,onChange:e=>{const t=e.target.checked;Z(t),e.target.checked||J(!1);const r=_e(oe,t);r.length>0?A(r[0].type):(ae(z.Custom),A(W.CustomEvent))},name:"use firebase",color:"primary"})),(0,f.Y)(N,{item:!0},"firebase"))),(0,f.Y)(l.A,null,"After choosing a client, fill out the inputs below."),(0,f.Y)(p.A,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference#api_secret",linkTitle:"See api_secret on devsite.",value:ie||"",label:H.APISecret,id:H.APISecret,helperText:"The API secret for the property to send the event to.",onChange:se}),G?(0,f.Y)(a.Fragment,null,(0,f.Y)(p.A,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=firebase#firebase_app_id",linkTitle:"See firebase_app_id on devsite.",value:le||"",label:H.FirebaseAppID,id:H.FirebaseAppID,helperText:"The identifier for your firebase app.",onChange:ue}),(0,f.Y)(p.A,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=firebase#app_instance_id",linkTitle:"See app_instance_id on devsite.",value:ce||"",label:H.AppInstanceID,id:H.AppInstanceID,helperText:"The unique identifier for a specific Firebase installation.",onChange:de})):(0,f.Y)(a.Fragment,null,(0,f.Y)(p.A,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#measurement_id",linkTitle:"See measurement_id on devsite.",value:pe||"",label:H.MeasurementID,id:H.MeasurementID,helperText:"The identifier for your data stream.",onChange:me}),(0,f.Y)(p.A,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#client_id",linkTitle:"See client_id on devsite.",value:fe||"",label:H.ClientID,id:H.ClientID,helperText:"The unique identifier for an instance of a web client.",onChange:he})),(0,f.Y)(p.A,{href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type="+(G?"firebase":"gtag")+"#user_id",linkTitle:"See user_id on devsite.",value:ge||"",label:H.UserId,id:H.UserId,helperText:"The unique identifier for a given user.",onChange:ye}),(0,f.Y)(a.Fragment,null,(0,f.Y)(L.A,{notched:!0,shrink:!0,label:"validation method",className:"formatTab"},(0,f.Y)(N,{component:"label",container:!0,alignItems:"center",spacing:1},(0,f.Y)(N,{item:!0},"form"),(0,f.Y)(N,{item:!0},(0,f.Y)(F.A,{"data-testid":"use form",checked:K,onChange:e=>{J(e.target.checked)},name:"use form",color:"primary"})),(0,f.Y)(N,{item:!0},"text box"))),(0,f.Y)("br",null)),K&&(0,f.Y)(a.Fragment,null,(0,f.Y)(h,{required:!0,href:"https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=firebase#payload_post_body",linkTitle:"JSON Payload Documentation",value:Object.keys(ee).length>0?ee:X,label:H.Payload,onChange:e=>{Q(e),rt()}}),(0,f.Y)("br",null),(0,f.Y)("br",null),(0,f.Y)(B.pH,{small:!0,onClick:rt},"format payload"),re&&(0,f.Y)(B.pG,{tooltip:re,placement:"top"},(0,f.Y)(d.A,{style:{color:"red"}}))),!K&&(0,f.Y)("div",null,(0,f.Y)("section",{className:Ym.form},(0,f.Y)(c.A,{"data-testid":H.EventCategory,fullWidth:!0,disableClearable:!0,autoComplete:!0,autoHighlight:!0,autoSelect:!0,options:Object.values(z),getOptionLabel:e=>e,value:oe,onChange:(e,t)=>
2{ae(t);const r=_e(t,G);r.length>0?A(r[0].type):(ae(z.Custom),A(W.CustomEvent))},renderInput:e=>(0,f.Y)(u.A,(0,o.A)({},e,{label:H.EventCategory,id:H.EventCategory,size:"small",variant:"outlined",helperText:"The category for the event"}))}),x===W.CustomEvent?(0,f.Y)(u.A,{fullWidth:!0,variant:"outlined",size:"small",label:H.EventName,id:H.EventName,value:S,helperText:"The name of the event",onChange:e=>{P(e.target.value)}}):(0,f.Y)(c.A,{"data-testid":H.EventName,fullWidth:!0,disableClearable:!0,autoComplete:!0,autoHighlight:!0,autoSelect:!0,options:Ae.map(e=>e.type),getOptionLabel:e=>e,value:x,onChange:(e,t)=>{A(t)},renderInput:e=>(0,f.Y)(u.A,(0,o.A)({},e,{label:H.EventName,id:H.EventName,size:"small",variant:"outlined",helperText:(0,f.Y)(a.Fragment,null,"The name of the event.")}))}),(0,f.Y)(qu,{timestamp:ve||"",scope:j.FY.REQUEST,setTimestamp:be}),(0,f.Y)(L.A,{helpText:(0,f.Y)(a.Fragment,null,"Check to indicate events should not be used for personalized ads.")},(0,f.Y)(g.A,{checked:we,setChecked:xe,id:H.NonPersonalizedAds},H.NonPersonalizedAds))),(0,f.Y)(l.A,{variant:"h4"},"Event details"),(0,f.Y)(l.A,null,"Finally, specify the parameters to send with the event. By default, only recommended parameters for the event will appear here. Select 'Show advanced options' to add custom parameters, user properties, and to provide geographic and device information."),(0,f.Y)(g.A,{checked:e,onChange:t},"Show advanced options"),(0,f.Y)("section",{className:Ym.form},(0,f.Y)(qm.Provider,{value:e||x===W.CustomEvent},(0,f.Y)(l.A,{variant:"h5"},"Parameters"),(0,f.Y)(Xu,{removeParam:k,parameters:b,addStringParam:D,addNumberParam:M,setParamName:C,setParamValue:E,addItemsParam:void 0===w?R:void 0,setParamTimestamp:()=>{},allowTimestampOverride:!1}),void 0!==w&&(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,{variant:"h5"},"Items"),(0,f.Y)(oc,{items:w,addItem:I,removeItem:_,removeItemParam:U,addItemNumberParam:$,addItemStringParam:V,setItemParamName:O,setItemParamValue:T,removeItems:Y})),(e||void 0!==r&&0!==r.length)&&(0,f.Y)(a.Fragment,null,(0,f.Y)(l.A,{variant:"h5"},"User properties"),(0,f.Y)(Xu,{removeParam:s,parameters:r,addStringParam:i,addNumberParam:n,setParamName:m,setParamValue:y,setParamTimestamp:v,allowTimestampOverride:!0})),e&&(0,f.Y)(Gm.Provider,{value:G},(0,f.Y)(jm,{user_location_city:Se,setUserLocationCity:Pe,user_location_region_id:Ce,setUserLocationRegionId:Ee,user_location_country_id:De,setUserLocationCountryId:Me,user_location_subcontinent_id:Oe,setUserLocationSubcontinentId:Te,user_location_continent_id:ke,setUserLocationContinentId:Ie,ip_override:Re,setIpOverride:$e}),(0,f.Y)(Bm,{device_category:Ve,setDeviceCategory:Ne,device_language:Fe,setDeviceLanguage:je,device_screen_resolution:Le,setDeviceScreenResolution:Be,device_operating_system:Ue,setDeviceOperatingSystem:Ye,device_operating_system_version:ze,setDeviceOperatingSystemVersion:We,device_model:He,setDeviceModel:qe,device_brand:Ge,setDeviceBrand:Ze,device_browser:Ke,setDeviceBrowser:Je,device_browser_version:Xe,setDeviceBrowserVersion:Qe,user_agent:et,setUserAgent:tt}))))),(0,f.Y)(l.A,{variant:"h3",className:Ym.validateHeading},"Validate & Send event"),(0,f.Y)(Gm.Provider,{value:G},(0,f.Y)(Hm.Provider,{value:{type:x,clientIds:G?{app_instance_id:ce,user_id:ge}:{client_id:fe,user_id:ge},items:w,parameters:b,eventName:S,userProperties:r,timestamp_micros:(nt=parseInt(ve||"",10),isNaN(nt)?void 0:nt),non_personalized_ads:we,useTextBox:K,payloadObj:ee,instanceId:G?{firebase_app_id:le}:{measurement_id:pe},api_secret:ie,user_agent:et,ip_override:Re,user_location:{city:Se,region_id:Ce,country_id:De,subcontinent_id:Oe,continent_id:ke},device:{category:Ve,language:Fe,screen_resolution:Le,operating_system:Ue,operating_system_version:ze,model:He,brand:Ge,browser:Ke,browser_version:Xe}}},(0,f.Y)(Nm,{client_id:fe||"",user_id:ge||"",api_secret:ie||"",measurement_id:pe||"",app_instance_id:ce||"",firebase_app_id:le||"",formatPayload:rt,payloadErrors:re,useTextBox:K}))));var nt},Km=e=>(0,f.Y)(n.A,{title:"Event Builder",requireLogin:!0,pathname:e.location.pathname,description:"The GA4 Event Builder allows you to create, validate, and send events using the GA4 Measurement Protocol."},(0,f.Y)(Zm,null))}}]);
3//# sourceMappingURL=component---src-pages-ga-4-event-builder-tsx-36f0c578a169dc9c4277.js.map

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.