PageSourceSearch

https://r3.minicrm.hu/api/minicrm.js?t=20260925T12451790333150

js minicrm.hu collected 2026-10-02 02:39:14 UTC 206,003 bytes, 1 lines download raw bytes

1var MINICRM_API_URL="http://r3.minicrm.mydev/Api/";var MINICRM_STAGE_EXT="PROD";var SENTRY_WEBFORM_URL="";var SENTRY_ENVIRONMENT="test";var MINICRM_RELEASE="";var defineTmp=undefined;var definePresent=typeof define==="function"&&define.amd;if(definePresent){defineTmp=define;define=undefined}var Sentry=function(t){class n{static __initStatic(){this.id="Replay"}constructor(t){this.name=n.id,console.error("You are using new Replay() even though this bundle does not include replay.")}setupOnce(){}start(){}stop(){}flush(){}}n.__initStatic();const e=Object.prototype.toString;function r(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(t,Error)}}function i(t,n){return e.call(t)===`[object ${n}]`}function s(t){return i(t,"ErrorEvent")}function o(t){return i(t,"DOMError")}function c(t){return i(t,"String")}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return i(t,"Object")}function h(t){return"undefined"!=typeof Event&&l(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function d(t){return"number"==typeof t&&t!=t}function l(t,n){try{return t instanceof n}catch(t){return!1}}function p(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function m(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function y(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{p(r)?e.push("[VueViewModel]"):e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function v(t,n,e=!1){return!!c(t)&&(i(n,"RegExp")?n.test(t):!!c(n)&&(e?t===n:t.includes(n)))}function g(t,n=[],e=!1){return n.some(n=>v(t,n,e))}function b(t,n,e=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&l(o.originalException,Error)))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var u,a;c&&(s.exception.values=(u=_(t,n,i,o.originalException,r,s.exception.values,c,0),a=e,u.map(t=>(t.value&&(t.value=m(t.value,a)),t))))}function _(t,n,e,r,i,s,o,c){if(s.length>=e+1)return s;let u=[...s];if(l(r[i],Error)){w(o,c);const s=t(n,r[i]),a=u.length;T(s,i,a,c),u=_(t,n,e,r[i],i,[s,...u],s,a)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(l(r,Error)){w(o,c);const a=t(n,r),h=u.length;T(a,`errors[${s}]`,h,c),u=_(t,n,e,r,i,[a,...u],a,h)}}),u}function w(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:n}}function T(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function S(t){return t&&t.Math==Math?t:void 0}const E="object"==typeof globalThis&&S(globalThis)||"object"==typeof window&&S(window)||"object"==typeof self&&S(self)||"object"==typeof global&&S(global)||function(){return this}()||{};function $(){return E}function k(t,n,e){const r=e||E,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const x=$();function O(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let a;const h=Array.isArray(n)?n:n.keyAttrs,f=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&s++<r&&(a=j(e,h),!("html"===a||s>1&&o+i.length*u+a.length>=f));)i.push(a),o+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function j(t,n){const e=t,r=[];let i,s,o,u,a;if(!e||!e.tagName)return"";r.push(e.tagName.toLowerCase());const h=n&&n.length?n.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(h&&h.length)h.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&c(i))for(s=i.split(/\s+/),a=0;a<s.length;a++)r.push(`.${s[a]}`);const f=["aria-label","type","name","title","alt"];for(a=0;a<f.length;a++)o=f[a],u=e.getAttribute(o),u&&r.push(`[${o}="${u}"]`);return r.join("")}const C=["debug","info","warn","error","log","assert","trace"],I={};const R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function D(t,n=!1){const{host:e,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}@${e}${s?`:${s}`:""}/${r?`${r}/`:r}${o}
1`}function L(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function M(t){const n="string"==typeof t?function(t){const n=R.exec(t);if(!n)return void console.error(`Invalid Sentry Dsn: ${t}`);const[e,r,i="",s,o="",c]=n.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return L({host:s,pass:i,path:u,projectId:a,port:o,protocol:e,publicKey:r})}(t):L(t);if(n)return n}class N extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function A(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);"function"==typeof i&&q(i,r),t[n]=i}function P(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function q(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,P(t,"__sentry_original__",n)}catch(t){}}function H(t){return t.__sentry_original__}function U(t){if(r(t))return{message:t.message,name:t.name,stack:t.stack,...B(t)};if(h(t)){const n={type:t.type,target:F(t.target),currentTarget:F(t.currentTarget),...B(t)};return"undefined"!=typeof CustomEvent&&l(t,CustomEvent)&&(n.detail=t.detail),n}return t}function F(t){try{return n=t,"undefined"!=typeof Element&&l(n,Element)?O(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function B(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function X(t){return z(t,new Map)}function z(t,n){if(a(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=z(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach(t=>{r.push(z(t,n))}),r}return t}function W(){const t=E,n=t.crypto||t.msCrypto;let e=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(e=()=>n.getRandomValues(new Uint8Array(1))[0])}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,t=>(t^(15&e())>>t/4).toString(16))}function G(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function J(t){const{message:n,event_id:e}=t;if(n)return n;const r=G(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function K(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=n||""),s.type||(s.type=e||"Error")}function V(t,n){const e=G(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function Y(t){if(t&&t.__sentry_captured__)return!0;try{P(t,"__sentry_captured__",!0)}catch(t){}return!1}function Q(t){return Array.isArray(t)?t:[t]}const Z=/\(error: (.*)\)/,tt=/captureMessage|captureException/;function nt(...t){const n=t.sort((t,n)=>t[0]-n[0]).map(t=>t[1]);return(t,e=0)=>{const r=[],i=t.split("\n");for(let t=e;t<i.length;t++){const e=i[t];if(e.length>1024)continue;const s=Z.test(e)?e.replace(Z,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){r.push(n);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop();n.reverse(),tt.test(n[n.length-1].function||"")&&(n.pop(),tt.test(n[n.length-1].function||"")&&n.pop());return n.slice(0,50).map(t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"}))}(r)}}const et="<anonymous>";function rt(t){try{return t&&"function"==typeof t&&t.name||et}catch(t){return et}}const it=$();function st(){if(!("fetch"in it))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function ot(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const ct=$();const ut=$(),at={},ht={};function ft(t){if(!ht[t])switch(ht[t]=!0,t){case"console":!function(){if(!("console"in E))return;
1C.forEach(function(t){t in E.console&&A(E.console,t,function(n){return I[t]=n,function(...n){lt("console",{args:n,level:t});const e=I[t];e&&e.apply(E.console,n)}})})}();break;case"dom":!function(){if(!ut.document)return;const t=lt.bind(null,"dom"),n=_t(t,!0);ut.document.addEventListener("click",n,!1),ut.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(n=>{const e=ut[n]&&ut[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(A(e,"addEventListener",function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[e]=s[e]||{refCount:0};if(!o.handler){const r=_t(t);o.handler=r,n.call(this,e,r,i)}o.refCount++}catch(t){}return n.call(this,e,r,i)}}),A(e,"removeEventListener",function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},s=i[n];s&&(s.refCount--,s.refCount<=0&&(t.call(this,n,s.handler,r),s.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}}))})}();break;case"xhr":!function(){if(!ut.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;A(t,"open",function(t){return function(...n){const e=Date.now(),r=n[1],i=this.__sentry_xhr_v2__={method:c(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};c(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const t=this.__sentry_xhr_v2__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}lt("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:e,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?A(this,"onreadystatechange",function(t){return function(...n){return s(),t.apply(this,n)}}):this.addEventListener("readystatechange",s),A(this,"setRequestHeader",function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v2__;return i&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}}),t.apply(this,n)}}),A(t,"send",function(t){return function(...n){const e=this.__sentry_xhr_v2__;return e&&void 0!==n[0]&&(e.body=n[0]),lt("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}();break;case"fetch":!function(){if(!function(){if(!st())return!1;if(ot(it.fetch))return!0;let t=!1;const n=it.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=ot(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}())return;A(E,"fetch",function(t){return function(...n){const{method:e,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:mt(n),method:pt(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:mt(n),method:pt(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return lt("fetch",{...i}),t.apply(E,n).then(t=>(lt("fetch",{...i,endTimestamp:Date.now(),response:t}),t),t=>{throw lt("fetch",{...i,endTimestamp:Date.now(),error:t}),t})}})}();break;case"history":!function(){if(!function(){const t=ct.chrome,n=t&&t.app&&t.app.runtime,e="history"in ct&&!!ct.history.pushState&&!!ct.history.replaceState;return!n&&e}())return;const t=ut.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=yt,n=String(e);yt=n,lt("history",{from:t,to:n})}return t.apply(this,n)}}ut.onpopstate=function(...n){const e=ut.location.href,r=yt;if(yt=e,lt("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},A(ut.history,"pushState",n),A(ut.history,"replaceState",n)}();break;case"error":wt=ut.onerror,ut.onerror=function(t,n,e,r,i){return lt("error",{column:r,error:i,line:e,msg:t,url:n}),!(!wt||wt.__SENTRY_LOADER__)&&wt.apply(this,arguments)},ut.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Tt=ut.onunhandledrejection,ut.onunhandledrejection=function(t){return lt("unhandledrejection",t),!(Tt&&!Tt.__SENTRY_LOADER__)||Tt.apply(this,arguments)},ut.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}function dt(t,n){at[t]=at[t]||[],at[t].push(n),ft(t)}function lt(t,n){if(t&&at[t])for(const e of at[t]||[])try{e(n)}catch(t){}}function pt(t,n){return!!t&&"object"==typeof t&&!!t[n]}function mt(t){return"string"==typeof t?t:t?pt(t,"url")?t.url:t.toString?t.toString():"":""}let yt;let vt,gt,bt;function _t(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;P(e,"_sentryCaptured",!0),r&&!r._sentryId&&P(r,"_sentryId",W());const i="keypress"===e.type?"input":e.type;(function(t){if(t.type!==gt)return!1;try{if(!t.target||t.target._sentryId!==bt)return!1}catch(t){}return!0})(e)||(t({event:e,name:i,global:n}),gt=e.type,bt=r?r._sentryId:void 0),clearTimeout(vt),vt=ut.setTimeout(()=>{bt=void 0,gt=void 0},1e3)}}let wt=null;let Tt=null;function St(t,n=100,e=1/0){try{return $t("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Et(t,n=3,e=102400){const r=St(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?Et(t,n-1,e):r;var i}function $t(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];
1return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1},function(e){if(t)n.delete(e);else for(let t=0;t<n.length;t++)if(n[t]===e){n.splice(t,1);break}}]}()){const[s,o]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!d(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.i)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(p(n))return"[VueViewModel]";if(a(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${rt(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===u)return c.replace("object ","");if(s(n))return"[Circular ~]";const h=n;if(h&&"function"==typeof h.toJSON)try{return $t("",h.toJSON(),u-1,r,i)}catch(t){}const f=Array.isArray(n)?[]:{};let l=0;const m=U(n);for(const t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=m[t];f[t]=$t(t,n,u-1,r,i),l++}return o(n),f}var kt;function xt(t){return new jt(n=>{n(t)})}function Ot(t){return new jt((n,e)=>{e(t)})}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(kt||(kt={}));class jt{constructor(t){jt.prototype.__init.call(this),jt.prototype.__init2.call(this),jt.prototype.__init3.call(this),jt.prototype.__init4.call(this),this.o=kt.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,n){return new jt((e,r)=>{this.u.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.p()})}catch(t){return this.then(t=>t,t)}finally(t){return new jt((n,e)=>{let r,i;return this.then(n=>{i=!1,r=n,t&&t()},n=>{i=!0,r=n,t&&t()}).then(()=>{i?e(r):n(r)})})}__init(){this.h=t=>{this.m(kt.RESOLVED,t)}}__init2(){this.l=t=>{this.m(kt.REJECTED,t)}}__init3(){this.m=(t,n)=>{this.o===kt.PENDING&&(f(n)?n.then(this.h,this.l):(this.o=t,this.v=n,this.p()))}}__init4(){this.p=()=>{if(this.o===kt.PENDING)return;const t=this.u.slice();this.u=[],t.forEach(t=>{t[0]||(this.o===kt.RESOLVED&&t[1](this.v),this.o===kt.REJECTED&&t[2](this.v),t[0]=!0)})}}}function Ct(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.length<t))return Ot(new N("Not adding Promise because buffer limit was reached."));const i=r();return-1===n.indexOf(i)&&n.push(i),i.then(()=>e(i)).then(null,()=>e(i).then(null,()=>{})),i},drain:function(t){return new jt((e,r)=>{let i=n.length;if(!i)return e(!0);const s=setTimeout(()=>{t&&t>0&&e(!1)},t);n.forEach(t=>{xt(t).then(()=>{--i||(clearTimeout(s),e(!0))},r)})})}}}function It(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}const Rt=["fatal","error","warning","log","info","debug"];const Dt=$(),Lt={nowSeconds:()=>Date.now()/1e3};const Mt=function(){const{performance:t}=Dt;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),Nt=void 0===Mt?Lt:{nowSeconds:()=>(Mt.timeOrigin+Mt.now())/1e3},At=Lt.nowSeconds.bind(Lt),Pt=Nt.nowSeconds.bind(Nt),qt=(()=>{const{performance:t}=Dt;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,s=i<n,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+e-r):n;return s||c<n?i<=c?t.timeOrigin:o:r})(),Ht="baggage",Ut="sentry-",Ft=/^sentry-/;function Bt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((t,[n,e],r)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,s=0===r?i:`${t},${i}`;return s.length>8192?t:s},"")}(Object.entries(t).reduce((t,[n,e])=>(e&&(t[`sentry-${n}`]=e),t),{}))}function Xt(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[n,e])=>(t[n]=e,t),{})}const zt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Wt(t,n){const e=function(t){if(!t)return;const n=t.match(zt);
1if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=function(t){if(!c(t)&&!Array.isArray(t))return;let n={};if(Array.isArray(t))n=t.reduce((t,n)=>({...t,...Xt(n)}),{});else{if(!t)return;n=Xt(t)}const e=Object.entries(n).reduce((t,[n,e])=>(n.match(Ft)&&(t[n.slice(Ut.length)]=e),t),{});return Object.keys(e).length>0?e:void 0}(n),{traceId:i,parentSpanId:s,parentSampled:o}=e||{},u={traceId:i||W(),spanId:W().substring(16),sampled:o};return s&&(u.parentSpanId=s),r&&(u.dsc=r),{traceparentData:e,dynamicSamplingContext:r,propagationContext:u}}function Gt(t=W(),n=W().substring(16),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function Jt(t,n=[]){return[t,n]}function Kt(t,n){const[e,r]=t;return[e,[...r,n]]}function Vt(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Yt(t,n){return(n||new TextEncoder).encode(t)}function Qt(t,n){const[e,r]=t;let i=JSON.stringify(e);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[Yt(i,n),t]:i.push("string"==typeof t?Yt(t,n):t)}for(const t of r){const[n,e]=t;if(s(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(St(e))}s(t)}}return"string"==typeof i?i:function(t){const n=t.reduce((t,n)=>t+n.length,0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(i)}function Zt(t,n){const e="string"==typeof t.data?Yt(t.data,n):t.data;return[X({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const tn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",statsd:"unknown"};function nn(t){return tn[t]}function en(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function rn(t,{statusCode:n,headers:e},r=Date.now()){const i={...t},s=e&&e["x-sentry-rate-limits"],o=e&&e["retry-after"];if(s)for(const t of s.trim().split(",")){const[n,e]=t.split(":",2),s=parseInt(n,10),o=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))i[t]=r+o;else i.all=r+o}else o?i.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(o,r):429===n&&(i.all=r+6e4);return i}function sn(t,n){const e={type:n.name||n.constructor.name,value:n.message},r=function(t,n){return t(n.stack||"",1)}(t,n);return r.length&&(e.stacktrace={frames:r}),e}const on="production";function cn(){return k("globalEventProcessors",()=>[])}function un(t){cn().push(t)}function an(t,n,e,r=0){return new jt((i,s)=>{const o=t[r];if(null===n||"function"!=typeof o)i(n);else{const c=o({...n},e);f(c)?c.then(n=>an(t,n,e,r+1).then(i)).then(null,s):an(t,c,e,r+1).then(i).then(null,s)}})}function hn(t){const n=Pt(),e={sid:W(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return X({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&fn(e,t),e}function fn(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Pt(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:W()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}class dn{constructor(){this.g=!1,this._=[],this.T=[],this.S=[],this.k=[],this.O={},this.j={},this.C={},this.I={},this.R={},this.D=ln()}static clone(t){const n=new dn;return t&&(n.S=[...t.S],n.j={...t.j},n.C={...t.C},n.I={...t.I},n.O=t.O,n.L=t.L,n.M=t.M,n.N=t.N,n.A=t.A,n.P=t.P,n.T=[...t.T],n.q=t.q,n.k=[...t.k],n.R={...t.R},n.D={...t.D}),n}addScopeListener(t){this._.push(t)}addEventProcessor(t){return this.T.push(t),this}setUser(t){return this.O=t||{},this.N&&fn(this.N,{user:t}),this.H(),this}getUser(){return this.O}getRequestSession(){return this.q}setRequestSession(t){return this.q=t,this}setTags(t){return this.j={...this.j,...t},this.H(),this}setTag(t,n){return this.j={...this.j,[t]:n},this.H(),this}setExtras(t){return this.C={...this.C,...t},this.H(),this}setExtra(t,n){return this.C={...this.C,[t]:n},this.H(),this}setFingerprint(t){return this.P=t,this.H(),this}setLevel(t){return this.L=t,this.H(),this}setTransactionName(t){return this.A=t,this.H(),this}setContext(t,n){return null===n?delete this.I[t]:this.I[t]=n,this.H(),this}setSpan(t){return this.M=t,this.H(),this}getSpan(){return this.M}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.N=t:delete this.N,this.H(),this}getSession(){return this.N}update(t){if(!t)return this;if("function"==typeof t){const n=t(this);return n instanceof dn?n:this}return t instanceof dn?(this.j={...this.j,...t.j},this.C={...this.C,...t.C},this.I={...this.I,...t.I},t.O&&Object.keys(t.O).length&&(this.O=t.O),t.L&&(this.L=t.L),t.P&&(this.P=t.P),t.q&&(this.q=t.q),t.D&&(this.D=t.D)):a(t)&&(t=t,this.j={...this.j,...t.tags},this.C={...this.C,...t.extra},this.I={...this.I,...t.contexts},t.user&&(this.O=t.user),t.level&&(this.L=t.level),t.fingerprint&&(this.P=t.fingerprint),t.requestSession&&(this.q=t.requestSession),t.propagationContext&&(this.D=t.propagationContext)),this}clear(){return this.S=[],this.j={},this.C={},this.O={},this.I={},this.L=void 0,this.A=void 0,this.P=void 0,this.q=void 0,this.M=void 0,this.N=void 0,this.H(),this.k=[],this.D=ln(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:At(),...t},i=this.S;return i.push(r),this.S=i.length>e?i.slice(-e):i,this.H(),this}getLastBreadcrumb(){return this.S[this.S.length-1]}clearBreadcrumbs(){return this.S=[],this.H(),this}addAttachment(t){return this.k.push(t),this}getAttachments(){return this.k}clearAttachments(){return this.k=[],this}applyToEvent(t,n={},e){if(this.C&&Object.keys(this.C).length&&(t.extra={...this.C,...t.extra}),this.j&&Object.keys(this.j).length&&(t.tags={...this.j,...t.tags}),this.O&&Object.keys(this.O).length&&(t.user={...this.O,...t.user}),this.I&&Object.keys(this.I).length&&(t.contexts={...this.I,...t.contexts}),this.L&&(t.level=this.L),this.A&&(t.transaction=this.A),this.M){t.contexts={trace:this.M.getTraceContext(),...t.contexts};const n=this.M.transaction;if(n){t.sdkProcessingMetadata={dynamicSamplingContext:n.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const e=n.name;e&&(t.tags={transaction:e,...t.tags})}}this.U(t);const r=this.F(),i=[...t.breadcrumbs||[],...r];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this.R,prop
1agationContext:this.D},an([...e||[],...cn(),...this.T],t,n)}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}setPropagationContext(t){return this.D=t,this}getPropagationContext(){return this.D}F(){return this.S}H(){this.g||(this.g=!0,this._.forEach(t=>{t(this)}),this.g=!1)}U(t){t.fingerprint=t.fingerprint?Q(t.fingerprint):[],this.P&&(t.fingerprint=t.fingerprint.concat(this.P)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function ln(){return{traceId:W(),spanId:W().substring(16)}}const pn=100;class mn{constructor(t,n=new dn,e=4){this.B=e,this.X=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this.B<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=dn.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.X}getStackTop(){return this.X[this.X.length-1]}captureException(t,n){const e=this.W=n&&n.event_id?n.event_id:W(),r=new Error("Sentry syntheticException");return this.G((i,s)=>{i.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},s)}),e}captureMessage(t,n,e){const r=this.W=e&&e.event_id?e.event_id:W(),i=new Error(t);return this.G((s,o)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},o)}),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:W();return t.type||(this.W=e),this.G((r,i)=>{r.captureEvent(t,{...n,event_id:e},i)}),e}lastEventId(){return this.W}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=pn}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:At(),...t}
1,c=i?function(t){if(!("console"in E))return t();const n=E.console,e={},r=Object.keys(I);r.forEach(t=>{const r=I[t];e[t]=n[t],n[t]=r});try{return t()}finally{r.forEach(t=>{n[t]=e[t]})}}(()=>i(o,n)):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=vn(this);try{t(this)}finally{vn(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){return this.J("startTransaction",t,n)}traceHeaders(){return this.J("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.K()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&function(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),fn(t,e)}(n),this.K(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=on}=e&&e.getOptions()||{},{userAgent:s}=E.navigator||{},o=hn({release:r,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&fn(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}K(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}G(t){const{scope:n,client:e}=this.getStackTop();e&&t(e,n)}J(t,...n){const e=yn().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function yn(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function vn(t){const n=yn(),e=bn(n);return _n(n,t),e}function gn(){const t=yn();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=yn()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!bn(t).isOlderThan(4)||_n(t,
1new mn);var n;return bn(t)}(t)}function bn(t){return k("hub",()=>new mn,t)}function _n(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function wn(t){return(t||gn()).getScope().getTransaction()}let Tn=!1;function Sn(){const t=wn();if(t){const n="internal_error";t.setStatus(n)}}Sn.tag="sentry_tracingErrorCallback";class En{constructor(t=1e3){this.V=t,this.spans=[]}add(t){this.spans.length>this.V?t.spanRecorder=void 0:this.spans.push(t)}}class $n{constructor(t={}){this.traceId=t.traceId||W(),this.spanId=t.spanId||W().substring(16),this.startTimestamp=t.startTimestamp||Pt(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const n=new $n({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==n&&this.setStatus(n),this}setName(t){this.description=t}isSuccess(){return"ok"===this.status}finish(t){this.endTimestamp="number"==typeof t?t:Pt()}toTraceparent(){return Gt(this.traceId,this.spanId,this.sampled)}toContext(){return X({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return X({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return X({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function kn(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:s}=e&&e.getUser()||{},o=X({environment:r.environment||on,release:r.release,user_segment:s,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",o),o}class xn extends $n{constructor(t,n){super(t),delete this.description,this.Y={},this.I={},this.Z=n||gn(),this.tt=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this.nt=t.trimEnd,this.transaction=this;const e=this.metadata.dynamicSamplingContext;e&&(this.et={...e})}get name(){return this.tt}set name(t){this.setName(t)}setName(t,n="custom"){this.tt=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new En(t)),this.spanRecorder.add(this)}setContext(t,n){null===n?delete this.I[t]:this.I[t]=n}setMeasurement(t,n,e=""){this.Y[t]={value:n,unit:e}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){const n=this.rt(t);if(n)return this.Z.captureEvent(n)}toContext(){return X({...super.toContext(),name:this.name,trimEnd:this.nt})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this.nt=t.trimEnd,this}getDynamicSamplingContext(){if(this.et)return this.et;const t=this.Z||gn(),n=t.getClient();if(!n)return{};const e=t.getScope(),r=kn(this.traceId,n,e),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);const s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(t){this.Z=t}rt(t){if(void 0!==this.endTimestamp)return;
1this.name||(this.name="<unlabeled transaction>"),super.finish(t);const n=this.Z.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),!0!==this.sampled)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const e=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&t.endTimestamp):[];this.nt&&e.length>0&&(this.endTimestamp=e.reduce((t,n)=>t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t).endTimestamp);const r=this.metadata,i={contexts:{...this.I,trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this.Y).length>0&&(i.measurements=this.Y),i}}const On={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},jn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Cn extends 
1En{constructor(t,n,e,r){super(r),this.it=t,this.st=n,this.transactionSpanId=e}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp="number"==typeof n?n:Pt(),this.st(t.spanId)},void 0===t.endTimestamp&&this.it(t.spanId)),super.add(t)}}class In extends xn{constructor(t,n,e=On.idleTimeout,r=On.finalTimeout,i=On.heartbeatInterval,s=!1){super(t,n),this.ot=n,this.ct=e,this.ut=r,this.ht=i,this.ft=s,this.activities={},this.dt=0,this.lt=!1,this.yt=!1,this.vt=[],this.gt=jn[4],s&&n.configureScope(t=>t.setSpan(this)),this.bt(),setTimeout(()=>{this.lt||(this.setStatus("deadline_exceeded"),this.gt=jn[3],this.finish())},this.ut)}finish(t=Pt()){if(this.lt=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this.gt),this.spanRecorder){for(const n of this.vt)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"));const e=n.startTimestamp<t,r=(this.ut+this.ct)/1e3,i=n.endTimestamp-this.startTimestamp<r;return e&&i})}if(this.ft){const t=this.ot.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this.vt.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=t=>{this.lt||this.it(t)},e=t=>{this.lt||this.st(t)};this.spanRecorder=new Cn(n,e,this.spanId,t),this._t()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this.yt=!1===n,this.wt&&(clearTimeout(this.wt),this.wt=void 0,0===Object.keys(this.activities).length&&this.yt&&(this.gt=jn[5],this.finish(t)))}setFinishReason(t){this.gt=t}bt(t){this.cancelIdleTimeout(),this.wt=setTimeout(()=>{this.lt||0!==Object.keys(this.activities).length||(this.gt=jn[1],this.finish(t))},this.ct)}it(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.yt}),this.activities[t]=!0}st(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){const t=Pt();this.yt?(this.gt=jn[5],this.finish(t)):this.bt(t+this.ct/1e3)}}Tt(){if(this.lt)return;const t=Object.keys(this.activities).join("");t===this.St?this.dt++:this.dt=1,this.St=t,this.dt>=3?(this.setStatus("deadline_exceeded"),this.gt=jn[0],this.finish()):this._t()}_t(){setTimeout(()=>{this.Tt()},this.ht)}}function Rn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=gn().getClient(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function Dn(t,n,e){if(!Rn(n))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof n.tracesSampler?(r=n.tracesSampler(e),t.setMetadata({sampleRate:Number(r)})):void 0!==e.parentSampled?r=e.parentSampled:void 0!==n.tracesSampleRate?(r=n.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),function(t){if(d(t)||"number"!=typeof t&&"boolean"!=typeof t)return!1;if(t<0||t>1)return!1;return!0}(r)&&r?(t.sampled=Math.random()<r,t.sampled,t):(t.sampled=!1,t)}function Ln(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function Mn(t,n){const e=this.getClient(),r=e&&e.getOptions()||{};(r.instrumenter||"sentry")!==(t.instrumenter||"sentry")&&(t.sampled=!1);let i=new xn(t,this);return i=Dn(i,r,{parentSampled:t.parentSampled,transactionContext:t,...n}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),e&&e.emit&&e.emit("startTransaction",i),i}function Nn(t,n,e,r,i,s,o){const c=t.getClient(),u=c&&c.getOptions()||{};let a=new In(n,t,e,r,o,i);return a=Dn(a,u,{parentSampled:n.parentSampled,transactionContext:n,...s}),a.sampled&&a.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",a),a}function An(){const t=yn();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Mn),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Ln),Tn||(Tn=!0,dt("error",Sn),dt("unhandledrejection",Sn)))}function Pn(){return gn().getScope().getSpan()}function qn(t,n,e){if(Rn())return n?n.startChild(e):t.startTransaction(e)}function Hn(t){const n={...t};return void 0!==n.name&&void 0===n.description&&(n.description=n.name),n}function captureException(t,n){return gn().captureException(t,{captureContext:n})}function Un(t){gn().withScope(t)}function Fn(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Bn(t,n){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");var e}function Xn(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.Et?n.Et.sdk:void 0;return e||`${function(t){return`${Fn(t)}${t.projectId}/envelope/`}(t)}?${Bn(t,r)}`}function zn(t,n,e,r){const i=en(e),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const o=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:D(r)},...i&&{trace:X({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return Jt(o,[[{type:s},t]])}const Wn=[];function Gn(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;
1n.forEach(t=>{t.isDefaultInstance=!0}),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?Q(e(n)):n;const i=function(t){const n={};return t.forEach(t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)}),Object.keys(n).map(t=>n[t])}(r),s=function(t,n){for(let e=0;e<t.length;e++)if(!0===n(t[e]))return e;return-1}(i,t=>"Debug"===t.name);if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}function Jn(t,n,e){if(e[n.name]=n,-1===Wn.indexOf(n.name)&&(n.setupOnce(un,gn),Wn.push(n.name)),t.on&&"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",(n,r)=>e(n,r,t))}if(t.addEventProcessor&&"function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}}function Kn(t,n,e,r,i){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=t,c={...n,event_id:n.event_id||e.event_id||W(),timestamp:n.timestamp||At()},u=e.integrations||t.integrations.map(t=>t.name);!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:s=250}=n;"environment"in t||(t.environment="environment"in n?e:on);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=m(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=m(o.value,s));const c=t.request;c&&c.url&&(c.url=m(c.url,s))}(c,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(c,u),void 0===n.type&&function(t,n){const e=E._sentryDebugIds;if(!e)return;let r;const i=Vn.get(n);i?r=i:(r=new Map,Vn.set(n,r));const s=Object.keys(e).reduce((t,i)=>{let s;const o=r.get(i);o?s=o:(s=n(i),r.set(i,s));for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.filename){t[r.filename]=e[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=s[t.filename])})})}catch(t){}}(c,t.stackParser);let a=r;e.captureContext&&(a=dn.clone(a).update(e.captureContext));let h=xt(c);const f=i&&i.getEventProcessors?i.getEventProcessors():[];if(a){if(a.getAttachments){const t=[...e.attachments||[],...a.getAttachments()];t.length&&(e.attachments=t)}h=a.applyToEvent(c,e,f)}else h=an([...f,...cn()],c,e);return h.then(t=>(t&&function(t){const n={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.keys(n).forEach(t=>{e.push({type:"sourcemap",code_file:t,debug_id:n[t]})})}(t),"number"==typeof s&&s>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:St(t.data,n,e)}}))},...t.user&&{user:St(t.user,n,e)},...t.contexts&&{contexts:St(t.contexts,n,e)},...t.extra&&{extra:St(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=St(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map(t=>(t.data&&(t.data=St(t.data,n,e)),t)));return r}(t,s,o):t))}const Vn=new WeakMap;function Yn(t){return void 0===t.type}function Qn(t){return"transaction"===t.type}function Zn(t,n,e=Ct(t.bufferSize||30)){let r={};function i(i){const s=[];if(Vt(i,(n,e)=>{const i=nn(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=te(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(n)}),0===s.length)return xt();const o=Jt(i[0],s),c=n=>{Vt(o,(e,r)=>{const i=te(e,r);t.recordDroppedEvent(n,nn(r),i)})};return e.add(()=>n({body:Qt(o,t.textEncoder)}).then(t=>(r=rn(r,t),t),t=>{throw c("network_error"),t})).then(t=>t,t=>{if(t instanceof N)return c("queue_overflow"),xt();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function te(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const ne="7.78.0";let ee;class re{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=re.id}setupOnce(){ee=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=H(this)||this;return ee.apply(n,t)}}catch(t){}}}re.__initStatic();const ie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],se=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class oe{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=oe.id,this.$t=t}setupOnce(t,n){}processEvent(t,n,e){const r=e.getOptions(),i=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:ie],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:se],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(this.$t,r);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;
1if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);let e;try{e=t.exception.values[t.exception.values.length-1]}catch(t){}e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`));return n}(t).some(t=>g(t,n))}(t,n.ignoreErrors))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&g(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=ce(t);return!!e&&g(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=ce(t);return!e||g(e,n)}(t,n.allowUrls))return!0;return!1}(t,i)?null:t}}function ce(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}oe.__initStatic();class ue{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.kt=t.key||"cause",this.xt=t.limit||5,this.name=ue.id}setupOnce(){}preprocessEvent(t,n,e){const r=e.getOptions();b(sn,r.stackParser,r.maxValueLength,this.kt,this.xt,t,n)}}ue.__initStatic();var ae=Object.freeze({__proto__:null,FunctionToString:re,InboundFilters:oe,LinkedErrors:ue});const he=E;const fe=(t,n,e)=>{let r,i;return s=>{n.value>=0&&(s||e)&&(i=n.value-(r||0),(i||void 0===r)&&(r=n.value,n.delta=i,t(n)))}},de=()=>he.__WEB_VITALS_POLYFILL__?he.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=he.performance.timing,n=he.performance.navigation.type,e={entryType:"navigation",startTime:0,type:2==n?"back_forward":1===n?"reload":"navigate"};for(const n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e})()):he.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],le=()=>{const t=de();return t&&t.activationStart||0},pe=(t,n)=>{const e=de();let r="navigate";return e&&(r=he.document.prerendering||le()>0?"prerender":e.type.replace(/_/g,"-")),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},me=(t,n,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{n(t.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},e||{})),r}}catch(t){}},ye=(t,n)=>{const e=r=>{"pagehide"!==r.type&&"hidden"!==he.document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)};let ve=-1;const ge=()=>(ve<0&&(ve="hidden"!==he.document.visibilityState||he.document.prerendering?1/0:0,ye(({timeStamp:t})=>{ve=t},!0)),{get firstHiddenTime(){return ve}}),be={},_e={},we={};let Te,Se,Ee;function $e(t,n){return Ie(t,n),we[t]||(!function(t){const n={};"event"===t&&(n.durationThreshold=0);me(t,n=>{ke(t,{entries:n})},n)}(t),we[t]=!0),Re(t,n)}function ke(t,n){const e=_e[t];if(e&&e.length)for(const t of e)try{t(n)}catch(t){}}function xe(){(t=>{const n=pe("CLS",0);let e,r=0,i=[];const s=t=>{t.forEach(t=>{if(!t.hadRecentInput){const s=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-s.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e())}})},o=me("layout-shift",s);if(o){e=fe(t,n);const r=()=>{s(o.takeRecords()),e(!0)};ye(r)}})(t=>{ke("cls",{metric:t}),Te=t})}function Oe(){(t=>{const n=ge(),e=pe("FID");let r;const i=t=>{t.startTime<n.firstHiddenTime&&(e.value=t.processingStart-t.startTime,e.entries.push(t),r(!0))},s=t=>{t.forEach(i)},o=me("first-input",s);r=fe(t,e),o&&ye(()=>{s(o.takeRecords()),o.disconnect()},!0)})(t=>{ke("fid",{metric:t}),Se=t})}function je(){(t=>{const n=ge(),e=pe("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-le(),0);t<n.firstHiddenTime&&(e.value=t,e.entries=[i],r())}},s=me("largest-contentful-paint",i);if(s){r=fe(t,e);const n=()=>{be[e.id]||(i(s.takeRecords()),s.disconnect(),be[e.id]=!0,r(!0))};["keydown","click"].forEach(t=>{addEventListener(t,n,{once:!0,capture:!0})}),ye(n,!0)}})(t=>{ke("lcp",{metric:t}),Ee=t})}function Ce(t,n,e,r){return Ie(t,n),we[t]||(e(),we[t]=!0),r&&n({metric:r}),Re(t,n)}function Ie(t,n){_e[t]=_e[t]||[],_e[t].push(n)}function Re(t,n){return()=>{const e=_e[t];if(!e)return;const r=e.indexOf(n);-1!==r&&e.splice(r,1)}}function De(t){return"number"==typeof t&&isFinite(t)}
1function Le(t,{startTimestamp:n,...e}){return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...e})}function Me(t){return t/1e3}function Ne(){return he&&he.addEventListener&&he.performance}let Ae,Pe,qe=0,He={};function Ue(){const t=Ne();if(t&&qt){t.mark&&he.performance.mark("sentry-tracing-init");const n=Ce("fid",({metric:t})=>{const n=t.entries.pop();if(!n)return;const e=Me(qt),r=Me(n.startTime);He.fid={value:t.value,unit:"millisecond"},He["mark.fid"]={value:e+r,unit:"second"}},Oe,Se),e=function(t){return Ce("cls",t,xe,Te)}(({metric:t})=>{const n=t.entries.pop();n&&(He.cls={value:t.value,unit:""},Pe=n)}),r=function(t){return Ce("lcp",t,je,Ee)}(({metric:t})=>{const n=t.entries.pop();n&&(He.lcp={value:t.value,unit:"millisecond"},Ae=n)});return()=>{n(),e(),r()}}return()=>{}}function Fe(t){const n=Ne();if(!n||!he.performance.getEntries||!qt)return;const e=Me(qt),r=n.getEntries();let i,s;if(r.slice(qe).forEach(n=>{const r=Me(n.startTime),o=Me(n.duration);if(!("navigation"===t.op&&e+r<t.startTimestamp))switch(n.entryType){case"navigation":!function(t,n,e){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Be(t,n,r,e)}),Be(t,n,"secureConnection",e,"TLS/SSL","connectEnd"),Be(t,n,"fetch",e,"cache","domainLookupStart"),Be(t,n,"domainLookup",e,"DNS"),function(t,n,e){Le(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:e+Me(n.requestStart),endTimestamp:e+Me(n.responseEnd)}),Le(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:e+Me(n.responseStart),endTimestamp:e+Me(n.responseEnd)})}(t,n,e)}(t,n,e),i=e+Me(n.responseStart),s=e+Me(n.requestStart);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,i){const s=i+e,o=s+r;Le(t,{description:n.name,endTimestamp:o,op:n.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(t,n,r,o,e);const i=ge(),s=n.startTime<i.firstHiddenTime;"first-paint"===n.name&&s&&(He.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&s&&(He.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":{const i=n.name.replace(he.location.origin,"");!function(t,n,e,r,i,s){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;const o={};"transferSize"in n&&(o["http.response_transfer_size"]=n.transferSize);"encodedBodySize"in n&&(o["http.response_content_length"]=n.encodedBodySize);"decodedBodySize"in n&&(o["http.decoded_response_content_length"]=n.decodedBodySize);"renderBlockingStatus"in n&&(o["resource.render_blocking_status"]=n.renderBlockingStatus);const c=s+r;Le(t,{description:e,endTimestamp:c+i,op:n.initiatorType?`resource.${n.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(t,n,i,r,o,e);break}}}),qe=Math.max(r.length-1,0),function(t){const n=he.navigator;if(!n)return;const e=n.connection;e&&(e.effectiveType&&t.setTag("effectiveConnectionType",e.effectiveType),e.type&&t.setTag("connectionType",e.type),De(e.rtt)&&(He["connection.rtt"]={value:e.rtt,unit:"millisecond"}));De(n.deviceMemory)&&t.setTag("deviceMemory",`${n.deviceMemory} GB`);De(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(He.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=i&&(He["ttfb.requestTime"]={value:1e3*(i-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach(n=>{if(!He[n]||e>=t.startTimestamp)return;const r=He[n].value,i=e+Me(r),s=Math.abs(1e3*(i-t.startTimestamp));He[n].value=s});const n=He["mark.fid"];n&&He.fid&&(Le(t,{description:"first input delay",endTimestamp:n.value+Me(He.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:n.value}),delete He["mark.fid"]),"fcp"in He||delete He.cls,Object.keys(He).forEach(n=>{t.setMeasurement(n,He[n].value,He[n].unit)}),function(t){Ae&&(Ae.element&&t.setTag("lcp.element",O(Ae.element)),Ae.id&&t.setTag("lcp.id",Ae.id),Ae.url&&t.setTag("lcp.url",Ae.url.trim().slice(0,200)),t.setTag("lcp.size",Ae.size));
1Pe&&Pe.sources&&Pe.sources.forEach((n,e)=>t.setTag(`cls.source.${e+1}`,O(n.node)))}(t)}Ae=void 0,Pe=void 0,He={}}function Be(t,n,e,r,i,s){const o=s?n[s]:n[`${e}End`],c=n[`${e}Start`];c&&o&&Le(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||e,startTimestamp:r+Me(c),endTimestamp:r+Me(o)})}const Xe=["localhost",/^\/(?!\/)/],ze={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Xe,tracePropagationTargets:Xe};function We(t){const{traceFetch:n,traceXHR:e,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:ze.traceFetch,traceXHR:ze.traceXHR,...t},c="function"==typeof s?s:t=>!0,u=t=>function(t,n){return g(t,n||Xe)}(t,r||i),a={};n&&dt("fetch",t=>{const n=function(t,n,e,r){if(!Rn()||!t.fetchData)return;const i=n(t.fetchData.url);if(t.endTimestamp&&i){const n=t.fetchData.__span;if(!n)return;const e=r[n];if(e){if(t.response){e.setHttpStatus(t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length"),r=parseInt(n);r>0&&e.setData("http.response_content_length",r)}else t.error&&e.setStatus("internal_error");e.finish(),delete r[n]}return}const s=gn(),o=s.getScope(),c=s.getClient(),u=o.getSpan(),{method:a,url:h}=t.fetchData,f=i&&u?u.startChild({data:{url:h,type:"fetch","http.method":a},description:`${a} ${h}`,op:"http.client",origin:"auto.http.browser"}):void 0;f&&(t.fetchData.__span=f.spanId,r[f.spanId]=f);if(e(t.fetchData.url)&&c){const n=t.args[0];t.args[1]=t.args[1]||{};const e=t.args[1];e.headers=function(t,n,e,r,i){const s=i||e.getSpan(),o=s&&s.transaction,{traceId:c,sampled:u,dsc:a}=e.getPropagationContext(),h=s?s.toTraceparent():Gt(c,void 0,u),f=Bt(o?o.getDynamicSamplingContext():a||kn(c,n,e)),d="undefined"!=typeof Request&&l(t,Request)?t.headers:r.headers;if(d){if("undefined"!=typeof Headers&&l(d,Headers)){const t=new Headers(d);return t.append("sentry-trace",h),f&&t.append(Ht,f),t}if(Array.isArray(d)){const t=[...d,["sentry-trace",h]];return f&&t.push([Ht,f]),t}{const t="baggage"in d?d.baggage:void 0,n=[];return Array.isArray(t)?n.push(...t):t&&n.push(t),f&&n.push(f),{...d,"sentry-trace":h,baggage:n.length>0?n.join(","):void 0}}}return{"sentry-trace":h,baggage:f}}(n,c,o,e,f)}return f}(t,c,u,a);o&&n&&Ge(n)}),e&&dt("xhr",t=>{const n=function(t,n,e,r){const i=t.xhr,s=i&&i.__sentry_xhr_v2__;if(!Rn()||i&&i.__sentry_own_request__||!i||!s)return;const o=n(s.url);if(t.endTimestamp&&o){const t=i.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&(n.setHttpStatus(s.status_code),n.finish(),delete r[t]))}const c=gn(),u=c.getScope(),a=u.getSpan(),h=o&&a?a.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanId,r[i.__sentry_xhr_span_id__]=h);if(i.setRequestHeader&&e(s.url))if(h){const t=h&&h.transaction,n=Bt(t&&t.getDynamicSamplingContext());Ke(i,h.toTraceparent(),n)}else{const t=c.getClient(),{traceId:n,sampled:e,dsc:r}=u.getPropagationContext();Ke(i,Gt(n,void 0,e),Bt(r||(t?kn(n,t,u):void 0)))}return h}(t,c,u,a);o&&n&&Ge(n)})}function Ge(t){const n=t.data.url;if(!n)return;const e=$e("resource",({entries:r})=>{r.forEach(r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(n)){(function(t){const{name:n,version:e}=function(t){let n="unknown",e="unknown",r="";for(const i of t){if("/"===i){[n,e]=t.split("/");break}if(!isNaN(Number(i))){n="h"===r?"http":r,e=t.split(r)[1];break}r+=i}r===t&&(n=r);return{name:n,version:e}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",e],["network.protocol.name",n]),!qt)return r;return[...r,["http.request.redirect_start",Je(t.redirectStart)],["http.request.fetch_start",Je(t.fetchStart)],["http.request.domain_lookup_start",Je(t.domainLookupStart)],["http.request.domain_lookup_end",Je(t.domainLookupEnd)],["http.request.connect_start",Je(t.connectStart)],["http.request.secure_connection_start",Je(t.secureConnectionStart)],["http.request.connection_end",Je(t.connectEnd)],["http.request.request_start",Je(t.requestStart)],["http.request.response_start",Je(t.responseStart)],["http.request.response_end",Je(t.responseEnd)]]})(r).forEach(n=>t.setData(...n)),setTimeout(e)}})})}function Je(t=0){return((qt||performance.timeOrigin)+t)/1e3}
1function Ke(t,n,e){try{t.setRequestHeader("sentry-trace",n),e&&t.setRequestHeader(Ht,e)}catch(t){}}const Ve={...On,markBackgroundTransactions:!0,routingInstrumentation:function(t,n=!0,e=!0){if(!he||!he.location)return;let r,i=he.location.href;n&&(r=t({name:he.location.pathname,startTimestamp:qt?qt/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),e&&dt("history",({to:n,from:e})=>{void 0===e&&i&&-1!==i.indexOf(n)?i=void 0:e!==n&&(i=void 0,r&&r.finish(),r=t({name:he.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ze};class Ye{constructor(t){this.name="BrowserTracing",this.Ot=!1,An(),this.options={...Ve,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this.jt=Ue(),this.options.enableLongTask&&$e("longtask",({entries:t})=>{for(const n of t){const t=wn();if(!t)return;const e=Me(qt+n.startTime),r=Me(n.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:e,endTimestamp:e+r})}}),this.options._experiments.enableInteractions&&$e("event",({entries:t})=>{for(const n of t){const t=wn();if(!t)return;if("click"===n.name){const e=Me(qt+n.startTime),r=Me(n.duration);t.startChild({description:O(n.target),op:`ui.interaction.${n.name}`,origin:"auto.ui.browser.metrics",startTimestamp:e,endTimestamp:e+r})}}})}setupOnce(t,n){this.Ct=n;const e=n().getClient(),r=e&&e.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:c,traceFetch:u,traceXHR:a,shouldCreateSpanForRequest:h,enableHTTPTimings:f,_experiments:d}=this.options,l=r&&r.tracePropagationTargets||this.options.tracePropagationTargets;i(t=>{const e=this.It(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(e,t,n),e},o,s),c&&he&&he.document&&he.document.addEventListener("visibilitychange",()=>{const t=wn();if(he.document.hidden&&t){const n="cancelled";t.status||t.setStatus(n),t.setTag("visibilitychange","document.hidden"),t.finish()}}),d.enableInteractions&&this.Rt(),We({traceFetch:u,traceXHR:a,tracePropagationTargets:l,shouldCreateSpanForRequest:h,enableHTTPTimings:f})}It(t){if(!this.Ct)return;const n=this.Ct(),{beforeNavigate:e,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,o="pageload"===t.op,c=o?Qe("sentry-trace"):"",u=o?Qe("baggage"):"",{traceparentData:a,dynamicSamplingContext:h,propagationContext:f}=Wt(c,u),d={...t,...a,metadata:{...t.metadata,dynamicSamplingContext:a&&!h?{}:h},trimEnd:!0},l="function"==typeof e?e(d):d,p=void 0===l?{...d,sampled:!1}:l;p.metadata=p.name!==d.name?{...p.metadata,source:"custom"}:p.metadata,this.Dt=p.name,this.Lt=p.metadata&&p.metadata.source;const{location:m}=he,y=Nn(n,p,r,i,!0,{location:m},s),v=n.getScope();return o&&a?v.setPropagationContext(f):v.setPropagationContext({traceId:y.traceId,spanId:y.spanId,parentSpanId:y.parentSpanId,sampled:y.sampled}),y.registerBeforeFinishCallback(t=>{this.jt(),Fe(t)}),y}Rt(){let t;const n=()=>{const{idleTimeout:n,finalTimeout:e,heartbeatInterval:r}=this.options,i=wn();if(i&&i.op&&["navigation","pageload"].includes(i.op))return;if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this.Ct)return;if(!this.Dt)return;const s=this.Ct(),{location:o}=he,c={name:this.Dt,op:"ui.action.click",trimEnd:!0,metadata:{source:this.Lt||"url"}};t=Nn(s,c,n,e,!0,{location:o},r)};["click"].forEach(t=>{addEventListener(t,n,{once:!1,capture:!0})})}}function Qe(t){const n=(e=`meta[name=${t}]`,x.document&&x.document.querySelector?x.document.querySelector(e):null);var e;return n?n.getAttribute("content"):void 0}function Ze(){An()}const tr=E;let nr=0;function er(){return nr>0}function rr(){nr++,setTimeout(()=>{nr--})}function ir(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(H(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map(t=>ir(t,n));return t.apply(this,i)}catch(t){throw rr(),Un(e=>{e.addEventProcessor(t=>(n.mechanism&&(K(t,void 0,void 0),V(t,n.mechanism)),t.extra={...t.extra,arguments:r},t)),captureException(t)}),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}q(sentryWrapped,t),P(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function sr(t,n){const e=cr(t,n),r={type:n&&n.name,value:ar(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function or(t,n){return{exception:{values:[sr(t,n)]}}}function cr(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ur.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const ur=/Minified React error #\d+;/i;function ar(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function hr(t,n,e,r){const i=dr(t,n,e&&e.syntheticException||void 0,r);return V(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),xt(i)}function fr(t,n,e="info",r,i){const s=lr(t,n,r&&r.syntheticException||void 0,i);return s.level=e,r&&r.event_id&&(s.event_id=r.event_id),xt(s)}function dr(t,n,e,c,u){let f;if(s(n)&&n.error){return or(t,n.error)}if(o(n)||i(n,"DOMException")){const r=n;if("stack"in n)f=or(t,n);else{const n=r.name||(o(r)?"DOMError":"DOMException"),i=r.message?`${n}: ${r.message}`:n;f=lr(t,i,e,c),K(f,i)}return"code"in r&&(f.tags={...f.tags,"DOMException.code":`${r.code}`}),f}if(r(n))return or(t,n);if(a(n)||h(n)){return f=function(t,n,e,r){const i=gn().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:h(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:pr(n,{isUnhandledRejection:r})}]},extra:{__serialized__:Et(n,s)}};if(e){const n=cr(t,e);n.length&&(o.exception.values[0].stacktrace={frames:n})}return o}(t,n,e,u),V(f,{synthetic:!0}),f}return f=lr(t,n,e,c),K(f,`${n}`,void 0),V(f,{synthetic:!0}),f}function lr(t,n,e,r){const i={message:n};if(r&&e){const r=cr(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}return i}function pr(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(U(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return m(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");
1if(!(r.length>n))return t===e.length?r:m(r,n)}return""}(t),r=n?"promise rejection":"exception";if(s(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(h(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function mr(t,{metadata:n,tunnel:e,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:D(r)}},s=function(t){return[{type:"user_report"},t]}(t);return Jt(i,[s])}class yr extends class{constructor(t){if(this.$t=t,this._integrations={},this.Mt=!1,this.Nt=0,this.At={},this.Pt={},this.T=[],t.dsn&&(this.qt=M(t.dsn)),this.qt){const n=Xn(this.qt,t);this.Ht=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(Y(t))return;let r=n&&n.event_id;return this.Ut(this.eventFromException(t,n).then(t=>this.Ft(t,n,e)).then(t=>{r=t})),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const s=u(t)?this.eventFromMessage(String(t),n,e):this.eventFromException(t,e);return this.Ut(s.then(t=>this.Ft(t,e,r)).then(t=>{i=t})),i}captureEvent(t,n,e){if(n&&n.originalException&&Y(n.originalException))return;let r=n&&n.event_id;return this.Ut(this.Ft(t,n,e).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release||(this.sendSession(t),fn(t,{init:!1}))}getDsn(){return this.qt}getOptions(){return this.$t}getSdkMetadata(){return this.$t.Et}getTransport(){return this.Ht}flush(t){const n=this.Ht;return n?this.Bt(t).then(e=>n.flush(t).then(t=>e&&t)):xt(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}getEventProcessors(){return this.T}addEventProcessor(t){this.T.push(t)}setupIntegrations(t){(t&&!this.Mt||this.Xt()&&!this.Mt)&&(this._integrations=function(t,n){const e={};return n.forEach(n=>{n&&Jn(t,n,e)}),e}(this,this.$t.integrations),this.Mt=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){Jn(this,t,this._integrations)}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=zn(t,this.qt,this.$t.Et,this.$t.tunnel);for(const t of n.attachments||[])e=Kt(e,Zt(t,this.$t.transportOptions&&this.$t.transportOptions.textEncoder));const r=this.zt(e);r&&r.then(n=>this.emit("afterSendEvent",t,n),null)}sendSession(t){const n=function(t,n,e,r){const i=en(e);return Jt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&n&&{dsn:D(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.qt,this.$t.Et,this.$t.tunnel);this.zt(n)}recordDroppedEvent(t,n,e){if(this.$t.sendClientReports){const e=`${t}:${n}`;this.At[e]=this.At[e]+1||1}}on(t,n){this.Pt[t]||(this.Pt[t]=[]),this.Pt[t].push(n)}emit(t,...n){this.Pt[t]&&this.Pt[t].forEach(t=>t(...n))}Wt(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&e)&&(fn(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}Bt(t){return new jt(n=>{let e=0;const r=setInterval(()=>{0==this.Nt?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))},1)})}Xt(){return!1!==this.getOptions().enabled&&void 0!==this.Ht}Gt(t,n,e){const r=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),Kn(r,t,n,e,this).then(t=>{if(null===t)return t;const{propagationContext:n}=t.sdkProcessingMetadata||{};if(!(t.contexts&&t.contexts.trace)&&n){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=n;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};const c=o||kn(r,this,e);t.sdkProcessingMetadata={dynamicSamplingContext:c,...t.sdkProcessingMetadata}}return t})}Ft(t,n={},e){return this.Jt(t,n,e).then(t=>t.event_id,t=>{})}Jt(t,n,e){const r=this.getOptions(),{sampleRate:i}=r,s=Qn(t),o=Yn(t),c=t.type||"error",u=`before send for type \`${c}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Ot(new N(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const h="replay_event"===c?"replay":c;return this.Gt(t,n,e).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h,t),new N("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const i=function(t,n,e){const{beforeSend:r,beforeSendTransaction:i}=t;if(Yn(n)&&r)return r(n,e);if(Qn(n)&&i)return i(n,e);return n}(r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;
1if(f(t))return t.then(t=>{if(!a(t)&&null!==t)throw new N(e);return t},t=>{throw new N(`${n} rejected with ${t}`)});if(!a(t)&&null!==t)throw new N(e);return t}(i,u)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",h,t),new N(`${u} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!s&&i&&this.Wt(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,n),r}).then(null,t=>{if(t instanceof N)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new N(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}Ut(t){this.Nt++,t.then(t=>(this.Nt--,t),t=>(this.Nt--,t))}zt(t){if(this.emit("beforeEnvelope",t),this.Xt()&&this.Ht)return this.Ht.send(t).then(null,t=>{})}Kt(){const t=this.At;return this.At={},Object.keys(t).map(n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}})}}{constructor(t){const n=tr.SENTRY_SDK_SOURCE||"npm";t.Et=t.Et||{},t.Et.sdk=t.Et.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:ne}],version:ne},super(t),t.sendClientReports&&tr.document&&tr.document.addEventListener("visibilitychange",()=>{"hidden"===tr.document.visibilityState&&this.Vt()})}eventFromException(t,n){return hr(this.$t.stackParser,t,n,this.$t.attachStacktrace)}eventFromMessage(t,n="info",e){return fr(this.$t.stackParser,t,n,e,this.$t.attachStacktrace)}captureUserFeedback(t){if(!this.Xt())return;const n=mr(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.zt(n)}Gt(t,n,e){return t.platform=t.platform||"javascript",super.Gt(t,n,e)}Vt(){const t=this.Kt();if(0===t.length)return;if(!this.qt)return;const n=(e=t,Jt((r=this.$t.tunnel&&D(this.qt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||At(),discarded_events:e}]]));var e,r,i;this.zt(n)}}let vr;function gr(t,n=function(){if(vr)return vr;if(ot(tr.fetch))return vr=tr.fetch.bind(tr);const t=tr.document;let n=tr.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){}return vr=n.bind(tr)}()){let e=0,r=0;return Zn(t,function(i){const s=i.body.length;e+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{return n(t.url,o).then(t=>(e-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(t){return vr=void 0,e-=s,r--,Ot(t)}})}function br(t){return Zn(t,function(n){return new jt((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)})})}const _r="?";function wr(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const Tr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Er=[30,t=>{const n=Tr.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=Sr.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Nr(n[1]||_r,n[2]);return wr(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],$r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,kr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xr=[50,t=>{const n=$r.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=kr.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||_r;return[e,t]=Nr(e,t),wr(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Or=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,jr=[40,t=>{const n=Or.exec(t);return n?wr(n[2],n[1]||_r,+n[3],n[4]?+n[4]:void 0):void 0}],Cr=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ir=[10,t=>{const n=Cr.exec(t);return n?wr(n[2],n[3]||_r,+n[1]):void 0}],Rr=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Dr=[20,t=>{const n=Rr.exec(t);return n?wr(n[5],n[3]||n[4]||_r,+n[1],+n[2]):void 0}],Lr=[Er,xr,jr],Mr=nt(...Lr),Nr=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:_r,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};class Ar{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=Ar.id,this.$t={onerror:!0,onunhandledrejection:!0,...t},this.Yt={onerror:Pr,onunhandledrejection:qr}}setupOnce(){Error.stackTraceLimit=50;const t=this.$t;for(const n in t){const e=this.Yt[n];e&&t[n]&&(e(),this.Yt[n]=void 0)}}}function Pr(){dt("error",t=>{const[n,e,r]=Fr();if(!n.getIntegration(Ar))return;const{msg:i,url:o,line:u,column:a,error:h}=t;if(er()||h&&h.__sentry_own_request__)return;const f=void 0===h&&c(i)?function(t,n,e,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=s(t)?t.message:t,c="Error";const u=o.match(i);u&&(c=u[1],o=u[2]);return Hr({exception:{values:[{type:c,value:o}]}},n,e,r)}(i,o,u,a):Hr(dr(e,h||i,void 0,r,!1),o,u,a);f.level="error",Ur(n,h,f,"onerror")})}function qr(){dt("unhandledrejection",t=>{const[n,e,r]=Fr();if(!n.getIntegration(Ar))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(er()||i&&i.__sentry_own_request__)return!0;const s=u(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:dr(e,i,void 0,r,!0);s.level="error",Ur(n,i,s,"onunhandledrejection")})}function Hr(t,n,e,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},u=o.stacktrace=o.stacktrace||{},a=u.frames=u.frames||[],h=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(e,10))?void 0:e,d=c(n)&&n.length>0?n:function(){try{return x.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:h,filename:d,function:"?",in_app:!0,lineno:f}),t}function Ur(t,n,e,r){V(e,{handled:!1,type:r}),t.captureEvent(e,{originalException:n})}function Fr(){const t=gn(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}Ar.__initStatic();const Br=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Xr{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=Xr.id,this.$t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this.$t.setTimeout&&A(tr,"setTimeout",zr),this.$t.setInterval&&A(tr,"setInterval",zr),this.$t.requestAnimationFrame&&A(tr,"requestAnimationFrame",Wr),this.$t.XMLHttpRequest&&"XMLHttpRequest"in tr&&A(XMLHttpRequest.prototype,"send",Gr);const t=this.$t.eventTarget;if(t){(Array.isArray(t)?t:Br).forEach(Jr)}}}function zr(t){return function(...n){const e=n[0];return n[0]=ir(e,{mechanism:{data:{function:rt(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function Wr(t){return function(n){return t.apply(this,[ir(n,{mechanism:{data:{function:"requestAnimationFrame",handler:rt(t)},handled:!1,type:"instrument"}})])}}function Gr(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in e&&"function"==typeof e[t]&&A(e,t,function(n){const e={mechanism:{data:{function:t,handler:rt(n)},handled:!1,type:"instrument"}},r=H(n);return r&&(e.mechanism.data.handler=rt(r)),ir(n,e)})}),t.apply(this,n)}}function Jr(t){const n=tr,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(A(e,"addEventListener",function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ir(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:rt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return n.apply(this,[e,ir(r,{mechanism:{data:{function:"addEventListener",handler:rt(r),target:t},handled:!1,type:"instrument"}}),i])}}),A(e,"removeEventListener",function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}}))}Xr.__initStatic();const Kr=1024;class Vr{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=Vr.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&dt("console",Qr),this.options.dom&&dt("dom",function(t){function n(n){let e,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Kr&&(i=Kr),"string"==typeof r&&(r=[r]);try{const t=n.event;e=function(t){return!!t&&!!t.target}(t)?O(t.target,{keyAttrs:r,maxStringLength:i}):O(t,{keyAttrs:r,maxStringLength:i})}catch(t){e="<unknown>"}0!==e.length&&gn().addBreadcrumb({category:`ui.${n.name}`,message:e},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&dt("xhr",Zr),this.options.fetch&&dt("fetch",ti),this.options.history&&dt("history",ni),this.options.sentry){const t=gn().getClient();t&&t.on&&t.on("beforeSendEvent",Yr)}}}function Yr(t){gn().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:J(t)},{event:t})}function Qr(t){const n={category:"console",data:{arguments:t.args,logger:"console"},level:(e=t.level,"warn"===e?"warning":Rt.includes(e)?e:"log"),message:y(t.args," ")};var e;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${y(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}gn().addBreadcrumb(n,{input:t.args,level:t.level})}function Zr(t){const{startTimestamp:n,endTimestamp:e}=t,r=t.xhr.__sentry_xhr_v2__;if(!n||!e||!r)return;const{method:i,url:s,status_code:o,body:c}=r,u={method:i,url:s,status_code:o},a={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:e};gn().addBreadcrumb({category:"xhr",data:u,type:"http"},a)}function ti(t){const{startTimestamp:n,endTimestamp:e}=t;
1if(e&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:e};gn().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:n,endTimestamp:e};gn().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function ni(t){let n=t.from,e=t.to;const r=It(tr.location.href);let i=It(n);const s=It(e);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(e=s.relative),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),gn().addBreadcrumb({category:"navigation",data:{from:n,to:e}})}Vr.__initStatic();class ei{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=ei.id,this.kt=t.key||"cause",this.xt=t.limit||5}setupOnce(){}preprocessEvent(t,n,e){const r=e.getOptions();b(sr,r.stackParser,r.maxValueLength,this.kt,this.xt,t,n)}}ei.__initStatic();class ri{static __initStatic(){this.id="HttpContext"}constructor(){this.name=ri.id}setupOnce(){}preprocessEvent(t){if(!tr.navigator&&!tr.location&&!tr.document)return;const n=t.request&&t.request.url||tr.location&&tr.location.href,{referrer:e}=tr.document||{},{userAgent:r}=tr.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},s={...t.request,...n&&{url:n},headers:i};t.request=s}}ri.__initStatic();class ii{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ii.id}setupOnce(t,n){}processEvent(t){if(t.type)return t;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!oi(t,n))return!1;if(!si(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=ci(n),r=ci(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!oi(t,n))return!1;if(!si(t,n))return!1;return!0}(t,n))return!0;return!1}(t,this.Qt))return null}catch(t){}return this.Qt=t}}function si(t,n){let e=ui(t),r=ui(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],i=e[t];if(n.filename!==i.filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1}return!0}function oi(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;e=e,r=r;try{return!(e.join("")!==r.join(""))}catch(t){return!1}}function ci(t){return t.exception&&t.exception.values&&t.exception.values[0]}function ui(t){const n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}ii.__initStatic();var ai=Object.freeze({__proto__:null,GlobalHandlers:Ar,TryCatch:Xr,Breadcrumbs:Vr,LinkedErrors:ei,HttpContext:ri,Dedupe:ii});const hi=[new oe,new re,new Xr,new Vr,new Ar,new ei,new ii,new ri];function fi(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let di={};tr.Sentry&&tr.Sentry.Integrations&&(di=tr.Sentry.Integrations);const li={...di,...ae,...ai};return li.Replay=n,li.BrowserTracing=Ye,Ze(),t.Breadcrumbs=Vr,t.BrowserClient=yr,t.BrowserTracing=Ye,t.Dedupe=ii,t.FunctionToString=re,t.GlobalHandlers=Ar,t.HttpContext=ri,t.Hub=mn,t.InboundFilters=oe,t.Integrations=li,t.LinkedErrors=ei,t.Replay=n,t.SDK_VERSION=ne,t.Scope=dn,t.Span=$n,t.TryCatch=Xr,t.WINDOW=tr,t.addBreadcrumb=function(t){gn().addBreadcrumb(t)},t.addExtensionMethods=Ze,t.addGlobalEventProcessor=un,t.addIntegration=function(t){const n=gn().getClient();n&&n.addIntegration&&n.addIntegration(t)},t.captureEvent=function(t,n){return gn().captureEvent(t,n)},t.captureException=captureException,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return gn().captureMessage(t,e,r)},t.captureUserFeedback=function(t){const n=gn().getClient();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=Er,t.close=async function(t){const n=gn().getClient();return n?n.close(t):Promise.resolve(!1)},t.configureScope=function(t){gn().configureScope(t)},t.continueTrace=function({sentryTrace:t,baggage:n},e){const r=gn().getScope(),{traceparentData:i,dynamicSamplingContext:s,propagationContext:o}=Wt(t,n);return r.setPropagationContext(o),e({...i,metadata:X({dynamicSamplingContext:i&&!s?{}:s})})},t.createTransport=Zn,t.createUserFeedbackEnvelope=mr,t.defaultIntegrations=hi,t.defaultStackLineParsers=Lr,t.defaultStackParser=Mr,t.eventFromException=hr,t.eventFromMessage=fr,t.exceptionFromError=sr,t.flush=async function(t){const n=gn().getClient();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.geckoStackLineParser=xr,t.getActiveSpan=Pn,t.getCurrentHub=gn,t.getHubFromCarrier=bn,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=hi),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),tr.SENTRY_RELEASE&&tr.SENTRY_RELEASE.id&&(t.release=tr.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const n={...t,stackParser:(e=t.stackParser||Mr,Array.isArray(e)?nt(...e):e),integrations:Gn(t),transport:t.transport||(st()?gr:br)};var e;!function(t,n){!0===n.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const e=gn();e.getScope().update(n.initialScope);const r=new t(n);e.bindClient(r)}(yr,n),t.autoSessionTracking&&function(){if(void 0===tr.document)return;const t=gn();if(!t.captureSession)return;fi(t),dt("history",({from:t,to:n})=>{void 0!==t&&t!==n&&fi(gn())})}()},t.lastEventId=function(){return gn().lastEventId()},t.makeFetchTransport=gr,t.makeMain=vn,t.makeXHRTransport=br,t.onLoad=function(t){t()},t.opera10StackLineParser=Ir,t.opera11StackLineParser=Dr,t.setContext=function(t,n){gn().setContext(t,n)},t.setExtra=function(t,n){gn().setExtra(t,n)},t.setExtras=function(t){gn().setExtras(t)},t.setTag=function(t,n){gn().setTag(t,n)},t.setTags=function(t){gn().setTags(t)},t.setUser=function(t){gn().setUser(t)},t.showReportDialog=function(t={},n=gn()){if(!tr.document)return;const{client:e,scope:r}=n.getStackTop(),i=t.dsn||e&&e.getDsn();if(!i)return;r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=n.lastEventId());const s=tr.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,n){const e=M(t);if(!e)return"";const r=`${Fn(e)}embed/error-page/`;let i=`dsn=${D(e)}`;for(const t in n)if("dsn"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=tr.document.head||tr.document.body;o&&o.appendChild(s)},t.startInactiveSpan=function(t){if(!Rn())return;const n={...t};void 0!==n.name&&void 0===n.description&&(n.description=n.name);const e=gn(),r=Pn();return r?r.startChild(n):e.startTransaction(n)},t.startSpan=function(t,n){const e=Hn(t),r=gn(),i=r.getScope(),s=i.getSpan(),o=qn(r,s,e);function c(){o&&o.finish(),r.getScope().setSpan(s)}let u;i.setSpan(o);try{u=n(o)}catch(t){throw o&&o.setStatus("internal_error"),c(),t}return f(u)?Promise.resolve(u).then(()=>{c()},()=>{o&&o.setStatus("internal_error"),c()}):c(),u},t.startSpanManual=function(t,n){const e=Hn(t),r=gn(),i=r.getScope(),s=i.getSpan(),o=qn(r,s,e);let c;i.setSpan(o);try{c=n(o,function(){o&&o.finish(),r.getScope().setSpan(s)})}catch(t){throw o&&o.setStatus("internal_error"),t}return f(c)&&Promise.resolve(c).then(void 0,()=>{o&&o.setStatus("internal_error")}),c},t.startTransaction=function(t,n){return gn().startTransaction({...t},n)},t.winjsStackLineParser=jr,t.withScope=Un,t.wrap=function(t){return ir(t)()},t}({});if(typeof minicrm!=="object"){var minicrm={Version:"3.8.2",type:"MiniCRM",ApiURL:"https://r3.minicrm.hu/Api/",LoadingImg:"https://r3.minicrm.hu/api/loading.gif",JSONUrl:"https://r3.minicrm.hu/api/json2.js",ConnectErrorMessage:"Connection to server failed. Please try again later.",RequestFileTooBigMessage:"The total size of the files is too big to upload!",RequestMaxFileSize:30485760,FileTooBigMessage:"The file size is too big to upload!",MaxFileSize:10161920,SignupForm:"",TimeoutId:"",UrlParams:{},Loaded:false,LastForm:false,IsIframe:false,BackupStatus:false,BackupMessage:false,UserCallback:[],Ajax:{isUpdating:true,Request:function(method,url,query,callback,formdata){var request={method:method,url:url,query:query};if(method.toLowerCase()=="get")url=url+"?"+query;if(window.XDomainRequest){minicrm.Ajax.xdr=new XDomainRequest;
1minicrm.Ajax.xdr.open("get",url+"?"+query);minicrm.Ajax.xdr.onload=function(){minicrm.Ajax.isUpdating=false;callback(minicrm.Ajax.xdr.responseText,200,minicrm.Ajax.xdr,request)};minicrm.Ajax.xdr.onerror=function(){minicrm.LogError(new Error(minicrm.Ajax.xdr.responseText))};minicrm.Ajax.xdr.send();return}minicrm.Ajax.isUpdating=true;minicrm.Ajax.request=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP");minicrm.Ajax.request.onreadystatechange=function(_id){switch(minicrm.Ajax.request.readyState){case 1:break;case 2:break;case 3:break;case 4:minicrm.Ajax.isUpdating=false;callback(minicrm.Ajax.request.responseText,minicrm.Ajax.request.status,minicrm.Ajax.request,request)}};minicrm.Ajax.request.open(method,url,true);minicrm.Ajax.request.setRequestHeader("Accept","application/json");if(typeof formdata==="object"){minicrm.Ajax.request.send(formdata)}else{minicrm.Ajax.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");minicrm.Ajax.request.send(query)}}},FormPost:function(Form,callback){Url=Form.getAttribute("action");if(!Url)Url=minicrm.ApiURL+"Signup";Method=Form.getAttribute("method");if(!Method)Method="post";if(Method.toLowerCase()=="post"){if(window.FormData===undefined){var formData=false}else{var formData=new FormData}}Params="1=1";var TotalFileSize=0;for(var i=0;i<Form.elements.length;i++){var el=Form.elements[i];if(typeof el.type==="undefined")continue;if(el.type==="fieldset")continue;if(el.disabled)continue;if(el.type==="file"&&window.FormData===undefined)continue;var value=el.value;if((el.type==="checkbox"||el.type==="radio")&&!el.checked){value="0"}if(formData){if(el.type=="file"&&value.length){var Files=document.getElementById(el.id).files;for(var x=0;x<Files.length;x++){TotalFileSize+=Files[x].size;if(Files[x].size>minicrm.MaxFileSize){minicrm.Display(Form,minicrm.FileTooBigMessage);formData.append("__file_error","1");break}formData.append(el.name+"["+x+"]",Files[x])}}else{formData.append(el.name,value)}}Params+="&"+encodeURIComponent(el.name)+"="+encodeURIComponent(value)}if(TotalFileSize>minicrm.RequestMaxFileSize){minicrm.Display(Form,minicrm.RequestFileTooBigMessage);formData.append("__file_error","1")}minicrm.TryRequest(Method,Url,Params,callback,formData)},TryRequest:function(Method,Url,Params,callback,formData){try{minicrm.Ajax.Request(Method,Url,Params,callback,formData)}catch(e){try{minicrm.SendRequest(Url+"?"+Params)}catch(err){minicrm.LogError(err)}}},InitSentry:function(){Sentry.init({dsn:SENTRY_WEBFORM_URL,release:MINICRM_RELEASE,environment:SENTRY_ENVIRONMENT,integrations:[new Sentry.BrowserTracing],attachStacktrace:true,enableTracing:false})},Init:function(){minicrm.STAGE_EXT=MINICRM_STAGE_EXT;minicrm.InitSentry();try{minicrm.IsIframe=window.self!==window.parent;if(typeof MINICRM_API_URL!=="undefined"){minicrm.ApiURL=MINICRM_API_URL}if(window.XDomainRequest){minicrm.ApiURL=minicrm.ApiURL.replace("https:",window.location.protocol)}try{var oldonload=false;oldonload=window.onload}catch(e){window.onload=null}if(typeof window.onload!=="function"){window.onload=minicrm.OnLoad}else{window.onload=function(){try{if(oldonload){try{oldonload()}catch(e){}}if(!minicrm.Loaded){minicrm.OnLoad()}}catch(err){minicrm.LogError(err)}}}if(typeof JSON=="undefined"){minicrm.SendRequest(minicrm.JSONUrl+"?")}if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(event){if(!minicrm.Loaded){minicrm.OnLoad()}})}else if(typeof document.attachEvent!="undefined"){document.attachEvent("onreadystatechange",function(event){if(document.readyState==="complete"&&!minicrm.Loaded){minicrm.OnLoad()}})}}catch(err){minicrm.LogError(err)}},OnLoad:function(){if(minicrm.Loaded){return}try{minicrm.Loaded=true;minicrm.SaveReferrer();minicrm.UrlParams=minicrm.ParseQueryString(window.location.search.substring(1));for(var FormIndex=0;FormIndex<document.forms.length;FormIndex++){var Form=document.forms[FormIndex];if(Form["MiniCRM_FormHash"]&&!Form.getAttribute("FormHash")){Form.setAttribute("FormHash",Form["MiniCRM_FormHash"].value)}if(!Form.getAttribute("FormHash"))continue;minicrm.SetFormOnSubmit(Form);minicrm.FillDefaults(Form);for(var i=0;i<Form.elements.length;i++){var el=Form.elements[i];if(el&&el.type==="file"){el.addEventListener("change",function(){minicrm.SetSubmit(Form,false);var msgdiv=minicrm.ResponseDiv(Form);if(msgdiv){msgdiv.innerHTML="";msgdiv.style.display="none"}})}}if(window.FormData===undefined){for(var i=0;i<Form.elements.length;i++){var el=Form.elements[i];if(el.type=="file")el.disabled="disabled"}}}}catch(err){minicrm.LogError(err)}},GetDomain:function(Url){try{matches=String(Url).toLowerCase().match(/:\/\/(www\.)?(.[^\/]+)/i);if(matches){return matches[2]}}catch(err){minicrm.LogError(err,"Error on GetDomain with url: "+Url)}return""},SaveReferrer:function(){try{if(!document.referrer)return;var domain=minicrm.GetDomain(document.location);var referrer_domain=String(document.referrer)?minicrm.GetDomain(document.referrer):"";if(domain==referrer_domain)return;minicrm.SetCookie("minicrm_sr",document.referrer)}catch(err){minicrm.LogError(err)}},SetCookie:function(Name,Value){try{var expire=new Date;expire.setTime((new Date).getTime()+31536e6);document.cookie=Name+"="+escape(Value)+"; path=/; expires="+expire.toGMTString()}catch(err){minicrm.LogError(err)}},GetCookie:function(Name){if(minicrm.IsIframe){return minicrm.UrlParams[Name]?minicrm.UrlParams[Name]:""}try{var NameEQ=Name+"=",Cookies=document.cookie.split(";"),Cookie,i;for(i=0;i<Cookies.length;i++){Cookie=Cookies[i];while(Cookie.charAt(0)===" "){Cookie=Cookie.substring(1,Cookie.length)}if(Cookie.indexOf(NameEQ)===0){return decodeURIComponent(Cookie.substring(NameEQ.length,Cookie.length))}}return null}catch(err){minicrm.LogError(err)}},SetField:function(Form,Name,Value){try{var element=Form[Name];
1if(element===undefined||typeof element=="string"){var element=document.createElement("input");element.setAttribute("type","hidden");element.setAttribute("name",Name);element.value=Value;Form.appendChild(element);return}if(element.type==="checkbox"||element.type==="radio"){element.checked=Value?true:false}else if(element.type==="select-one"){var finalValue=Value;var optionElements=element.getElementsByTagName("option");var hasOptionWithMatchingValue=false;for(var i=0;i<optionElements.length;i++){if(optionElements[i].value==Value){hasOptionWithMatchingValue=true;break}}if(!hasOptionWithMatchingValue){for(var i=0;i<optionElements.length;i++){if(optionElements[i].innerText==Value){finalValue=optionElements[i].value;break}}}element.value=finalValue}else{var hasDateSelect=!!document.getElementById("container_"+element.getAttribute("id"));var isDate=new Date(Value).toString()!=="Invalid Date";if(hasDateSelect&&isDate){const dateString=Value.replace("23:59:00","").replace("23:59:59","");const date=new Date(dateString);const formattedDate=[date.getFullYear()+".",date.getMonth()+1+".",date.getDate()+"."].join(" ");const formattedTime=date.getHours()+":"+date.getMinutes();Value=formattedDate+" "+formattedTime}element.value=Value}}catch(err){minicrm.LogError(err)}},SetSubmit:function(Form,Disabled){try{var i,el;Form.setAttribute("DisableSubmit",Disabled);for(i=0;i<Form.length;i++){el=Form.elements[i];if(typeof el.type!="undefined"){if(el.type.toLowerCase()==="submit"||el.type.toLowerCase()==="reset"){el.disabled=Disabled}}}}catch(err){minicrm.LogError(err)}},Display:function(Form,Message,Response){try{msgdiv=minicrm.ResponseDiv(Form,Response);msgdiv.style.display="block";msgdiv.innerHTML=Message}catch(err){minicrm.LogError(err)}},SendRequest:function(url){try{var head=document.getElementsByTagName("head").item(0),js=document.createElement("script");url+="&Version="+encodeURIComponent(minicrm.Version);js.setAttribute("language","javascript");js.setAttribute("type","text/javascript");js.setAttribute("src",url);head.appendChild(js)}catch(err){minicrm.Display(Form,minicrm.ConnectErrorMessage)}},SendSignupRequest:function(Form){try{var formFields=Form.getElementsByTagName("input");for(var i=0;i<formFields.length;i++){minicrm.removeClass(formFields[i],"Error")}if(document.querySelectorAll){var label=document.querySelector("label.ErrorLabel");if(label)minicrm.removeClass(label,"ErrorLabel")}minicrm.SetTimeout();minicrm.SetSubmit(Form,true);minicrm.Display(Form,"<img src='"+minicrm.LoadingImg+"'>");minicrm.FormPost(Form,function(ResponseText,ResponseStatus,Xhr,Request){try{clearTimeout(minicrm.TimeoutId);var Response={};try{if(typeof JSON=="undefined"||typeof JSON.parse!="function"){Response=eval("("+ResponseText+")")}else{Response=JSON.parse(ResponseText)}}catch(err){}if(ResponseStatus==200){minicrm.OnResponse(Form,Response)}else{if("Error"in Response){minicrm.Display(Form,"<span class='ResponseError'>"+Response.Error+"</span>");minicrm.SetSubmit(Form,false);return}var ResponseError=Xhr.statusText+"("+ResponseStatus+")";if(ResponseStatus===0){ResponseError="Network error happened. Please try again.";minicrm.SetSubmit(Form,false)}minicrm.Display(Form,"<span class='ResponseError'>"+ResponseError+"</span>");Sentry.addBreadcrumb({data:{RequestMethod:Request.method,RequestUrl:Request.url,RequestQuery:Request.query,ResponseText:ResponseText,ResponseStatus:ResponseStatus}});minicrm.LogError(new Error(ResponseError))}}catch(err){minicrm.LogError(err)}})}catch(err){minicrm.LogError(err)}},OnRequestSuccess:function(ResponseText,ResponseStatus,FormHash){try{for(var FormIndex=0;FormIndex<document.forms.length;FormIndex++){if(document.forms[FormIndex].getAttribute("FormHash")==FormHash){var Form=document.forms[FormIndex];break}}if(!Form){var err="";err+="Iframe Response: Form not found with hash: "+FormHash;err+="Response was: "+ResponseText;minicrm.LogError(new Error(err));return false}clearTimeout(minicrm.TimeoutId);minicrm.SetSubmit(Form,false);if(ResponseStatus==200){minicrm.OnResponse(Form,ResponseText)}else{var err="";err+="Iframe Response: Status error: "+ResponseStatus;err+="Response was: "+ResponseText;minicrm.LogError(new Error(err))}}catch(err){minicrm.LogError(err)}},Response:function(Form,Response){if(Response.Url!=""){try{top.location.href=Response.Url}catch(err){location.href=Response.Url}return}if(Response.Error){minicrm.Display(Form,"<span class='ResponseError'>"+Response.Error+"</span>");minicrm.SetSubmit(Form,false)}else if(Response.Warning){minicrm.Display(Form,Response.Warning);minicrm.SetSubmit(Form,false)}else if(Response.Info){minicrm.Display(Form,Response.Info,Response);minicrm.SetSubmit(Form,true)}else{minicrm.SetSubmit(Form,false);minicrm.ResponseDiv(Form).style.display="none"}if(Response.ErrorFieldId){var element=document.getElementById(Response.ErrorFieldId);if(element){minicrm.addClass(element,"Error");element.focus()}if(document.querySelectorAll){var label=document.querySelector('label[for="'+Response.ErrorFieldId+'"]');if(label)minicrm.addClass(label,"ErrorLabel")}}},OnRequestFailed:function(Form){try{minicrm.Display(Form,minicrm.ConnectErrorMessage);minicrm.SetSubmit(Form,false)}catch(err){minicrm.LogError(err)}},Signup:function(Form){try{if(!minicrm.IsFormObject(Form)||!minicrm.HasElements(Form)){return}minicrm.LastForm=Form;minicrm.StopRequests();if(!minicrm.Loaded){minicrm.OnLoad()}if(minicrm.UrlParams["i"])minicrm.SetField(Form,"i",minicrm.UrlParams.i);if(minicrm.UrlParams["c"])minicrm.SetField(Form,"c",minicrm.UrlParams.c
1);if(minicrm.UrlParams["EmailId"])minicrm.SetField(Form,"EmailId",minicrm.UrlParams.EmailId);if(minicrm.IsIframe)minicrm.SetField(Form,"SignupPage",document.referrer);minicrm.SetField(Form,"Referrer",minicrm.GetCookie("minicrm_sr"));minicrm.SetField(Form,"__utma",minicrm.GetCookie("__utma"));minicrm.SetField(Form,"__utmz",minicrm.GetCookie("__utmz"));if(typeof Form.elements["FormHash"]!="object")minicrm.SetField(Form,"FormHash",Form.getAttribute("FormHash"));minicrm.SendSignupRequest(Form);return false}catch(err){minicrm.LogError(err);return false}},ParseQueryString:function(query){try{var Parsed={},tokens,idx;if(query==="")return false;query=query.split("&");for(idx=0;idx<query.length;idx++){tokens=query[idx].split("=");Parsed[decodeURIComponent(tokens[0])]=tokens.length===2?decodeURIComponent(tokens[1]):undefined}return Parsed}catch(err){minicrm.LogError(err)}},ResponseDiv:function(Form,Response){try{if(!minicrm.IsFormObject(Form)){return}var id="Response_"+Form.getAttribute("FormHash");var msgdiv=document.getElementById(id);if(!msgdiv){msgdiv=document.createElement("span");msgdiv.setAttribute("id",id);msgdiv.setAttribute("class","Response");msgdiv.style.display="none";msgdiv.style.borderColor="#ccc";msgdiv.style.borderStyle="solid";msgdiv.style.borderWidth="1px";msgdiv.style.textAlign="center";msgdiv.style.padding="10px";msgdiv.style.margin="10px";Form.insertBefore(msgdiv,Form.firstChild);msgdiv=document.getElementById(id)}if(Response&&Response.Data&&Response.Data.ProjectId){msgdiv.setAttribute("project-id",Response.Data.ProjectId)}return msgdiv}catch(err){minicrm.LogError(err)}},SetFormOnSubmit:function(Form){try{var oldOnSubmit=typeof Form.onsubmit==="function"?Form.onsubmit:false;Form.onsubmit=function(){try{if(oldOnSubmit){if(oldOnSubmit()===false){return false}}minicrm.OnSignup(Form);return false}catch(err){minicrm.LogError(err)}}}catch(err){minicrm.LogError(err)}},FillDefaults:function(Form){try{for(var paramKey in minicrm.UrlParams){if(Form[paramKey]===undefined)continue;minicrm.SetField(Form,paramKey,minicrm.UrlParams[paramKey])}}catch(err){minicrm.LogError(err)}},hasClass:function(ele,cls){if(!ele.className)return false;return ele.className.match(new RegExp("(\\s|^)"+cls+"(\\s|$)"))},addClass:function(ele,cls){if(!minicrm.hasClass(ele,cls))ele.className+=" "+cls},removeClass:function(ele,cls){if(minicrm.hasClass(ele,cls)){var reg=new RegExp("(\\s|^)"+cls+"(\\s|$)");ele.className=ele.className.replace(reg," ")}},LogError:function(e,CustomMsg){if(minicrm.STAGE_EXT=="DEV"){console.error("LogError: ",e,CustomMsg);return}if(!e){e=new Error(CustomMsg?CustomMsg:"Unknown error occured")}var name=CustomMsg;if(!name){if(e.message){name=e.message}else{name=""+e}}Sentry.captureException(e,{extra:{name:name}})},IsFormObject:function(Form){try{if(typeof Form.constructor=="object"){ret=Form.constructor.toString().indexOf("HTMLFormElement")>-1?true:false}else{ret=Form.nodeName=="FORM"?true:false}}catch(err){ret=Form.nodeName=="FORM"?true:false}return ret},HasElements:function(Form){return typeof Form.elements=="object"||typeof Form.elements=="function"},StopRequests:function(){if(window.stop!==undefined){window.stop()}else if(document.execCommand!==undefined){document.execCommand("Stop",false)}},OnResponse:function(Form,Response){if(typeof minicrm.UserCallback[Form.getAttribute("FormHash")]=="function"){if(!minicrm.UserCallback[Form.getAttribute("FormHash")](Response,this)){return}}minicrm.Response(Form,Response)},SetResponse:function(Response){minicrm.Response(minicrm.LastForm,Response)},OnSignup:function(Form){minicrm.Signup(Form)},SetCallback:function(FormHash,callback){minicrm.UserCallback[FormHash]=callback},SetLoaderCallback:function(e){var obj=JSON.parse(e.data);minicrm.SetCallback(obj.FormHash,function(Response,Sender){Response.action="callback";Response.FormHash=obj.FormHash;e.source.postMessage(JSON.stringify(Response),e.origin);return false})},SetTimeout:function(){minicrm.TimeoutId=setTimeout(function(){if(minicrm.Ajax.isUpdating){minicrm.SetTimeout()}else{minicrm.OnRequestFailed(Form)}},1e4)}};try{minicrm.Init()}catch(err){minicrm.LogError(err)}}if(typeof moment=="undefined"){(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define(factory):global.moment=factory()})(this,function(){"use strict";var hookCallback;function utils_hooks__hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(callback){hookCallback=callback}function isArray(input){return input instanceof Array||Object.prototype.toString.call(input)==="[object Array]"}function isObject(input){return input!=null&&Object.prototype.toString.call(input)==="[object Object]"}function isObjectEmpty(obj){var k;for(k in obj){return false}return true}function isDate(input){return input instanceof Date||Object.prototype.toString.call(input)==="[object Date]"}function map(arr,fn){var res=[],i;for(i=0;i<arr.length;++i){res.push(fn(arr[i],i))}return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b){if(hasOwnProp(b,i)){a[i]=b[i]}}if(hasOwnProp(b,"toString")){a.toString=b.toString}if(hasOwnProp(b,"valueOf")){a.valueOf=b.valueOf}return a}function create_utc__createUTC(input,format,locale,strict){return createLocalOrUTC(in
1put,format,locale,strict,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null}}function getParsingFlags(m){if(m._pf==null){m._pf=defaultParsingFlags()}return m._pf}var some;if(Array.prototype.some){some=Array.prototype.some}else{some=function(fun){var t=Object(this);var len=t.length>>>0;for(var i=0;i<len;i++){if(i in t&&fun.call(this,t[i],i,t)){return true}}return false}}function valid__isValid(m){if(m._isValid==null){var flags=getParsingFlags(m);var parsedParts=some.call(flags.parsedDateParts,function(i){return i!=null});var isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict){isNowValid=isNowValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(m)){m._isValid=isNowValid}else{return isNowValid}}return m._isValid}function valid__createInvalid(flags){var m=create_utc__createUTC(NaN);if(flags!=null){extend(getParsingFlags(m),flags)}else{getParsingFlags(m).userInvalidated=true}return m}function isUndefined(input){return input===void 0}var momentProperties=utils_hooks__hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(!isUndefined(from._isAMomentObject)){to._isAMomentObject=from._isAMomentObject}if(!isUndefined(from._i)){to._i=from._i}if(!isUndefined(from._f)){to._f=from._f}if(!isUndefined(from._l)){to._l=from._l}if(!isUndefined(from._strict)){to._strict=from._strict}if(!isUndefined(from._tzm)){to._tzm=from._tzm}if(!isUndefined(from._isUTC)){to._isUTC=from._isUTC}if(!isUndefined(from._offset)){to._offset=from._offset}if(!isUndefined(from._pf)){to._pf=getParsingFlags(from)}if(!isUndefined(from._locale)){to._locale=from._locale}if(momentProperties.length>0){for(i in momentProperties){prop=momentProperties[i];val=from[prop];if(!isUndefined(val)){to[prop]=val}}}return to}var updateInProgress=false;function Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(updateInProgress===false){updateInProgress=true;utils_hooks__hooks.updateOffset(this);updateInProgress=false}}function isMoment(obj){return obj instanceof Moment||obj!=null&&obj._isAMomentObject!=null}function absFloor(number){if(number<0){return Math.ceil(number)||0}else{return Math.floor(number)}}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber)){value=absFloor(coercedNumber)}return value}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++){if(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i])){diffs++}}return diffs+lengthDiff}function warn(msg){if(utils_hooks__hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+msg)}}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(utils_hooks__hooks.deprecationHandler!=null){utils_hooks__hooks.deprecationHandler(null,msg)}if(firstTime){var args=[];var arg;for(var i=0;i<arguments.length;i++){arg="";if(typeof arguments[i]==="object"){arg+="\n["+i+"] ";for(var key in arguments[0]){arg+=key+": "+arguments[0][key]+", "}arg=arg.slice(0,-2)}else{arg=arguments[i]}args.push(arg)}warn(msg+"\nArguments: "+Array.prototype.slice.call(args).join("")+"\n"+(new Error).stack);firstTime=false}return fn.apply(this,arguments)},fn)}var deprecations={};function deprecateSimple(name,msg){if(utils_hooks__hooks.deprecationHandler!=null){utils_hooks__hooks.deprecationHandler(name,msg)}if(!deprecations[name]){warn(msg);deprecations[name]=true}}utils_hooks__hooks.suppressDeprecationWarnings=false;utils_hooks__hooks.deprecationHandler=null;function isFunction(input){return input instanceof Function||Object.prototype.toString.call(input)==="[object Function]"}function locale_set__set(config){var prop,i;for(i in config){prop=config[i];if(isFunction(prop)){this[i]=prop}else{this["_"+i]=prop}}this._config=config;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function mergeConfigs(parentConfig,childConfig){var res=extend({},parentConfig),prop;for(prop in childConfig){if(hasOwnProp(childConfig,prop)){if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){res[prop]={};extend(res[prop],parentConfig[prop]);extend(res[prop],childConfig[prop])}else if(childConfig[prop]!=null){res[prop]=childConfig[prop]}else{delete res[prop]}}}for(prop in parentConfig){if(hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])){res[prop]=extend({},res[prop])}}return res}function Locale(config){if(config!=null){this.set(config)}
1}var keys;if(Object.keys){keys=Object.keys}else{keys=function(obj){var i,res=[];for(i in obj){if(hasOwnProp(obj,i)){res.push(i)}}return res}}var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function locale_calendar__calendar(key,mom,now){var output=this._calendar[key]||this._calendar["sameElse"];return isFunction(output)?output.call(mom,now):output}var defaultLongDateFormat={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"};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper){return format}this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)});return this._longDateFormat[key]}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d";var defaultOrdinalParse=/\d{1,2}/;function ordinal(number){return this._ordinal.replace("%d",number)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relative__relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)}function pastFuture(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return isFunction(format)?format(output):format.replace(/%s/i,output)}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return typeof units==="string"?aliases[units]||aliases[units.toLowerCase()]:undefined}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject){if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp){normalizedInput[normalizedProp]=inputObject[prop]}}}return normalizedInput}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority}function getPrioritizedUnits(unitsObj){var units=[];for(var u in unitsObj){units.push({unit:u,priority:priorities[u]})}units.sort(function(a,b){return a.priority-b.priority});return units}function makeGetSet(unit,keepTime){return function(value){if(value!=null){get_set__set(this,unit,value);utils_hooks__hooks.updateOffset(this,keepTime);return this}else{return get_set__get(this,unit)}}}function get_set__get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function get_set__set(mom,unit,value){if(mom.isValid()){mom._d["set"+(mom._isUTC?"UTC":"")+unit](value)}}function stringGet(units){units=normalizeUnits(units);if(isFunction(this[units])){return this[units]()}return this}function stringSet(units,value){if(typeof units==="object"){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units);for(var i=0;i<prioritized.length;i++){this[prioritized[i].unit](units[prioritized[i].unit])}}else{units=normalizeUnits(units);if(isFunction(this[units])){return this[units](value)}}return this}function zeroFill(number,targetLength,forceSign){var absNumber=""+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return(sign?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var formatFunctions={};var formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback==="string"){func=function(){return this[callback]()}}if(token){formatTokenFunctions[token]=func}if(padded){formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}}if(ordinal){formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)}}}function removeFormattingTokens(input){if(input.match(/\[[\s\S]/)){return input.replace(/^\[|\]$/g,"")}return input.replace(/\\/g,"")}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i<length;i++){if(formatTokenFunctions[array[i]]){array[i]=formatTokenFunctions[array[i]]}else{array[i]=removeFormattingTokens(array[i])}}return function(mom){var output="",i;for(i=0;i<length;i++){output+=array[i]instanceof Function?array[i].call(mom,format):array[i]}return output}}function formatMoment(m,format){if(!m.isValid()){return m.localeData().invalidDate()}format=expandFormat(format,m.localeData());formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format);return formatFunctions[format](m)}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}localFormattingTokens.lastIndex=0;while(i>=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1}return format}var match1=/\d/;var match2=/\d\d/;var match3=/\d{3}/;var match4=/\d{4}/;var match6=/[+-]?\d{6}/;var match1to2=/\d\d?/;var match3to4=/\d\d\d\d?/;var match5to6=/\d\d\d\d\d\d?/;var match1to3=/\d{1,3}/;var match1to4=/\d{1,4}/;var match1to6=/[+-]?\d{1,6}/;var matchUnsigned=/\d+/;var matchSigned=/[+-]?\d+/;var matchOffset=/Z|[+-]\d\d:?\d\d/gi;var matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi;var matchTimestamp=/[+-]?\d+(\.\d{1,3})?/;var matchWord=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;var regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token)){return new RegExp(unescapeFormat(token))}return regexes[token](config._strict,config._locale)}function unescapeFormat(s){return regexEscape(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(token,callback){var i,func=callback;
1if(typeof token==="string"){token=[token]}if(typeof callback==="number"){func=function(input,array){array[callback]=toInt(input)}}for(i=0;i<token.length;i++){tokens[token[i]]=func}}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{};callback(input,config._w,config,token)})}function addTimeToArrayFromToken(token,input,config){if(input!=null&&hasOwnProp(tokens,token)){tokens[token](input,config._a,config,token)}}var YEAR=0;var MONTH=1;var DATE=2;var HOUR=3;var MINUTE=4;var SECOND=5;var MILLISECOND=6;var WEEK=7;var WEEKDAY=8;var indexOf;if(Array.prototype.indexOf){indexOf=Array.prototype.indexOf}else{indexOf=function(o){var i;for(i=0;i<this.length;++i){if(this[i]===o){return i}}return-1}}function daysInMonth(year,month){return new Date(Date.UTC(year,month+1,0)).getUTCDate()}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(format){return this.localeData().monthsShort(this,format)});addFormatToken("MMMM",0,0,function(format){return this.localeData().months(this,format)});addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",match1to2);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(isStrict,locale){return locale.monthsShortRegex(isStrict)});addRegexToken("MMMM",function(isStrict,locale){return locale.monthsRegex(isStrict)});addParseToken(["M","MM"],function(input,array){array[MONTH]=toInt(input)-1});addParseToken(["MMM","MMMM"],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);if(month!=null){array[MONTH]=month}else{getParsingFlags(config).invalidMonth=input}});var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function localeMonths(m,format){if(!m){return this._months}return isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?"format":"standalone"][m.month()]}var defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function localeMonthsShort(m,format){if(!m){return this._monthsShort}return isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"][m.month()]}function units_month__handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){mom=create_utc__createUTC([2e3,i]);this._shortMonthsParse[i]=this.monthsShort(mom,"").toLocaleLowerCase();this._longMonthsParse[i]=this.months(mom,"").toLocaleLowerCase()}}if(strict){if(format==="MMM"){ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}}else{if(format==="MMM"){ii=indexOf.call(this._shortMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}}}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact){return units_month__handleStrictParse.call(this,monthName,format,strict)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(i=0;i<12;i++){mom=create_utc__createUTC([2e3,i]);if(strict&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i");this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")}if(!strict&&!this._monthsParse[i]){regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,"");this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")}if(strict&&format==="MMMM"&&this._longMonthsParse[i].test(monthName)){return i}else if(strict&&format==="MMM"&&this._shortMonthsParse[i].test(monthName)){return i}else if(!strict&&this._monthsParse[i].test(monthName)){return i}}}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid()){return mom}if(typeof value==="string"){if(/^\d+$/.test(value)){value=toInt(value)}else{value=mom.localeData().monthsParse(value);if(typeof value!=="number"){return mom}}}dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value));mom._d["set"+(mom._isUTC?"UTC":"")+"Month"](value,dayOfMonth);return mom}function getSetMonth(value){if(value!=null){setMonth(this,value);utils_hooks__hooks.updateOffset(this,true);return this}else{return get_set__get(this,"Month")}}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}var defaultMonthsShortRegex=matchWord;function monthsShortRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,"_monthsRegex")){computeMonthsParse.call(this)}if(isStrict){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!hasOwnProp(this,"_monthsShortRegex")){this._monthsShortRegex=defaultMonthsShortRegex}return this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex}}var defaultMonthsRegex=matchWord;function monthsRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,"_monthsRegex")){computeMonthsParse.call(this)}if(isStrict){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!hasOwnProp(this,"_monthsRegex")){this._monthsRegex=defaultMonthsRegex}return this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex}}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom;for(i=0;i<12;i++){mom=create_utc__createUTC([2e3,i]);shortPieces.push(this.monthsShort(mom,""));longPieces.push(this.months(mom,""));mixedPieces.push(this.months(mom,""));mixedPieces.push(this.monthsShort(mom,""))}shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<12;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i])}for(i=0;i<24;i++){mixedPieces[i]=regexEscape(mixedPieces[i])}this._monthsRegex=new RegExp("^("+mixedPieces.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i")}addFormatToken("Y",0,0,function(){var y=this.year();return y<=9999?""+y:"+"+y});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,true],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(input,array){array[YEAR]=input.length===2?utils_hooks__hooks.parseTwoDigitYear(input):toInt(input)});addParseToken("YY",function(input,array){array[YEAR]=utils_hooks__hooks.parseTwoDigitYear(input)});addParseToken("Y",function(input,array){array[YEAR]=parseInt(input,10)});function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0}utils_hooks__hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",true);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(y,m,d,h,M,s,ms){var date=new Date(y,m,d,h,M,s,ms);if(y<100&&y>=0&&isFinite(date.getFullYear())){date.setFullYear(y)}return date}function createUTCDate(y){var date=new Date(Date.UTC.apply(null,arguments));if(y<100&&y>=0&&isFinite(date.getUTCFullYear())){date.setUTCFullYear(y)}return date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy,fwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return-fwdlw+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;if(dayOfYear<=0){resYear=year-1;resDayOfYear=daysInYear(resYear)+dayOfYear}else if(dayOfYear>daysInYear(year)){resYear=year+1;
vendor: 9,793 bytes, line 1
1resDayOfYear=dayOfYear-daysInYear(year)}else{resYear=year;resDayOfYear=dayOfYear}return{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;if(week<1){resYear=mom.year()-1;resWeek=week+weeksInYear(resYear,dow,doy)}else if(week>weeksInYear(mom.year(),dow,doy)){resWeek=week-weeksInYear(mom.year(),dow,doy);resYear=mom.year()+1}else{resYear=mom.year();resWeek=week}return{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,"d")}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(format){return this.localeData().weekdaysMin(this,format)});addFormatToken("ddd",0,0,function(format){return this.localeData().weekdaysShort(this,format)});addFormatToken("dddd",0,0,function(format){return this.localeData().weekdays(this,format)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)});addRegexToken("ddd",function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)});addRegexToken("dddd",function(isStrict,locale){return locale.weekdaysRegex(isStrict)});addWeekParseToken(["dd","ddd","dddd"],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);if(weekday!=null){week.d=weekday}else{getParsingFlags(config).invalidWeekday=input}});addWeekParseToken(["d","e","E"],function(input,week,config,token){week[token]=toInt(input)});function parseWeekday(input,locale){if(typeof input!=="string"){return input}if(!isNaN(input)){return parseInt(input,10)}input=locale.weekdaysParse(input);if(typeof input==="number"){return input}return null}function parseIsoWeekday(input,locale){if(typeof input==="string"){return locale.weekdaysParse(input)%7||7}return isNaN(input)?null:input}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function localeWeekdays(m,format){if(!m){return this._weekdays}return isArray(this._weekdays)?this._weekdays[m.day()]:this._weekdays[this._weekdays.isFormat.test(format)?"format":"standalone"][m.day()]}var defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function localeWeekdaysShort(m){return m?this._weekdaysShort[m.day()]:this._weekdaysShort}var defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function localeWeekdaysMin(m){return m?this._weekdaysMin[m.day()]:this._weekdaysMin}function day_of_week__handleStrictParse(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){mom=create_utc__createUTC([2e3,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase()}}if(strict){if(format==="dddd"){ii=indexOf.call(this._weekdaysParse,llc);return ii!==-1?ii:null}else if(format==="ddd"){ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}}else{if(format==="dddd"){ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else if(format==="ddd"){ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}}}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact){return day_of_week__handleStrictParse.call(this,weekdayName,format,strict)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(i=0;i<7;i++){mom=create_utc__createUTC([2e3,1]).day(i);if(strict&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".",".?")+"$","i");this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".",".?")+"$","i");this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".",".?")+"$","i")}if(!this._weekdaysParse[i]){regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,"");this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")}if(strict&&format==="dddd"&&this._fullWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format==="ddd"&&this._shortWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format==="dd"&&this._minWeekdaysParse[i].test(weekdayName)){return i}else if(!strict&&this._weekdaysParse[i].test(weekdayName)){return i}}}function getSetDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var day=this._isUTC?this._d.getUTCDay():this._d.getDay();if(input!=null){input=parseWeekday(input,this.localeData());return this.add(input-day,"d")}else{return day}}function getSetLocaleDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,"d")}function getSetISODayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}if(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}else{return this.day()||7}}var defaultWeekdaysRegex=matchWord;function weekdaysRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,"_weekdaysRegex")){this._weekdaysRegex=defaultWeekdaysRegex}return this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex}}var defaultWeekdaysShortRegex=matchWord;function weekdaysShortRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=defaultWeekdaysShortRegex}return this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var defaultWeekdaysMinRegex=matchWord;function weekdaysMinRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=defaultWeekdaysMinRegex}return this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++){mom=create_utc__createUTC([2e3,1]).day(i);minp=this.weekdaysMin(mom,"");shortp=this.weekdaysShort(mom,"");longp=this.weekdays(mom,"");minPieces.push(minp);shortPieces.push(shortp);longPieces.push(longp);mixedPieces.push(minp);mixedPieces.push(shortp);mixedPieces.push(longp)}minPieces.sort(cmpLenRev);shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<7;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i]);mixedPieces[i]=regexEscape(mixedPieces[i])}this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}
1);addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)})}meridiem("a",true);meridiem("A",false);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(isStrict,locale){return locale._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["a","A"],function(input,array,config){config._isPm=config._locale.isPM(input);config._meridiem=input});addParseToken(["h","hh"],function(input,array,config){array[HOUR]=toInt(input);getParsingFlags(config).bigHour=true});addParseToken("hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));getParsingFlags(config).bigHour=true});addParseToken("hmmss",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));getParsingFlags(config).bigHour=true});addParseToken("Hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos))});addParseToken("Hmmss",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2))});function localeIsPM(input){return(input+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i;function localeMeridiem(hours,minutes,isLower){if(hours>11){return isLower?"pm":"PM"}else{return isLower?"am":"AM"}}var getSetHour=makeGetSet("Hours",true);var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,ordinalParse:defaultOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse};var locales={};var globalLocale;function normalizeLocale(key){return key?key.toLowerCase().replace("_","-"):key}function chooseLocale(names){var i=0,j,next,locale,split;while(i<names.length){split=normalizeLocale(names[i]).split("-");j=split.length;next=normalizeLocale(names[i+1]);next=next?next.split("-"):null;while(j>0){locale=loadLocale(split.slice(0,j).join("-"));if(locale){return locale}if(next&&next.length>=j&&compareArrays(split,next,true)>=j-1){break}j--}i++}return null}function loadLocale(name){var oldLocale=null;if(!locales[name]&&typeof module!=="undefined"&&module&&module.exports){try{oldLocale=globalLocale._abbr;require("./locale/"+name);locale_locales__getSetGlobalLocale(oldLocale)}catch(e){}}return locales[name]}function locale_locales__getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values)){data=locale_locales__getLocale(key)}else{data=defineLocale(key,values)}if(data){globalLocale=data}}return globalLocale._abbr}function defineLocale(name,config){if(config!==null){var parentConfig=baseConfig;config.abbr=name;if(locales[name]!=null){deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");parentConfig=locales[name]._config}else if(config.parentLocale!=null){if(locales[config.parentLocale]!=null){parentConfig=locales[config.parentLocale]._config}else{deprecateSimple("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")}}locales[name]=new Locale(mergeConfigs(parentConfig,config));locale_locales__getSetGlobalLocale(name);return locales[name]}else{delete locales[name];return null}}function updateLocale(name,config){if(config!=null){var locale,parentConfig=baseConfig;if(locales[name]!=null){parentConfig=locales[name]._config}config=mergeConfigs(parentConfig,config);locale=new Locale(config);locale.parentLocale=locales[name];locales[name]=locale;locale_locales__getSetGlobalLocale(name)}else{if(locales[name]!=null){if(locales[name].parentLocale!=null){locales[name]=locales[name].parentLocale}else if(locales[name]!=null){delete locales[name]}}}return locales[name]}function locale_locales__getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr}if(!key){return globalLocale}if(!isArray(key)){locale=loadLocale(key);if(locale){return locale}key=[key]}return chooseLocale(key)}function locale_locales__listLocales(){return keys(locales)}function checkOverflow(m){var overflow;var a=m._a;if(a&&getParsingFlags(m).overflow===-2){overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)){overflow=DATE}if(getParsingFlags(m)._overflowWeeks&&overflow===-1){overflow=WEEK}if(getParsingFlags(m)._overflowWeekday&&overflow===-1){overflow=WEEKDAY}getParsingFlags(m).overflow=overflow}return m}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/;var basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/;var tzRegex=/Z|[+-]\d\d(?::?\d\d)?/;var isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/]];var isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]];var aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break}}if(dateFormat==null){config._isValid=false;return}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}}if(timeFormat==null){config._isValid=false;return}}if(!allowTime&&timeFormat!=null){config._isValid=false;return}if(match[4]){if(tzRegex.exec(match[4])){tzFormat="Z"}else{config._isValid=false;return}}config._f=dateFormat+(timeFormat||"")+(tzFormat||"");configFromStringAndFormat(config)}
1else{config._isValid=false}}function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(matched!==null){config._d=new Date(+matched[1]);return}configFromISO(config);if(config._isValid===false){delete config._isValid;utils_hooks__hooks.createFromInputFallback(config)}}utils_hooks__hooks.createFromInputFallback=deprecate("value provided is not in a recognized ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non ISO date formats are "+"discouraged and will be removed in an upcoming major release. Please refer to "+"http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(config){config._d=new Date(config._i+(config._useUTC?" UTC":""))});function defaults(a,b,c){if(a!=null){return a}if(b!=null){return b}return c}function currentDateArray(config){var nowValue=new Date(utils_hooks__hooks.now());if(config._useUTC){return[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]}return[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}function configFromArray(config){var i,date,input=[],currentDate,yearToUse;if(config._d){return}currentDate=currentDateArray(config);if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){dayOfYearFromWeekInfo(config)}if(config._dayOfYear){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)){getParsingFlags(config)._overflowDayOfYear=true}date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate()}for(i=0;i<3&&config._a[i]==null;++i){config._a[i]=input[i]=currentDate[i]}for(;i<7;i++){config._a[i]=input[i]=config._a[i]==null?i===2?1:0:config._a[i]}if(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);if(config._tzm!=null){config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm)}if(config._nextDay){config._a[HOUR]=24}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(local__createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1);if(weekday<1||weekday>7){weekdayOverflow=true}}else{dow=config._locale._week.dow;doy=config._locale._week.doy;weekYear=defaults(w.gg,config._a[YEAR],weekOfYear(local__createLocal(),dow,doy).year);week=defaults(w.w,1);if(w.d!=null){weekday=w.d;if(weekday<0||weekday>6){weekdayOverflow=true}}else if(w.e!=null){weekday=w.e+dow;if(w.e<0||w.e>6){weekdayOverflow=true}}else{weekday=dow}}if(week<1||week>weeksInYear(weekYear,dow,doy)){getParsingFlags(config)._overflowWeeks=true}else if(weekdayOverflow!=null){getParsingFlags(config)._overflowWeekday=true}else{temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy);config._a[YEAR]=temp.year;config._dayOfYear=temp.dayOfYear}}utils_hooks__hooks.ISO_8601=function(){};function configFromStringAndFormat(config){if(config._f===utils_hooks__hooks.ISO_8601){configFromISO(config);return}config._a=[];getParsingFlags(config).empty=true;var string=""+config._i,i,parsedInput,tokens,token,skipped,stringLength=string.length,totalParsedInputLength=0;tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[];for(i=0;i<tokens.length;i++){token=tokens[i];parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0];if(parsedInput){skipped=string.substr(0,string.indexOf(parsedInput));if(skipped.length>0){getParsingFlags(config).unusedInput.push(skipped)}string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length}if(formatTokenFunctions[token]){if(parsedInput){getParsingFlags(config).empty=false}else{getParsingFlags(config).unusedTokens.push(token)}addTimeToArrayFromToken(token,parsedInput,config)}else if(config._strict&&!parsedInput){getParsingFlags(config).unusedTokens.push(token)}}getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0){getParsingFlags(config).unusedInput.push(string)}if(config._a[HOUR]<=12&&getParsingFlags(config).bigHour===true&&config._a[HOUR]>0){getParsingFlags(config).bigHour=undefined}getParsingFlags(config).parsedDateParts=config._a.slice(0);getParsingFlags(config).meridiem=config._meridiem;
1config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);configFromArray(config);checkOverflow(config)}function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null){return hour}if(locale.meridiemHour!=null){return locale.meridiemHour(hour,meridiem)}else if(locale.isPM!=null){isPm=locale.isPM(meridiem);if(isPm&&hour<12){hour+=12}if(!isPm&&hour===12){hour=0}return hour}else{return hour}}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(config._f.length===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return}for(i=0;i<config._f.length;i++){currentScore=0;tempConfig=copyConfig({},config);if(config._useUTC!=null){tempConfig._useUTC=config._useUTC}tempConfig._f=config._f[i];configFromStringAndFormat(tempConfig);if(!valid__isValid(tempConfig)){continue}currentScore+=getParsingFlags(tempConfig).charsLeftOver;currentScore+=getParsingFlags(tempConfig).unusedTokens.length*10;getParsingFlags(tempConfig).score=currentScore;if(scoreToBeat==null||currentScore<scoreToBeat){scoreToBeat=currentScore;bestMoment=tempConfig}}extend(config,bestMoment||tempConfig)}function configFromObject(config){if(config._d){return}var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)});configFromArray(config)}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));if(res._nextDay){res.add(1,"d");res._nextDay=undefined}return res}function prepareConfig(config){var input=config._i,format=config._f;config._locale=config._locale||locale_locales__getLocale(config._l);if(input===null||format===undefined&&input===""){return valid__createInvalid({nullInput:true})}if(typeof input==="string"){config._i=input=config._locale.preparse(input)}if(isMoment(input)){return new Moment(checkOverflow(input))}else if(isArray(format)){configFromStringAndArray(config)}else if(isDate(input)){config._d=input}else if(format){configFromStringAndFormat(config)}else{configFromInput(config)}if(!valid__isValid(config)){config._d=null}return config}function configFromInput(config){var input=config._i;if(input===undefined){config._d=new Date(utils_hooks__hooks.now())}else if(isDate(input)){config._d=new Date(input.valueOf())}else if(typeof input==="string"){configFromString(config)}else if(isArray(input)){config._a=map(input.slice(0),function(obj){return parseInt(obj,10)});configFromArray(config)}else if(typeof input==="object"){configFromObject(config)}else if(typeof input==="number"){config._d=new Date(input)}else{utils_hooks__hooks.createFromInputFallback(config)}}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};if(typeof locale==="boolean"){strict=locale;locale=undefined}if(isObject(input)&&isObjectEmpty(input)||isArray(input)&&input.length===0){input=undefined}c._isAMomentObject=true;c._useUTC=c._isUTC=isUTC;c._l=locale;c._i=input;c._f=format;c._strict=strict;return createFromConfig(c)}function local__createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,false)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=local__createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other<this?this:other}else{return valid__createInvalid()}});var prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=local__createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other>this?this:other}else{return valid__createInvalid()}});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0])){moments=moments[0]}if(!moments.length){return local__createLocal()}res=moments[0];for(i=1;i<moments.length;++i){if(!moments[i].isValid()||moments[i][fn](res)){res=moments[i]}}return res}function min(){var args=[].slice.call(arguments,0);return pickBy("isBefore",args)}function max(){var args=[].slice.call(arguments,0);return pickBy("isAfter",args)}var now=function(){return Date.now?Date.now():+new Date};function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._milliseconds=+milliseconds+seconds*1e3+minutes*6e4+hours*1e3*60*60;this._days=+days+weeks*7;this._months=+months+quarters*3+years*12;this._data={};this._locale=locale_locales__getLocale();this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){if(number<0){return Math.round(-1*number)*-1}else{return Math.round(number)}}function offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset();var sign="+";if(offset<0){offset=-offset;sign="-"}return sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(input,array,config){config._useUTC=true;config._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(matcher,string){var matches=(string||"").match(matcher)||[];var chunk=matches[matches.length-1]||[];var parts=(chunk+"").match(chunkOffset)||["-",0,0];
1var minutes=+(parts[1]*60)+toInt(parts[2]);return parts[0]==="+"?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;if(model._isUTC){res=model.clone();diff=(isMoment(input)||isDate(input)?input.valueOf():local__createLocal(input).valueOf())-res.valueOf();res._d.setTime(res._d.valueOf()+diff);utils_hooks__hooks.updateOffset(res,false);return res}else{return local__createLocal(input).local()}}function getDateOffset(m){return-Math.round(m._d.getTimezoneOffset()/15)*15}utils_hooks__hooks.updateOffset=function(){};function getSetOffset(input,keepLocalTime){var offset=this._offset||0,localAdjust;if(!this.isValid()){return input!=null?this:NaN}if(input!=null){if(typeof input==="string"){input=offsetFromString(matchShortOffset,input)}else if(Math.abs(input)<16){input=input*60}if(!this._isUTC&&keepLocalTime){localAdjust=getDateOffset(this)}this._offset=input;this._isUTC=true;if(localAdjust!=null){this.add(localAdjust,"m")}if(offset!==input){if(!keepLocalTime||this._changeInProgress){add_subtract__addSubtract(this,create__createDuration(input-offset,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;utils_hooks__hooks.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?offset:getDateOffset(this)}}function getSetZone(input,keepLocalTime){if(input!=null){if(typeof input!=="string"){input=-input}this.utcOffset(input,keepLocalTime);return this}else{return-this.utcOffset()}}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)}function setOffsetToLocal(keepLocalTime){if(this._isUTC){this.utcOffset(0,keepLocalTime);this._isUTC=false;if(keepLocalTime){this.subtract(getDateOffset(this),"m")}}return this}function setOffsetToParsedOffset(){if(this._tzm){this.utcOffset(this._tzm)}else if(typeof this._i==="string"){var tZone=offsetFromString(matchOffset,this._i);if(tZone===0){this.utcOffset(0,true)}else{this.utcOffset(offsetFromString(matchOffset,this._i))}}return this}function hasAlignedHourOffset(input){if(!this.isValid()){return false}input=input?local__createLocal(input).utcOffset():0;return(this.utcOffset()-input)%60===0}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var c={};copyConfig(c,this);c=prepareConfig(c);if(c._a){var other=c._isUTC?create_utc__createUTC(c._a):local__createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var aspNetRegex=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;var isoRegex=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function create__createDuration(input,key){var duration=input,match=null,sign,ret,diffRes;if(isDuration(input)){duration={ms:input._milliseconds,d:input._days,M:input._months}}else if(typeof input==="number"){duration={};if(key){duration[key]=input}else{duration.milliseconds=input}}else if(!!(match=aspNetRegex.exec(input))){sign=match[1]==="-"?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(match[MILLISECOND]*1e3))*sign}}else if(!!(match=isoRegex.exec(input))){sign=match[1]==="-"?-1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}}else if(duration==null){duration={}}else if(typeof duration==="object"&&("from"in duration||"to"in duration)){diffRes=momentsDifference(local__createLocal(duration.from),local__createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,"_locale")){ret._locale=input._locale}return ret}create__createDuration.fn=Duration.prototype;function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,"M").isAfter(other)){--res.months}res.milliseconds=+other-+base.clone().add(res.months,"M");return res}function momentsDifference(base,other){var res;if(!(base.isValid()&&other.isValid())){return{milliseconds:0,months:0}}other=cloneWithOffset(other,base);if(base.isBefore(other)){res=positiveMomentsDifference(base,other)}else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months}return res}function createAdder(direction,name){return function(val,period){var dur,tmp;
1if(period!==null&&!isNaN(+period)){deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");tmp=val;val=period;period=tmp}val=typeof val==="string"?+val:val;dur=create__createDuration(val,period);add_subtract__addSubtract(this,dur,direction);return this}}function add_subtract__addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);if(!mom.isValid()){return}updateOffset=updateOffset==null?true:updateOffset;if(milliseconds){mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding)}if(days){get_set__set(mom,"Date",get_set__get(mom,"Date")+days*isAdding)}if(months){setMonth(mom,get_set__get(mom,"Month")+months*isAdding)}if(updateOffset){utils_hooks__hooks.updateOffset(mom,days||months)}}var add_subtract__add=createAdder(1,"add");var add_subtract__subtract=createAdder(-1,"subtract");function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,"days",true);return diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse"}function moment_calendar__calendar(time,formats){var now=time||local__createLocal(),sod=cloneWithOffset(now,this).startOf("day"),format=utils_hooks__hooks.calendarFormat(this,sod)||"sameElse";var output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,local__createLocal(now)))}function clone(){return new Moment(this)}function isAfter(input,units){var localInput=isMoment(input)?input:local__createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:"millisecond");if(units==="millisecond"){return this.valueOf()>localInput.valueOf()}else{return localInput.valueOf()<this.clone().startOf(units).valueOf()}}function isBefore(input,units){var localInput=isMoment(input)?input:local__createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:"millisecond");if(units==="millisecond"){return this.valueOf()<localInput.valueOf()}else{return this.clone().endOf(units).valueOf()<localInput.valueOf()}}function isBetween(from,to,units,inclusivity){inclusivity=inclusivity||"()";return(inclusivity[0]==="("?this.isAfter(from,units):!this.isBefore(from,units))&&(inclusivity[1]===")"?this.isBefore(to,units):!this.isAfter(to,units))}function isSame(input,units){var localInput=isMoment(input)?input:local__createLocal(input),inputMs;if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(units||"millisecond");if(units==="millisecond"){return this.valueOf()===localInput.valueOf()}else{inputMs=localInput.valueOf();return this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()}}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)}function diff(input,units,asFloat){var that,zoneDelta,delta,output;if(!this.isValid()){return NaN}that=cloneWithOffset(input,this);if(!that.isValid()){return NaN}zoneDelta=(that.utcOffset()-this.utcOffset())*6e4;units=normalizeUnits(units);if(units==="year"||units==="month"||units==="quarter"){output=monthDiff(this,that);if(units==="quarter"){output=output/3}else if(units==="year"){output=output/12}}else{delta=this-that;output=units==="second"?delta/1e3:units==="minute"?delta/6e4:units==="hour"?delta/36e5:units==="day"?(delta-zoneDelta)/864e5:units==="week"?(delta-zoneDelta)/6048e5:delta}return asFloat?output:absFloor(output)}function monthDiff(a,b){var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months"),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,"months");adjust=(b-anchor)/(anchor-anchor2)}else{anchor2=a.clone().add(wholeMonthDiff+1,"months");adjust=(b-anchor)/(anchor2-anchor)}return-(wholeMonthDiff+adjust)||0}utils_hooks__hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";utils_hooks__hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function moment_format__toISOString(){var m=this.clone().utc();if(0<m.year()&&m.year()<=9999){if(isFunction(Date.prototype.toISOString)){return this.toDate().toISOString()}else{return formatMoment(m,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}}else{return formatMoment(m,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}}function format(inputString){if(!inputString){inputString=this.isUtc()?utils_hooks__hooks.defaultFormatUtc:utils_hooks__hooks.defaultFormat}var output=formatMoment(this,inputString);
1return this.localeData().postformat(output)}function from(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||local__createLocal(time).isValid())){return create__createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function fromNow(withoutSuffix){return this.from(local__createLocal(),withoutSuffix)}function to(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||local__createLocal(time).isValid())){return create__createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function toNow(withoutSuffix){return this.to(local__createLocal(),withoutSuffix)}function locale(key){var newLocaleData;if(key===undefined){return this._locale._abbr}else{newLocaleData=locale_locales__getLocale(key);if(newLocaleData!=null){this._locale=newLocaleData}return this}}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(key){if(key===undefined){return this.localeData()}else{return this.locale(key)}});function localeData(){return this._locale}function startOf(units){units=normalizeUnits(units);switch(units){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}if(units==="week"){this.weekday(0)}if(units==="isoWeek"){this.isoWeekday(1)}if(units==="quarter"){this.month(Math.floor(this.month()/3)*3)}return this}function endOf(units){units=normalizeUnits(units);if(units===undefined||units==="millisecond"){return this}if(units==="date"){units="day"}return this.startOf(units).add(1,units==="isoWeek"?"week":units).subtract(1,"ms")}function to_type__valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function moment_valid__isValid(){return valid__isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}
1function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(input,week,config,token){week[token.substr(0,2)]=toInt(input)});addWeekParseToken(["gg","GG"],function(input,week,config,token){week[token]=utils_hooks__hooks.parseTwoDigitYear(input)});function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;if(input==null){return weekOfYear(this,dow,doy).year}else{weeksTarget=weeksInYear(input,dow,doy);if(week>weeksTarget){week=weeksTarget}return setWeekAll.call(this,input,week,weekday,dow,doy)}}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);this.year(date.getUTCFullYear());this.month(date.getUTCMonth());this.date(date.getUTCDate());return this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(input,array){array[MONTH]=(toInt(input)-1)*3});function getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(isStrict,locale){return isStrict?locale._ordinalParse:locale._ordinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(input,array){array[DATE]=toInt(input.match(match1to2)[0],10)});var getSetDayOfMonth=makeGetSet("Date",true);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(input,array,config){config._dayOfYear=toInt(input)});function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",false);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",false);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token;for(token="SSSS";token.length<=9;token+="S"){addRegexToken(token,matchUnsigned)}function parseMs(input,array){array[MILLISECOND]=toInt(("0."+input)*1e3)}for(token="S";token.length<=9;token+="S"){addParseToken(token,parseMs)}
1var getSetMillisecond=makeGetSet("Milliseconds",false);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var momentPrototype__proto=Moment.prototype;momentPrototype__proto.add=add_subtract__add;momentPrototype__proto.calendar=moment_calendar__calendar;momentPrototype__proto.clone=clone;momentPrototype__proto.diff=diff;momentPrototype__proto.endOf=endOf;momentPrototype__proto.format=format;momentPrototype__proto.from=from;momentPrototype__proto.fromNow=fromNow;momentPrototype__proto.to=to;momentPrototype__proto.toNow=toNow;momentPrototype__proto.get=stringGet;momentPrototype__proto.invalidAt=invalidAt;momentPrototype__proto.isAfter=isAfter;momentPrototype__proto.isBefore=isBefore;momentPrototype__proto.isBetween=isBetween;momentPrototype__proto.isSame=isSame;momentPrototype__proto.isSameOrAfter=isSameOrAfter;momentPrototype__proto.isSameOrBefore=isSameOrBefore;momentPrototype__proto.isValid=moment_valid__isValid;momentPrototype__proto.lang=lang;momentPrototype__proto.locale=locale;momentPrototype__proto.localeData=localeData;momentPrototype__proto.max=prototypeMax;momentPrototype__proto.min=prototypeMin;momentPrototype__proto.parsingFlags=parsingFlags;momentPrototype__proto.set=stringSet;momentPrototype__proto.startOf=startOf;momentPrototype__proto.subtract=add_subtract__subtract;momentPrototype__proto.toArray=toArray;momentPrototype__proto.toObject=toObject;momentPrototype__proto.toDate=toDate;momentPrototype__proto.toISOString=moment_format__toISOString;momentPrototype__proto.toJSON=toJSON;momentPrototype__proto.toString=toString;momentPrototype__proto.unix=unix;momentPrototype__proto.valueOf=to_type__valueOf;momentPrototype__proto.creationData=creationData;momentPrototype__proto.year=getSetYear;momentPrototype__proto.isLeapYear=getIsLeapYear;momentPrototype__proto.weekYear=getSetWeekYear;momentPrototype__proto.isoWeekYear=getSetISOWeekYear;momentPrototype__proto.quarter=momentPrototype__proto.quarters=getSetQuarter;momentPrototype__proto.month=getSetMonth;momentPrototype__proto.daysInMonth=getDaysInMonth;momentPrototype__proto.week=momentPrototype__proto.weeks=getSetWeek;momentPrototype__proto.isoWeek=momentPrototype__proto.isoWeeks=getSetISOWeek;momentPrototype__proto.weeksInYear=getWeeksInYear;momentPrototype__proto.isoWeeksInYear=getISOWeeksInYear;momentPrototype__proto.date=getSetDayOfMonth;momentPrototype__proto.day=momentPrototype__proto.days=getSetDayOfWeek;momentPrototype__proto.weekday=getSetLocaleDayOfWeek;momentPrototype__proto.isoWeekday=getSetISODayOfWeek;momentPrototype__proto.dayOfYear=getSetDayOfYear;momentPrototype__proto.hour=momentPrototype__proto.hours=getSetHour;momentPrototype__proto.minute=momentPrototype__proto.minutes=getSetMinute;momentPrototype__proto.second=momentPrototype__proto.seconds=getSetSecond;momentPrototype__proto.millisecond=momentPrototype__proto.milliseconds=getSetMillisecond;momentPrototype__proto.utcOffset=getSetOffset;momentPrototype__proto.utc=setOffsetToUTC;momentPrototype__proto.local=setOffsetToLocal;momentPrototype__proto.parseZone=setOffsetToParsedOffset;momentPrototype__proto.hasAlignedHourOffset=hasAlignedHourOffset;momentPrototype__proto.isDST=isDaylightSavingTime;momentPrototype__proto.isLocal=isLocal;momentPrototype__proto.isUtcOffset=isUtcOffset;momentPrototype__proto.isUtc=isUtc;momentPrototype__proto.isUTC=isUtc;momentPrototype__proto.zoneAbbr=getZoneAbbr;momentPrototype__proto.zoneName=getZoneName;momentPrototype__proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);momentPrototype__proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);momentPrototype__proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);momentPrototype__proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);momentPrototype__proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var momentPrototype=momentPrototype__proto;function moment__createUnix(input){return local__createLocal(input*1e3)}function moment__createInZone(){return local__createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(string){return string}var prototype__proto=Locale.prototype;prototype__proto.calendar=locale_calendar__calendar;prototype__proto.longDateFormat=longDateFormat;prototype__proto.invalidDate=invalidDate;prototype__proto.ordinal=ordinal;prototype__proto.preparse=preParsePostFormat;prototype__proto.postformat=preParsePostFormat;prototype__proto.relativeTime=relative__relativeTime;prototype__proto.pastFuture=pastFuture;prototype__proto.set=locale_set__set;prototype__proto.months=localeMonths;prototype__proto.monthsShort=localeMonthsShort;prototype__proto.monthsParse=localeMonthsParse;prototype__proto.monthsRegex=monthsRegex;prototype__proto.monthsShortRegex=monthsShortRegex;prototype__proto.week=localeWeek;prototype__proto.firstDayOfYear=localeFirstDayOfYear;prototype__proto.firstDayOfWeek=localeFirstDayOfWeek;prototype__proto.weekdays=localeWeekdays;prototype__proto.weekdaysMin=localeWeekdaysMin;prototype__proto.weekdaysShort=localeWeekdaysShort;prototype__proto.weekdaysParse=localeWeekdaysParse;prototype__proto.weekdaysRegex=weekdaysRegex;prototype__proto.weekdaysShortRegex=weekdaysShortRegex;prototype__proto.weekdaysMinRegex=weekdaysMinRegex;prototype__proto.isPM=localeIsPM;prototype__proto.meridiem=localeMeridiem;function lists__get(format,index,field,setter){var locale=locale_locales__getLocale();var utc=create_utc__createUTC().set(setter,index);
1return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(typeof format==="number"){index=format;format=undefined}format=format||"";if(index!=null){return lists__get(format,index,field,"month")}var i;var out=[];for(i=0;i<12;i++){out[i]=lists__get(format,i,field,"month")}return out}function listWeekdaysImpl(localeSorted,format,index,field){if(typeof localeSorted==="boolean"){if(typeof format==="number"){index=format;format=undefined}format=format||""}else{format=localeSorted;index=format;localeSorted=false;if(typeof format==="number"){index=format;format=undefined}format=format||""}var locale=locale_locales__getLocale(),shift=localeSorted?locale._week.dow:0;if(index!=null){return lists__get(format,(index+shift)%7,field,"day")}var i;var out=[];for(i=0;i<7;i++){out[i]=lists__get(format,(i+shift)%7,field,"day")}return out}function lists__listMonths(format,index){return listMonthsImpl(format,index,"months")}function lists__listMonthsShort(format,index){return listMonthsImpl(format,index,"monthsShort")}function lists__listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdays")}function lists__listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysShort")}function lists__listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysMin")}locale_locales__getSetGlobalLocale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10,output=toInt(number%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return number+output}});utils_hooks__hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",locale_locales__getSetGlobalLocale);utils_hooks__hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",locale_locales__getLocale);var mathAbs=Math.abs;function duration_abs__abs(){var data=this._data;this._milliseconds=mathAbs(this._milliseconds);this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);return this}function duration_add_subtract__addSubtract(duration,input,value,direction){var other=create__createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;return duration._bubble()}function duration_add_subtract__add(input,value){return duration_add_subtract__addSubtract(this,input,value,1)}function duration_add_subtract__subtract(input,value){return duration_add_subtract__addSubtract(this,input,value,-1)}function absCeil(number){if(number<0){return Math.floor(number)}else{return Math.ceil(number)}}function bubble(){var milliseconds=this._milliseconds;var days=this._days;var months=this._months;var data=this._data;var seconds,minutes,hours,years,monthsFromDays;if(!(milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0}data.milliseconds=milliseconds%1e3;seconds=absFloor(milliseconds/1e3);data.seconds=seconds%60;minutes=absFloor(seconds/60);data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this}function daysToMonths(days){return days*4800/146097}function monthsToDays(months){return months*146097/4800}function as(units){var days;var months;var milliseconds=this._milliseconds;units=normalizeUnits(units);if(units==="month"||units==="year"){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);return units==="month"?months:months/12}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return days*24+milliseconds/36e5;case"minute":return days*1440+milliseconds/6e4;case"second":return days*86400+milliseconds/1e3;case"millisecond":return Math.floor(days*864e5)+milliseconds;default:throw new Error("Unknown unit "+units)}}}function duration_as__valueOf(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms");var asSeconds=makeAs("s");var asMinutes=makeAs("m");var asHours=makeAs("h");var asDays=makeAs("d");var asWeeks=makeAs("w");var asMonths=makeAs("M");var asYears=makeAs("y");function duration_get__get(units){units=normalizeUnits(units);return this[units+"s"]()}function makeGetter(name){return function(){return this._data[name]}}var milliseconds=makeGetter("milliseconds");var seconds=makeGetter("seconds");var minutes=makeGetter("minutes");var hours=makeGetter("hours");var days=makeGetter("days");var months=makeGetter("months");var years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}
1var round=Math.round;var thresholds={s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}function duration_humanize__relativeTime(posNegDuration,withoutSuffix,locale){var duration=create__createDuration(posNegDuration).abs();var seconds=round(duration.as("s"));var minutes=round(duration.as("m"));var hours=round(duration.as("h"));var days=round(duration.as("d"));var months=round(duration.as("M"));var years=round(duration.as("y"));var a=seconds<thresholds.s&&["s",seconds]||minutes<=1&&["m"]||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days]||months<=1&&["M"]||months<thresholds.M&&["MM",months]||years<=1&&["y"]||["yy",years];a[2]=withoutSuffix;a[3]=+posNegDuration>0;a[4]=locale;return substituteTimeAgo.apply(null,a)}function duration_humanize__getSetRelativeTimeRounding(roundingFunction){if(roundingFunction===undefined){return round}if(typeof roundingFunction==="function"){round=roundingFunction;return true}return false}function duration_humanize__getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined){return false}if(limit===undefined){return thresholds[threshold]}thresholds[threshold]=limit;return true}function humanize(withSuffix){var locale=this.localeData();var output=duration_humanize__relativeTime(this,!withSuffix,locale);if(withSuffix){output=locale.pastFuture(+this,output)}return locale.postformat(output)}var iso_string__abs=Math.abs;function iso_string__toISOString(){var seconds=iso_string__abs(this._milliseconds)/1e3;var days=iso_string__abs(this._days);var months=iso_string__abs(this._months);var minutes,hours,years;minutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;years=absFloor(months/12);months%=12;var Y=years;var M=months;var D=days;var h=hours;var m=minutes;var s=seconds;var total=this.asSeconds();if(!total){return"P0D"}return(total<0?"-":"")+"P"+(Y?Y+"Y":"")+(M?M+"M":"")+(D?D+"D":"")+(h||m||s?"T":"")+(h?h+"H":"")+(m?m+"M":"")+(s?s+"S":"")}var duration_prototype__proto=Duration.prototype;duration_prototype__proto.abs=duration_abs__abs;duration_prototype__proto.add=duration_add_subtract__add;duration_prototype__proto.subtract=duration_add_subtract__subtract;duration_prototype__proto.as=as;duration_prototype__proto.asMilliseconds=asMilliseconds;duration_prototype__proto.asSeconds=asSeconds;duration_prototype__proto.asMinutes=asMinutes;duration_prototype__proto.asHours=asHours;duration_prototype__proto.asDays=asDays;duration_prototype__proto.asWeeks=asWeeks;duration_prototype__proto.asMonths=asMonths;duration_prototype__proto.asYears=asYears;duration_prototype__proto.valueOf=duration_as__valueOf;duration_prototype__proto._bubble=bubble;duration_prototype__proto.get=duration_get__get;duration_prototype__proto.milliseconds=milliseconds;duration_prototype__proto.seconds=seconds;duration_prototype__proto.minutes=minutes;duration_prototype__proto.hours=hours;duration_prototype__proto.days=days;duration_prototype__proto.weeks=weeks;duration_prototype__proto.months=months;duration_prototype__proto.years=years;duration_prototype__proto.humanize=humanize;duration_prototype__proto.toISOString=iso_string__toISOString;duration_prototype__proto.toString=iso_string__toISOString;duration_prototype__proto.toJSON=iso_string__toISOString;duration_prototype__proto.locale=locale;duration_prototype__proto.localeData=localeData;duration_prototype__proto.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iso_string__toISOString);duration_prototype__proto.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(input,array,config){config._d=new Date(parseFloat(input,10)*1e3)});addParseToken("x",function(input,array,config){config._d=new Date(toInt(input))});utils_hooks__hooks.version="2.15.2";setHookCallback(local__createLocal);utils_hooks__hooks.fn=momentPrototype;utils_hooks__hooks.min=min;utils_hooks__hooks.max=max;utils_hooks__hooks.now=now;utils_hooks__hooks.utc=create_utc__createUTC;utils_hooks__hooks.unix=moment__createUnix;utils_hooks__hooks.months=lists__listMonths;utils_hooks__hooks.isDate=isDate;utils_hooks__hooks.locale=locale_locales__getSetGlobalLocale;
1utils_hooks__hooks.invalid=valid__createInvalid;utils_hooks__hooks.duration=create__createDuration;utils_hooks__hooks.isMoment=isMoment;utils_hooks__hooks.weekdays=lists__listWeekdays;utils_hooks__hooks.parseZone=moment__createInZone;utils_hooks__hooks.localeData=locale_locales__getLocale;utils_hooks__hooks.isDuration=isDuration;utils_hooks__hooks.monthsShort=lists__listMonthsShort;utils_hooks__hooks.weekdaysMin=lists__listWeekdaysMin;utils_hooks__hooks.defineLocale=defineLocale;utils_hooks__hooks.updateLocale=updateLocale;utils_hooks__hooks.locales=locale_locales__listLocales;utils_hooks__hooks.weekdaysShort=lists__listWeekdaysShort;utils_hooks__hooks.normalizeUnits=normalizeUnits;utils_hooks__hooks.relativeTimeRounding=duration_humanize__getSetRelativeTimeRounding;utils_hooks__hooks.relativeTimeThreshold=duration_humanize__getSetRelativeTimeThreshold;utils_hooks__hooks.calendarFormat=getCalendarFormat;utils_hooks__hooks.prototype=momentPrototype;var _moment=utils_hooks__hooks;return _moment})}(function(window,document,undefined){"use strict";var hasMoment=typeof window.moment==="function",hasEventListeners=!!window.addEventListener,sto=window.setTimeout,addEvent=function(el,e,callback,capture){if(hasEventListeners){el.addEventListener(e,callback,!!capture)}else{el.attachEvent("on"+e,callback)}},removeEvent=function(el,e,callback,capture){if(hasEventListeners){el.removeEventListener(e,callback,!!capture)}else{el.detachEvent("on"+e,callback)}},trim=function(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")},hasClass=function(el,cn){return(" "+el.className+" ").indexOf(" "+cn+" ")!==-1},addClass=function(el,cn){if(!hasClass(el,cn)){el.className=el.className===""?cn:el.className+" "+cn}},removeClass=function(el,cn){el.className=trim((" "+el.className+" ").replace(" "+cn+" "," "))},isArray=function(obj){return/Array/.test(Object.prototype.toString.call(obj))},isDate=function(obj){return/Date/.test(Object.prototype.toString.call(obj))&&!isNaN(obj.getTime())},isLeapYear=function(year){return year%4===0&&year%100!==0||year%400===0},getDaysInMonth=function(year,month){return[31,isLeapYear(year)?29:28,31,30,31,30,31,31,30,31,30,31][month]},compareDates=function(a,b){return a.toDateString()===b.toDateString()},extend=function(to,from,overwrite){var prop,hasProp;for(prop in from){hasProp=to[prop]!==undefined;if(hasProp&&typeof from[prop]==="object"&&from[prop]!==null&&from[prop].nodeName===undefined){if(isDate(from[prop])){if(overwrite){to[prop]=new Date(from[prop].getTime())}}else if(isArray(from[prop])){if(overwrite){to[prop]=from[prop].slice(0)}}else{to[prop]=extend({},from[prop],overwrite)}}else if(overwrite||!hasProp){to[prop]=from[prop]}}return to},defaults={field:null,bound:undefined,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:false,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,isRTL:false,numberOfMonths:1,i18n:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],weekdays:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],weekdaysShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],timeTitles:["Óra","Perc"]},showTimePicker:false,minuteStep:1,defaultTime:false,showMeridian:true,onSelect:null,onOpen:null,onClose:null,onDraw:null},renderDayName=function(opts,day,abbr){day+=opts.firstDay;while(day>=7){day-=7}return abbr?opts.i18n.weekdaysShort[day]:opts.i18n.weekdays[day]},renderDay=function(i,isSelected,isToday,isDisabled,isEmpty){if(isEmpty){return'<td class="is-empty"></td>'}var arr=[];if(isDisabled){arr.push("is-disabled")}if(isToday){arr.push("is-today")}if(isSelected){arr.push("is-selected")}return'<td data-day="'+i+'" class="'+arr.join(" ")+'"><button class="pika-button" type="button">'+i+"</button>"+"</td>"},renderRow=function(days,isRTL){return"<tr>"+(isRTL?days.reverse():days).join("")+"</tr>"},renderBody=function(rows){return"<tbody>"+rows.join("")+"</tbody>"},renderHead=function(opts){var i,arr=[];for(i=0;i<7;i++){arr.push('<th scope="col"><abbr title="'+renderDayName(opts,i)+'">'+renderDayName(opts,i,true)+"</abbr></th>")}return"<thead>"+(opts.isRTL?arr.reverse():arr).join("")+"</thead>"},renderTitle=function(instance){var i,j,arr,opts=instance._o,month=instance._m,year=instance._y,isMinYear=year===opts.minYear,isMaxYear=year===opts.maxYear,html='<div class="pika-title">',prev=true,next=true;for(arr=[],i=0;i<12;i++){arr.push('<option value="'+i+'"'+(i===month?" selected":"")+(isMinYear&&i<opts.minMonth||isMaxYear&&i>opts.maxMonth?"disabled":"")+">"+opts.i18n.months[i]+"</option>")}html+='<div class="pika-label">'+opts.i18n.months[month]+'<select class="pika-select pika-select-month">'+arr.join("")+"</select></div>";if(isArray(opts.yearRange)){i=opts.yearRange[0];j=opts.yearRange[1]+1}else{i=year-opts.yearRange;j=1+year+opts.yearRange}for(arr=[];i<j&&i<=opts.maxYear;i++){if(i>=opts.minYear){arr.push('<option value="'+i+'"'+(i===year?" selected":"")+">"+i+"</option>")}}html+='<div class="pika-label">'+year+'<select class="pika-select pika-select-year">'+arr.join("")+"</select></div>";if(isMinYear&&(month===0||opts.minMonth>=month)){prev=false}if(isMaxYear&&(month===11||opts.maxMonth<=month)){next=false}html+='<button class="pika-prev'+(prev?"":" is-disabled")+'" type="button">Previous Month</button>';html+='<button class="pika-next'+(next?"":" is-disabled")+'" type="button">Next Month</button>';return html+="</div>"},renderTimeHourOpts=function(meridian,defTime){var html="",start=0,end=23;if(meridian){start=1;end=11}for(var i=start;
1i<=end;i++){var label=i>9?i:"0"+i;var selected=defTime.getHours()===i?true:false;var value=i;if(meridian){label=meridian===true?label+" AM":label;label=meridian==="pm"?label+" PM":label;selected=meridian===true&&defTime.getHours()===i?true:false;selected=meridian==="pm"&&defTime.getHours()===i+12?true:false;value=i+12}html+='<option value="'+value+(selected?'" selected':'"')+">"+label+"</option>"}if(meridian===true){return html+=renderTimeHourOpts("pm",defTime)}else{return html}},renderTimeMinuteOpts=function(step,defTime){var html="";for(var i=0;i<=59;i+=step){var label=i>9?i:"0"+i;var selected=defTime.getMinutes()===i?true:false;html+='<option value="'+i+(selected?'" selected':'"')+">"+label+"</option>"}return html},renderTimeInput=function(opts){var html="",currentTime=window.moment(opts.field.value,opts.format);if(currentTime&&currentTime.isValid()){currentTime=currentTime.toDate()}else{currentTime=new Date(window.moment().format("L"))}html+='<td data-hour="0" ><select class="pika-select pika-time-hour">'+renderTimeHourOpts(opts.showMeridian,currentTime)+"</select></td>";html+='<td class="pika-time-sep"><span>:</span></td>';html+='<td data-minute="0"><select class="pika-select pika-time-minute">'+renderTimeMinuteOpts(opts.minuteStep,currentTime)+"</select></td>";return html},renderTimeTitles=function(opts){var html="",titles=opts.i18n.timeTitles;html+='<th scope="col pika-time-hour">'+titles[0]+"</th>";html+='<th scope="col pika-time-sep">&nbsp;</th>';html+='<th scope="col pika-time-minute">'+titles[1]+"</th>";return html},renderTimeTable=function(opts){return'<table cellpadding="0" cellspacing="0" class="pika-table pika-time"><thead><tr>'+renderTimeTitles(opts)+"</tr></thead><tbody><tr>"+renderTimeInput(opts)+"</tr></tbody></table>"},renderOK=function(opts){return'<button class="pika-ok" type="button">OK</button>'},renderTable=function(opts,data){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+renderHead(opts)+renderBody(data)+"</table>"};window.Pikaday=function(options){var self=this,opts=self.config(options);self._onMouseDown=function(e){if(!self._v){return}e=e||window.event;var target=e.target||e.srcElement;if(!target){return}if(!hasClass(target,"is-disabled")){if(hasClass(target,"pika-button")&&!hasClass(target,"is-empty")){self.setDate(new Date(self._y,self._m,parseInt(target.innerHTML,10)));if(opts.bound){sto(function(){},100)}return}else if(hasClass(target,"pika-prev")){self.prevMonth()}else if(hasClass(target,"pika-next")){self.nextMonth()}}if(hasClass(target,"pika-ok")){self.hide()}if(!hasClass(target,"pika-select")){if(e.preventDefault){e.preventDefault()}else{return e.returnValue=false}}else{self._c=true}};self._onChange=function(e){e=e||window.event;var target=e.target||e.srcElement;if(!target){return}if(hasClass(target,"pika-select-month")){self.gotoMonth(target.value)}else if(hasClass(target,"pika-select-year")){self.gotoYear(target.value)}else if(hasClass(target,"pika-time-hour")){self.setTime(target.value,null)}else if(hasClass(target,"pika-time-minute")){self.setTime(null,target.value)}};self._onInputChange=function(e){var dateTimeParts=opts.field.value.split(/[. ]+/);var time=dateTimeParts[3];if(hasMoment){self.setDate(window.moment(opts.field.value,opts.format).toDate())}else{var date=new Date(Date.parse(opts.field.value));self.setDate(isDate(date)?date:null)}if(time){var timeParts=time.split(":");self.setTime(timeParts[0],timeParts[1]||0)}if(!self._v){self.show()}};self._onInputFocus=function(e){self.show()};self._onInputClick=function(e){self.show()};self._onInputBlur=function(e){if(!self._c){self._b=sto(function(){},50)}self._c=false};self._onClick=function(e){e=e||window.event;var target=e.target||e.srcElement,pEl=target;if(!target){return}if(!hasEventListeners&&hasClass(target,"pika-select")){if(!target.onchange){target.setAttribute("onchange","return;");addEvent(target,"change",self._onChange)}}do{if(hasClass(pEl,"pika-single")){return}}while(pEl=pEl.parentNode);if(self._v&&target!==opts.field){self.hide()}};self.el=document.createElement("div");self.el.className="pika-single"+(opts.isRTL?" is-rtl":"");addEvent(self.el,"mousedown",self._onMouseDown,true);addEvent(self.el,"change",self._onChange);if(opts.field){if(opts.bound){document.body.appendChild(self.el)}else{opts.field.parentNode.insertBefore(self.el,opts.field.nextSibling)}addEvent(opts.field,"change",self._onInputChange);
1if(!opts.defaultDate){if(hasMoment&&opts.field.value){opts.defaultDate=window.moment(opts.field.value,opts.format).toDate()}else{opts.defaultDate=new Date(Date.parse(opts.field.value))}opts.setDefaultDate=true;if(!opts.defaultTime&&!isDate(opts.defaultDate)){opts.defaultTime=new Date}else{opts.defaultTime=opts.defaultDate}}}var defDate=opts.defaultDate;if(isDate(defDate)){if(opts.setDefaultDate){self.setDate(defDate)}else{self.gotoDate(defDate)}}else{self.gotoDate(new Date)}if(opts.bound){this.hide();self.el.className+=" is-bound";addEvent(opts.field,"click",self._onInputClick);addEvent(opts.field,"focus",self._onInputFocus);addEvent(opts.field,"blur",self._onInputBlur)}else{this.show()}};window.Pikaday.prototype={config:function(options){if(!this._o){this._o=extend({},defaults,true)}var opts=extend(this._o,options,true);opts.isRTL=!!opts.isRTL;opts.field=opts.field&&opts.field.nodeName?opts.field:null;opts.bound=!!(opts.bound!==undefined?opts.field&&opts.bound:opts.field);var nom=parseInt(opts.numberOfMonths,10)||1;opts.numberOfMonths=nom>4?4:nom;if(!isDate(opts.minDate)){opts.minDate=false}if(!isDate(opts.maxDate)){opts.maxDate=false}if(opts.minDate&&opts.maxDate&&opts.maxDate<opts.minDate){opts.maxDate=opts.minDate=false}if(opts.minDate){opts.minYear=opts.minDate.getFullYear();opts.minMonth=opts.minDate.getMonth()}if(opts.maxDate){opts.maxYear=opts.maxDate.getFullYear();opts.maxMonth=opts.maxDate.getMonth()}if(isArray(opts.yearRange)){var fallback=(new Date).getFullYear()-10;opts.yearRange[0]=parseInt(opts.yearRange[0],10)||fallback;opts.yearRange[1]=parseInt(opts.yearRange[1],10)||fallback}else{opts.yearRange=Math.abs(parseInt(opts.yearRange,10))||defaults.yearRange;if(opts.yearRange>100){opts.yearRange=100}}return opts},toString:function(format){var value="";if(isDate(this._d)){if(hasMoment){value=window.moment(this._d).format(format||this._o.format);value=value.replace(" 00:00","")}else{value=this._d.toDateString()}}return value},getMoment:function(){return hasMoment?window.moment(this._d):null},getDate:function(){return isDate(this._d)?new Date(this._d.getTime()):null},setTime:function(hours,minutes){hours=parseInt(hours);minutes=parseInt(minutes);var wasFullDayBefore=this._d&&this._d.getHours()===23&&this._d.getMinutes()===59;if(!isNaN(hours))this._hours=hours;if(!isNaN(hours)&&isDate(this._d)){this._d.setHours(hours)}if(!isNaN(hours)&&isNaN(minutes)&&wasFullDayBefore)minutes=0;if(!isNaN(minutes))this._minutes=minutes;if(!isNaN(minutes)&&isDate(this._d)){this._d.setMinutes(minutes)}if(this._o.field){this._o.field.value=this.toString()}if(typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},setDate:function(date){if(!date){this._d=null;return this.draw()}if(typeof date==="string"){date=new Date(Date.parse(date))}if(!isDate(date)){return}var min=this._o.minDate,max=this._o.maxDate;if(isDate(min)&&date<min){date=min}else if(isDate(max)&&date>max){date=max}if(!isDate(this._d)){this._d=new Date(date.getTime())}else{this._d.setDate(date.getDate());this._d.setMonth(date.getMonth());this._d.setFullYear(date.getFullYear())}if(!this._o.showTimePicker){this._d.setHours(0,0,0,0)}this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString()}if(typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},gotoDate:function(date){if(!isDate(date)){return}this._y=date.getFullYear();this._m=date.getMonth();this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(month){if(!isNaN(month=parseInt(month,10))){this._m=month<0?0:month>11?11:month;this.draw()}},nextMonth:function(){if(++this._m>11){this._m=0;this._y++}this.draw()},prevMonth:function(){if(--this._m<0){this._m=11;this._y--}this.draw()},gotoYear:function(year){if(!isNaN(year)){this._y=parseInt(year,10);this.draw()}},draw:function(force){if(!this._v&&!force){return}var opts=this._o,minYear=opts.minYear,maxYear=opts.maxYear,minMonth=opts.minMonth,maxMonth=opts.maxMonth;if(this._y<=minYear){this._y=minYear;if(!isNaN(minMonth)&&this._m<minMonth){this._m=minMonth}}if(this._y>=maxYear){this._y=maxYear;if(!isNaN(maxMonth)&&this._m>maxMonth){this._m=maxMonth}}
1this.el.innerHTML=renderTitle(this)+this.render(this._y,this._m);if(opts.bound){var pEl=opts.field,left=pEl.offsetLeft,top=pEl.offsetTop+pEl.offsetHeight;while(pEl=pEl.offsetParent){left+=pEl.offsetLeft;top+=pEl.offsetTop}this.el.style.cssText="position:absolute;left:"+left+"px;top:"+top+"px;";sto(function(){opts.field.focus()},1)}if(typeof this._o.onDraw==="function"){this._o.onDraw.call(this)}},render:function(year,month){var opts=this._o,now=new Date,days=getDaysInMonth(year,month),before=new Date(year,month,1).getDay(),data=[],row=[];if(!this._o.showTimePicker&&isDate(this._d)){this._d.setHours(0,0,0,0)}if(opts.firstDay>0){before-=opts.firstDay;if(before<0){before+=7}}var cells=days+before,after=cells;while(after>7){after-=7}cells+=7-after;for(var i=0,r=0;i<cells;i++){var day=new Date(year,month,1+(i-before)),isDisabled=opts.minDate&&day<opts.minDate||opts.maxDate&&day>opts.maxDate,isSelected=isDate(this._d)?compareDates(day,this._d):false,isToday=compareDates(day,now),isEmpty=i<before||i>=days+before;row.push(renderDay(1+(i-before),isSelected,isToday,isDisabled,isEmpty));if(++r===7){data.push(renderRow(row,opts.isRTL));row=[];r=0}}if(opts.showTimePicker){return renderTable(opts,data)+renderOK(opts)+renderTimeTable(opts)}else{return renderTable(opts,data)}},isVisible:function(){return this._v},show:function(){if(!this._v){if(this._o.bound){addEvent(document,"click",this._onClick)}removeClass(this.el,"is-hidden");this._v=true;this.draw();if(typeof this._o.onOpen==="function"){this._o.onOpen.call(this)}}},hide:function(){var v=this._v;if(v!==false){if(this._o.bound){removeEvent(document,"click",this._onClick)}this.el.style.cssText="";addClass(this.el,"is-hidden");this._v=false;if(v!==undefined&&typeof this._o.onClose==="function"){this._o.onClose.call(this)}}},destroy:function(){this.hide();removeEvent(this.el,"mousedown",this._onMouseDown,true);removeEvent(this.el,"change",this._onChange);if(this._o.field){removeEvent(this._o.field,"change",this._onInputChange);if(this._o.bound){removeEvent(this._o.field,"click",this._onInputClick);removeEvent(this._o.field,"focus",this._onInputFocus);removeEvent(this._o.field,"blur",this._onInputBlur)}}if(this.el.parentNode){this.el.parentNode.removeChild(this.el)}}}})(window,window.document);if(definePresent){define=defineTmp;defineTmp=undefined}

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.