1"use strict";(self.webpackChunk_periodica_site=self.webpackChunk_periodica_site||[]).push([[6060],{4607:function(t,e,n){n.d(e,{G:function(){return i}});n(14293);const i=t=>t?t.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1 "):null},10876:function(t,e,n){n.d(e,{PR:function(){return l},sr:function(){return h}});n(14293),n(31716);var i=n(42722),r=n.n(i),s=n(96885);const o="https://api.periodica.press/api",u={"Content-Type":"application/json","Accept-Version":"v4"},a=["CERT_CUSTOM","CERT_COLLECT_BOOK"],h=async()=>(await r()({method:"GET",url:`${o}/templates/gift_card`,headers:u})).data.filter((t=>-1===a.indexOf(t.name))).map(((t,e)=>({template_id:t.id,slideId:e,image:t.preview_url,backImage:t.back_page_layout,frontLayout:t.preview,isTextEnabled:t.has_text}))),l=async(t,e,n,i,a,h,l,c,d,f,m,p,g,y,w,x)=>{const b=c.replaceAll("\n","<br/>");let M=null;l?M=l:w===s.ND&&x===s.c3&&(M=n);const v={template_id:t,client_newsletter_agreed:m,gift_card_info:{name:e,phone:n,email:i,to_name:a,to_email:h||i,...M&&{to_phone:M},message:b||" "},price:d,...f&&{preview_url:f},...p&&g&&{schedule_info:{date_time:p,timezone:g}},payment_type:y};return(await r()({method:"POST",url:`${o}/gift/order`,data:v,headers:u})).data}},19508:function(t,e,n){n.d(e,{B:function(){return l}});var i=n(14041),r=n(96691),s="Breadcrumbs-module--breadcrumb--06f7f",o="Breadcrumbs-module--breadcrumbsContainer--4bac0",u="Breadcrumbs-module--breadcrumbsContent--7e2af",a="Breadcrumbs-module--lastItem--b36da";function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(null,arguments)}function l(t){let{path:e}=t;return i.createElement("nav",{className:o,"aria-label":"Breadcrumb"},i.createElement("ol",{className:u},e.map((t=>{const n=e.indexOf(t)===e.length-1;return i.createElement("li",h({key:`breadcrumb_${t.title}`},n&&{"aria-current":"page",className:a}),n?t.title:i.createElement(r.Link,{to:t.url,className:s},t.title))}))))}},26988:function(t,e,n){n.d(e,{w:function(){return r}});var i=n(14041);function r(){return i.createElement("span",null,"â½")}},46298:function(t,e,n){n.d(e,{h$:function(){return h},zz:function(){return c},D4:function(){return l}});var i=n(93256);let r=1990;const s=new Date(2025,8,12),o=new Date(2025,8,15);var u,a;u=s,a=o,(0,i.T)(u,new Date)+(0,i.T)(new Date,a)===2&&(r=890);const h=r,l="sfzv-promo-20260522",c=.55*r},62030:function(t,e,n){n.d(e,{J:function(){return w},H:function(){return y}});var i=n(14041),r=n(41059),s=n.n(r),o=n(93256),u=n(4607),a=n(26988),h=n(45501),l="GiftBonusBlock-module--bonusBlock--b3ecc",c="GiftBonusBlock-module--bonusBlockContent--b6fcf",d="GiftBonusBlock-module--bonusBlockItem--d364a",f="GiftBonusBlock-module--emphasized--5c3a1",m="GiftBonusBlock-module--sale--6a0ce";const p=new Date(2025,5,20),g=new Date(2025,6,1),y=t=>{if((0,o.T)(p,new Date)+(0,o.T)(new Date,g)===2){if(t>=1e4&&t<3e4)return.08;if(t>=3e4&&t<5e4)return.09;if(t>=5e4)return.1}return 0};function w(t){let{sum:e=0,toPay:n=!1}=t;const r=Math.round(y(e)*e);return r?i.createElement("div",{className:s()([l])},i.createElement("div",{className:c},i.createElement("div",{className:s()([d,m])},i.createElement(h.fz,{size:"inherit"},"ÐÑ Ð¿Ð¾Ð»ÑÑиÑе бонÑÑ*"),i.createElement(h.fz,{size:"inherit"},"+ ",(0,u.G)(r)," ",i.createElement(a.w,null))),n?i.createElement(i.Fragment,null,i.createElement("div",{className:d},i.createElement(h.fz,{size:"inherit"},"Ðоминал ÑеÑÑиÑикаÑа"),i.createElement(h.fz,{size:"inherit"},(0,u.G)(e+r)," ",i.createElement(a.w,null))),i.createElement("div",{className:s()([d,f])},i.createElement(h.DZ,{variant:"h3",customTag:"p"},"РоплаÑе"),i.createElement(h.DZ,{variant:"h3",customTag:"p"},(0,u.G)(e)," ",i.createElement(a.w,null)))):i.createElement("div",{className:d},i.createElement(h.DZ,{variant:"h3",customTag:"p"},"Ðоминал ÑеÑÑиÑикаÑа"),i.createElement(h.DZ,{variant:"h3",customTag:"p"},(0,u.G)(e+r)," ",i.createElement(a.w,null))),i.createElement(h.fz,{size:"small",color:"secondary"},"ÐаÑим дополниÑелÑнÑе бонÑÑÑ Ð¿Ñи покÑпке ÑеÑÑиÑикаÑов! Ðа ÑÑÐ¼Ð¼Ñ Ð¾Ñ 10 000 â½Â â наÑиÑлÑем 8% оÑ номинала, оÑ 30 000 â½Â â 9%, а оÑ 50 000 ⽠и вÑÑе â 10%. Чем болÑÑе ÑÑмма, Ñем болÑÑе бонÑÑов!"))):null}},69374:function(t,e,n){n.d(e,{E:function(){return s}});var i=n(14041),r=n(96691);function s(){const{site:{siteMetadata:{siteUrl:t}}}=(0,r.useStaticQuery)("1271460761");return i.createElement("meta",{name:"yandex-tableau-widget",content:`logo=${t}/logo-transparent.png, color=#ffffff`})}},93256:function(t,e,n){n.d(e,{T:function(){return r}});var i=n(86369);function r(t,e){const n=(0,i.a)(t),r=(0,i.a)(e),s=n.getTime()-r.getTime();return s>0?-1:s<0?1:s}},96885:function(t,e,n){n.d(e,{FH:function(){return m},FK:function(){return p},HY:function(){return i},Ji:function(){return s},Jj:function(){return l},ND:function(){return f},S7:function(){return d},WU:function(){return h},XE:function(){return o},c3:function(){return c},im:function(){return a},ls:function(){return u},ly:function(){return r},yZ:function(){return g}});const i="0",r="1",s="0",o="1",u="0",a="1",h=2990,l="person",c="me",d="email",f="sms",m=768,p=768,g=[{title:"ÐлавнаÑ",url:"/"},{title:"СеÑÑиÑикаÑÑ",url:""}]},98100:function(t,e,n){n.r(e),n.d(e,{Head:function(){return gi},default:function(){return wi}});var i={};n.r(i),n.d(i,{cx:function(){return te},cy:function(){return ee},height:function(){return ie},rx:function(){return Xt},ry:function(){return Vt},width:function(){return ne},x:function(){return $t},y:function(){return Kt}});var r={};n.r(r),n.d(r,{from:function(){return ae},to:function(){return he}});var s={};n.r(s),n.d(s,{MorphArray:function(){return me},height:function(){return we},width:function(){return ye},x:function(){return pe},y:function(){return ge}});var o={};n.r(o),n.d(o,{array:function(){return Ge},clear:function(){return We},move:function(){return Je},plot:function(){return qe},size:function(){return Xe}});var u={};n.r(u),n.d(u,{amove:function(){return Nn},ax:function(){return _n},ay:function(){return In},build:function(){return Dn},center:function(){return vn},cx:function(){return bn},cy:function(){return Mn},length:function(){return gn},move:function(){return xn},plain:function(){return pn},x:function(){return yn},y:function(){return wn}});var a={};n.r(a),n.d(a,{dmove:function(){return kn},dx:function(){return On},dy:function(){return zn},height:function(){return Cn},move:function(){return Ln},size:function(){return Pn},width:function(){return Bn},x:function(){return Qn},y:function(){return Zn}});n(47010);var h=n(14041),l=n(46242),c=n(12398),d=n(69374),f=n(41059),m=n.n(f),p=n(28426),g=n(20289),y=n(96691),w=n(46298),x=n(45501),b=n(47804),M={p1:"MiniProductBlock-module--p1--b8a5e",s3:"MiniProductBlock-module--s3--4a2e5",miniProduct:"MiniProductBlock-module--miniProduct--1e01e",image:"MiniProductBlock-module--image--09df1",description:"MiniProductBlock-module--description--77970"};var v=function(t){let{photo:e,title:n,subtitle:i}=t;return h.createElement("div",{className:M.miniProduct},h.createElement(b.G,{image:e.localFile.childImageSharp.gatsbyImageData,alt:"ÑоÑо пÑодÑкÑа",className:M.image}),h.createElement("div",{className:M.description},h.createElement("span",{className:M.p1},n),h.createElement("span",{className:M.p2},i)))};n(14293),n(31716);const _={},I=[];function N(t,e){if(Array.isArray(t))for(const n of t)N(n,e);else if("object"!=typeof t)A(Object.getOwnPropertyNames(e)),_[t]=Object.assign(_[t]||{},e);else for(const n in t)N(n,t[n])}function D(t){return _[t]||{}}function A(t){I.push(...t)}function j(t,e){let n;const i=t.length,r=[];for(n=0;n<i;n++)r.push(e(t[n]));return r}function T(t){return t%360*Math.PI/180}function E(t){return t.charAt(0).toUpperCase()+t.slice(1)}function S(t,e,n,i){return null!=e&&null!=n||(i=i||t.bbox(),null==e?e=i.width/i.height*n:null==n&&(n=i.height/i.width*e)),{width:e,height:n}}function k(t,e){const n=t.origin;let i=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([i,r]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof i,o="string"==typeof r;if(s||o){const{height:t,width:n,x:u,y:a}=e.bbox();s&&(i=i.includes("left")?u:i.includes("right")?u+n:u+n/2),o&&(r=r.includes("top")?a:r.includes("bottom")?a+t:a+t/2)}return[i,r]}const O=new Set(["desc","metadata","title"]),z=t=>O.has(t.nodeName),C=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={...e};for(const r in i)i[r].valueOf()===n[r]&&delete i[r];Object.keys(i).length?t.node.setAttribute("data-svgjs",JSON.stringify(i)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},L="http://www.w3.org/2000/svg",P="http://www.w3.org/2000/xmlns/",B="http://www.w3.org/1999/xlink",Q={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:d
1ocument};class Z{}const R={},Y="___SYMBOL___ROOT___";function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;return Q.document.createElementNS(e,t)}function H(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t instanceof Z)return t;if("object"==typeof t)return W(t);if(null==t)return new R[Y];if("string"==typeof t&&"<"!==t.charAt(0))return W(Q.document.querySelector(t));const n=e?Q.document.createElement("div"):U("svg");return n.innerHTML=t,t=W(n.firstChild),n.removeChild(n.firstChild),t}function F(t,e){return e&&(e instanceof Q.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:U(t)}function G(t){if(!t)return null;if(t.instance instanceof Z)return t.instance;if("#document-fragment"===t.nodeName)return new R.Fragment(t);let e=E(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":R[e]||(e="Dom"),new R[e](t)}let W=G;function J(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.name,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return R[e]=t,n&&(R[Y]=t),A(Object.getOwnPropertyNames(t.prototype)),t}let q=1e3;function X(t){return"Svgjs"+E(t)+q++}function V(t){for(let e=t.children.length-1;e>=0;e--)V(t.children[e]);return t.id?(t.id=X(t.nodeName),t):t}function $(t,e){let n,i;for(i=(t=Array.isArray(t)?t:[t]).length-1;i>=0;i--)for(n in e)t[i].prototype[n]=e[n]}function K(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];const r=n[n.length-1];return!r||r.constructor!==Object||r instanceof Array?t.apply(this,n):t.apply(this,n.slice(0,-1)).attr(r)}}N("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=H(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=H(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=H(t)).before(this),this},insertAfter:function(t){return(t=H(t)).after(this),this}});const tt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,et=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,nt=/rgb\((\d+),(\d+),(\d+)\)/,it=/(#[a-z_][a-z0-9\-_]*)/i,rt=/\)\s*,?\s*/,st=/\s/g,ot=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,ut=/^rgb\(/,at=/^(\s+)?$/,ht=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,ct=/[\s,]+/,dt=/[MLHVCSQTAZ]/i;function ft(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function mt(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function pt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}N("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(ct)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),N("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||at.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||at.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),N("Dom",{data:function(t,e,n){if(null==t)return this.data(j(function(t,e){let n;const i=t.length,r=[];for(n=0;n<i;n++)e(t[n])&&r.push(t[n]);return r}(this.node.attributes,(t=>0===t.nodeName.indexOf("data-"))),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),N("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const n in t)this.remember(n,t[n]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class gt{constructor(){this.init(...arguments)}static isColor(t){return t&&(t instanceof gt||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"vibrant",e=arguments.length>1?arguments[1]:void 0;const{random:n,round:i,sin:r,PI:s}=Math;
vendor: 18,238 bytes, line 1
1if("vibrant"===t){const t=24*n()+57,e=38*n()+45,i=360*n();return new gt(t,e,i,"lch")}if("sine"===t){e=null==e?n():e;const t=i(80*r(2*s*e/.5+.01)+150),o=i(50*r(2*s*e/.5+4.6)+200),u=i(100*r(2*s*e/.5+2.3)+150);return new gt(t,o,u)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,i=360*n();return new gt(t,e,i,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,i=360*n();return new gt(t,e,i,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),i=255*n();return new gt(t,e,i)}if("lab"===t){const t=100*n(),e=256*n()-128,i=256*n()-128;return new gt(t,e,i,"lab")}if("grey"===t){const t=255*n();return new gt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(ot.test(t)||ut.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-i,1-r,1-s);if(1===o)return new gt(0,0,0,1,"cmyk");return new gt((1-i-o)/(1-o),(1-r-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.max(i,r,s),u=Math.min(i,r,s),a=(o+u)/2,h=o===u,l=o-u;return new gt(360*(h?0:o===i?((r-s)/l+(r<s?6:0))/6:o===r?((s-i)/l+2)/6:o===s?((i-r)/l+4)/6:0),100*(h?0:a>.5?l/(2-o-u):l/(o+u)),100*a,"hsl")}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"rgb";if(t=t||0,this.space)for(const l in this.space)delete this[this.space[l]];if("number"==typeof t)r="string"==typeof i?i:r,i="string"==typeof i?0:i,Object.assign(this,{_a:t,_b:e,_c:n,_d:i,space:r});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=mt(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:mt(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:mt(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:mt(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:mt(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:mt(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(ut.test(t)){const e=t.replace(st,""),[n,i,r]=nt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}else{if(!ot.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,i,r]=et.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:u,_d:a}=this,h="rgb"===this.space?{r:s,g:o,b:u}:"xyz"===this.space?{x:s,y:o,z:u}:"hsl"===this.space?{h:s,s:o,l:u}:"lab"===this.space?{l:s,a:o,b:u}:"lch"===this.space?{l:s,c:o,h:u}:"cmyk"===this.space?{c:s,m:o,y:u,k:a}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new gt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),i=Math.sqrt(e**2+n**2);let r=180*Math.atan2(n,e)/Math.PI;r<0&&(r*=-1,r=360-r);return new gt(t,i,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:i,a:r,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;r=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(i+16)/116,u=r/500+o,a=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(u**3>l?u**3:(u-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(a**3>l?a**3:(a-h)/c)}const i=3.2406*t+-1.5372*e+-.4986*n,r=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,u=.0031308,a=i>u?1.055*o(i,1/2.4)-.055:12.92*i,h=r>u?1.055*o(r,1/2.4)-.055:12.92*r,l=s>u?1.055*o(s,1/2.4)-.055:12.92*s;return new gt(255*a,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e){n*=255;return new gt(n,n,n)}const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=255*pt(r,i,t+1/3),o=255*pt(r,i,t),u=255*pt(r,i,t-1/3);return new gt(s,o,u)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:i}=this,r=255*(1-Math.min(1,t*(1-i)+i)),s=255*(1-Math.min(1,e*(1-i)+i)),o=255*(1-Math.min(1,n*(1-i)+i));return new gt(r,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:i,space:r}=this;return[t,e,n,i,r]}toHex(){const[t,e,n]=this._clamped().map(ft);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,u=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*u+.1805*a)/.95047,l=(.2126*o+.7152*u+.0722*a)/1,c=(.0193*o+.1192*u+.9505*a)/1.08883,d=h>.008856?Math.pow(h,1/3):7.787*h+16/116,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,m=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new gt(d,f,m,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:i,min:r,round:s}=Math;return[t,e,n].map((t=>i(0,r(s(t),255))))}}class yt{constructor(){this.init(...arguments)}clone(){return new yt(this)}init(t,e){const n=0,i=0,r=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==r.x?n:r.x,this.y=null==r.y?i:r.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){xt.isMatrixLike(t)||(t=new xt(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function wt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class xt{constructor(){this.init(...arguments)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,i=t.flip&&(e||"y"===t.flip)?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,u=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i,a=t.shear||0,h=t.rotate||t.theta||0,l=new yt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new yt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),m=f.x,p=f.y,g=new yt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,w=g.y,x=new yt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:u,skewX:r,skewY:s,shear:a,theta:h,rx:x.x,ry:x.y,tx:y,ty:w,ox:c,oy:d,px:m,py:p}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const i=t.a*e.a+t.c*e.b,r=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,u=t.e+t.a*e.e+t.c*e.f,a=t.f+t.b*e.e+t.d*e.f;return n.a=i,n.b=r,n.c=s,n.d=o,n.e=u,n.f=a,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const i=t||0,r=e||0;return this.translateO(-i,-r).lmultiplyO(n).translateO(i,r)}clone(){return new xt(this)}decompose(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.a,i=this.b,r=this.c,s=this.d,o=this.e,u=this.f,a=n*s-i*r,h=a>0?1:-1,l=h*Math.sqrt(n*n+i*i),c=Math.atan2(h*i,h*n),d=180/Math.PI*c,f=Math.cos(c),m=Math.sin(c),p=(n*r+i*s)/a,g=r*l/(p*n-i)||s*l/(p*i+n);return{scaleX:l,scaleY:g,shear:p,rotate:d,translateX:o-t+t*f*l+e*(p*f*l-m*g),translateY:u-e+t*m*l+e*(p*m*l+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new xt(t);return wt(this.a,e.a)&&wt(this.b,e.b)&&wt(this.c,e.c)&&wt(this.d,e.d)&&wt(this.e,e.e)&&wt(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=xt.fromArray([1,0,0,1,0,0]);return t=t instanceof Ft?t.matrixify():"string"==typeof t?xt.fromArray(t.split(ct).map(parseFloat)):Array.isArray(t)?xt.fromArray(t):"object"==typeof t&&xt.isMatrixLike(t)?t:"object"==typeof t?(new xt).transform(t):6===arguments.length?xt.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,s=this.f,o=t*i-e*n;if(!o)throw new Error("Cannot invert "+this);const u=i/o,a=-e/o,h=-n/o,l=t/o,c=-(u*r+h*s),d=-(a*r+l*s);return this.a=u,this.b=a,this.c=h,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof xt?t:new xt(t);return xt.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof xt?t:new xt(t);return xt.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t=T(t);const i=Math.cos(t),r=Math.sin(t),{a:s,b:o,c:u,d:a,e:h,f:l}=this;return this.a=s*i-o*r,this.b=o*i+s*r,this.c=u*i-a*r,this.d=a*i+u*r,this.e=h*i-l*r+n*r-e*i+e,this.f=l*i+h*r-e*r-n*i+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;3===arguments.length&&(i=n,n=e,e=t);const{a:r,b:s,c:o,d:u,e:a,f:h}=this;return this.a=r*t,this.b=s*e,this.c=o*t,this.d=u*e,this.e=a*t-n*t+n,this.f=h*e-i*e+i,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{a:n,b:i,c:r,d:s,e:o,f:u}=this;return this.a=n+i*t,this.c=r+s*t,this.e=o+u*t-e*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;3===arguments.length&&(i=n,n=e,e=t),t=T(t),e=T(e);const r=Math.tan(t),s=Math.tan(e),{a:o,b:u,c:a,d:h,e:l,f:c}=this;return this.a=o+u*r,this.b=u+o*s,this.c=a+h*r,this.d=h+a*s,this.e=l+c*r-i*r,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(xt.isMatrixLike(t)){return new xt(t).multiplyO(this)}const e=xt.formatTransforms(t),{x:n,y:i}=new yt(e.ox,e.oy).transform(this),r=(new xt).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-i).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,i);if(isFinite(e.px)||isFinite(e.py)){const t=new yt(n,i).transform(r),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;r.translateO(s,o)}return r.translateO(e.tx,e.ty),r}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function bt(){if(!bt.nodes){const t=H().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;bt.nodes={svg:t,path:e}}if(!bt.nodes.svg.node.parentNode){const t=Q.document.body||Q.document.documentElement;bt.nodes.svg.addTo(t)}return bt.nodes}function Mt(t){return!(t.width||t.height||t.x||t.y)}J(xt,"Matrix");class vt{constructor(){this.init(...arguments)}addOffset(){return this.x+=Q.window.pageXOffset,this.y+=Q.window.pageYOffset,new vt(this)}init(t){return t="string"==typeof t?t.split(ct).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Mt(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x+t.width)-e,r=Math.max(this.y+this.height,t.y+t.height)-n;return new vt(e,n,i,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof xt||(t=new xt(t));let e=1/0,n=-1/0,i=1/0,r=-1/0;return[new yt(this.x,this.y),new yt(this.x2,this.y),new yt(this.x,this.y2),new yt(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),r=Math.max(r,s.y)})),new vt(e,i,n-e,r-i)}}function _t(t,e,n){let i;try{if(i=e(t.node),Mt(i)&&((r=t.node)!==Q.document&&!(Q.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Q.document}).call(Q.document.documentElement,r)))throw new Error("Element not in the dom")}catch(s){i=n(t)}var r;return i}N({viewbox:{viewbox(t,e,n,i){return null==t?new vt(this.attr("viewBox")):this.attr("viewBox",new vt(t,e,n,i))},zoom(t,e){let{width:n,height:i}=this.attr(["width","height"]);if((n||i)&&"string"!=typeof n&&"string"!=typeof i||(n=this.node.clientWidth,i=this.node.clientHeight),!n||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),s=n/r.width,o=i/r.height,u=Math.min(s,o);if(null==t)return u;let a=u/t;a===1/0&&(a=Number.MAX_SAFE_INTEGER/100),e=e||new yt(n/2/s+r.x,i/2/o+r.y);const h=new vt(r).transform(new xt({scale:a,origin:e}));return this.viewbox(h)}}}),J(vt,"Box");class It extends Array{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(super(t,...n),"number"==typeof t)return this;this.length=0,this.push(...t)}}var Nt=It;$([It],{each(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return"function"==typeof t?this.map(((e,n,i)=>t.call(e,e,n,i))):this.map((e=>e[t](...n)))},toArray(){return Array.prototype.concat.apply([],this)}});const Dt=["toArray","constructor","each"];function At(t,e){return new Nt(j((e||Q.document).querySelectorAll(t),(function(t){return G(t)})))}It.extend=function(t){t=t.reduce(((t,e)=>(Dt.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.each(e,...n)}),t)),{}),$([It],t)};let jt=0;const Tt={};function Et(t){let e=t.getEventHolder();return e===Q.window&&(e=Tt),e.events||(e.events={}),e.events}function St(t){return t.getEventTarget()}function kt(t,e,n,i,r){const s=n.bind(i||t),o=H(t),u=Et(o),a=St(o);e=Array.isArray(e)?e:e.split(ct),n._svgjsListenerId||(n._svgjsListenerId=++jt),e.forEach((function(t){const e=t.split(".")[0],i=t.split(".")[1]||"*";u[e]=u[e]||{},u[e][i]=u[e][i]||{},u[e][i][n._svgjsListenerId]=s,a.addEventListener(e,s,r||!1)}))}function Ot(t,e,n,i){const r=H(t),s=Et(r),o=St(r);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(ct)).forEach((function(t){const e=t&&t.split(".")[0],u=t&&t.split(".")[1];let a,h;if(n)s[e]&&s[e][u||"*"]&&(o.removeEventListener(e,s[e][u||"*"][n],i||!1),delete s[e][u||"*"][n]);else if(e&&u){if(s[e]&&s[e][u]){for(h in s[e][u])Ot(o,[e,u].join("."),h);delete s[e][u]}}else if(u)for(t in s)for(a in s[t])u===a&&Ot(o,[t,u].join("."));else if(e){if(s[e]){for(a in s[e])Ot(o,[e,a].join("."));delete s[e]}}else{for(t in s)Ot(o,t);!function(t){let e=t.getEventHolder();e===Q.window&&(e=Tt),e.events&&(e.events={})}(r)}}))}class zt extends Z{addEventListener(){}dispatch(t,e,n){return function(t,e,n,i){const r=St(t);return e instanceof Q.window.Event||(e=new Q.window.CustomEvent(e,{detail:n,cancelable:!0,...i})),r.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const i in n)for(const e in n[i])n[i][e](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return Ot(this,t,e,n),this}on(t,e,n,i){return kt(this,t,e,n,i),this}removeEventListener(){}}function Ct(){}J(zt,"EventTarget");const Lt=400,Pt=">",Bt=0,Qt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Zt extends Array{constructor(){super(...arguments),this.init(...arguments)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t instanceof Array?t:t.trim().split(ct).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Rt{constructor(){this.init(...arguments)}convert(t){return new Rt(this.value,t)}divide(t){return t=new Rt(t),new Rt(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(tt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Rt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Rt(t),new Rt(this-t,this.unit||t.unit)}plus(t){return t=new Rt(t),new Rt(this+t,this.unit||t.unit)}times(t){return t=new Rt(t),new Rt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}
1toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Yt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ut=[];class Ht extends zt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=H(t)).removeNamespace&&this.node instanceof Q.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return H(t).put(this,e)}children(){return new Nt(j(this.node.children,(function(t){return G(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=V(n)),new this.constructor(n)}each(t,e){const n=this.children();let i,r;for(i=0,r=n.length;i<r;i++)t.apply(n[i],[i,n]),e&&n[i].each(t,e);return this}element(t,e){return this.put(new Ht(U(t),e))}first(){return G(this.node.firstChild)}get(t){return G(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=X(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return G(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=G(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=G(e.node.parentNode));return e}put(t,e){return t=H(t),this.add(t,e),t}putIn(t,e){return H(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=H(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const e=10**(arguments.length>0&&void 0!==arguments[0]?arguments[0]:2),n=this.attr(t);for(const i in n)"number"==typeof n[i]&&(n[i]=Math.round(n[i]*e)/e);return this.attr(n),this}svg(t,e){return this.xml(t,e,L)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=G(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const i=U("wrapper",n),r=Q.document.createDocumentFragment();i.innerHTML=t;for(let o=i.children.length;o--;)r.appendChild(i.firstElementChild);const s=this.parent();return e?this.replace(r)&&s:this.add(r)}}$(Ht,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=ht.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Qt[t]:ht.test(e)?parseFloat(e):e;"number"==typeof(e=Ut.reduce(((e,n)=>n(t,e,this)),e))?e=new Rt(e):Yt.has(t)&>.isColor(e)?e=new gt(e):e.constructor===Array&&(e=new Zt(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return At(t,this.node)},findOne:function(t){return G(this.node.querySelector(t))}}),J(Ht,"Dom");class Ft extends Ht{constructor(t,e){var n,i;(super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(null!==(n=null!==(i=JSON.parse(t.getAttribute("data-svgjs")))&&void 0!==i?i:JSON.parse(t.getAttribute("svgjs:data")))&&void 0!==n?n:{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.x(new Rt(t).plus(this.x()))}dy(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.y(new Rt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root();const e="string"==typeof t;e||(t=H(t));const n=new Nt;let i=this;for(;(i=i.parent())&&i.node!==Q.document&&"#document-fragment"!==i.nodeName&&(n.push(i),e||i.node!==t.node)&&(!e||!i.matches(t));)if(i.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(it);return e?H(e[1]):null}root(){const t=this.parent(R[Y]);
1return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=S(this,t,e);return this.width(new Rt(n.width)).height(new Rt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return C(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}$(Ft,{bbox:function(){const t=_t(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(bt().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new vt(t)},rbox:function(t){const e=_t(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new vt(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new yt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new xt(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new xt(e)}return new xt(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new xt}}}),J(Ft,"Element");const Gt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof gt||gt.isRgb(e)||e instanceof Ft)this.attr(t,e);else for(n=Gt[t].length-1;n>=0;n--)null!=e[Gt[t][n]]&&this.attr(Gt.prefix(t,Gt[t][n]),e[Gt[t][n]]);return this},N(["Element","Runner"],e)})),N(["Element","Runner"],{matrix:function(t,e,n,i,r,s){return null==t?new xt(this):this.attr("transform",new xt(t,e,n,i,r,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:i},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:i},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"both",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center";return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),N("radius",{radius:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return"radialGradient"===(this._element||this).type?this.attr("r",new Rt(t)):this.rx(t).ry(e)}}),N("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new yt(this.node.getPointAtLength(t))}}),N(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}});N("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),N("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const t=(this.attr("transform")||"").split(rt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(ct).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(xt.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new xt);return t},toParent:function(t,e){if(this===t)return this;if(z(this.node))return this.addTo(t,e);const n=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(i.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new xt(this).decompose();return null==t?e:e[t]}xt.isMatrixLike(t)||(t={...t,origin:k(t,this)});const n=new xt(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Wt extends Ft{flatten(){return this.each((function(){if(this instanceof Wt)return this.flatten().ungroup()})),this}ungroup(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.index(this);return e=-1===e?t.children().length:e,this.each((function(n,i){return i[i.length-n-1].toParent(t,e)})),this.remove()}}J(Wt,"Container");class Jt extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("defs",t),e)}flatten(){return this}ungroup(){return this}}J(Jt,"Defs");class qt extends Ft{}function Xt(t){return this.attr("rx",t)}function Vt(t){return this.attr("ry",t)}function $t(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Kt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function te(t){return this.attr("cx",t)}function ee(t){return this.attr("cy",t)}function ne(t){return null==t?2*this.rx():this.rx(new Rt(t).divide(2))}function ie(t){return null==t?2*this.ry():this.ry(new Rt(t).divide(2))}J(qt,"Shape");class re extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("ellipse",t),e)}size(t,e){const n=S(this,t,e);return this.rx(new Rt(n.width).divide(2)).ry(new Rt(n.height).divide(2))}}$(re,i),N("Container",{ellipse:K((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.put(new re).size(t,e).move(0,0)}
1))}),J(re,"Ellipse");class se extends Ht{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q.document.createDocumentFragment())}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Ht(U("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}J(se,"Fragment");var oe,ue=se;function ae(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Rt(t),fy:new Rt(e)}):this.attr({x1:new Rt(t),y1:new Rt(e)})}function he(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Rt(t),cy:new Rt(e)}):this.attr({x2:new Rt(t),y2:new Rt(e)})}class le extends Wt{constructor(t,e){super(F(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new vt}targets(){return At("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}$(le,r),N({Container:{gradient(){return this.defs().gradient(...arguments)}},Defs:{gradient:K((function(t,e){return this.put(new le(t)).update(e)}))}}),J(le,"Gradient");class ce extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new vt}targets(){return At("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}N({Container:{pattern(){return this.defs().pattern(...arguments)}},Defs:{pattern:K((function(t,e,n){return this.put(new ce).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),J(ce,"Pattern");class de extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("image",t),e)}load(t,e){if(!t)return this;const n=new Q.window.Image;return kt(n,"load",(function(t){const i=this.parent(ce);0===this.width()&&0===this.height()&&this.size(n.width,n.height),i instanceof ce&&0===i.width()&&0===i.height()&&i.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),kt(n,"load error",(function(){Ot(n)})),this.attr("href",n.src=t,B)}}oe=function(t,e,n){return"fill"!==t&&"stroke"!==t||lt.test(e)&&(e=n.root().defs().image(e)),e instanceof de&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ut.push(oe),N({Container:{image:K((function(t,e){return this.put(new de).size(0,0).load(t,e)}))}}),J(de,"Image");class fe extends Zt{bbox(){let t=-1/0,e=-1/0,n=1/0,i=1/0;return this.forEach((function(r){t=Math.max(r[0],t),e=Math.max(r[1],e),n=Math.min(r[0],n),i=Math.min(r[1],i)})),new vt(n,i,t-n,e-i)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+t,this[i][1]+e];return this}parse(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0];const e=[];t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(ct).map(parseFloat),t.length%2!=0&&t.pop();for(let n=0,i=t.length;n<i;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const i=this.bbox();for(n=this.length-1;n>=0;n--)i.width&&(this[n][0]=(this[n][0]-i.x)*t/i.width+i.x),i.height&&(this[n][1]=(this[n][1]-i.y)*e/i.height+i.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){xt.isMatrixLike(t)||(t=new xt(t));for(let e=this.length;e--;){const[n,i]=this[e];this[e][0]=t.a*n+t.c*i+t.e,this[e][1]=t.b*n+t.d*i+t.f}return this}}const me=fe;function pe(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function ge(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function ye(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function we(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class xe extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("line",t),e)}array(){return new fe([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,i){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:i}:new fe(t).toLine(),this.attr(t))}size(t,e){const n=S(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}$(xe,s),N({Container:{line:K((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return xe.prototype.plot.apply(this.put(new xe),null!=e[0]?e:[0,0,0,0])}))}}),J(xe,"Line");class be extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}
vendor: 13,648 bytes, line 1
1toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function Me(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}N({Container:{marker(){return this.defs().marker(...arguments)}},Defs:{marker:K((function(t,e,n){return this.put(new be).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,i){let r=["marker"];return"all"!==t&&r.push(t),r=r.join("-"),t=arguments[1]instanceof be?arguments[1]:this.defs().marker(e,n,i),this.attr(r,t)}}}),J(be,"Marker");const ve={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,i){return function(r){return r<0?t>0?e/t*r:n>0?i/n*r:0:r>1?n<1?(1-i)/(1-n)*r+(i-n)/(1-n):t<1?(1-e)/(1-t)*r+(e-t)/(1-t):1:3*r*(1-r)**2*e+3*r**2*(1-r)*i+r**3}},steps:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,function(i){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=Math.floor(i*t);const o=i*s%1==0;return"start"!==e&&"both"!==e||++s,r&&o&&--s,i>=0&&s<0&&(s=0),i<=1&&s>n&&(s=n),s/n}}};class _e{done(){return!1}}class Ie extends _e{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pt;super(),this.ease=ve[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class Ne extends _e{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,i){return this.stepper(t,e,n,i)}}function De(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,i=Math.log(e/100+1e-10),r=-i/Math.sqrt(n*n+i*i),s=3.9/(r*t);this.d=2*r*s,this.k=s*s}$(class extends Ne{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(),this.duration(t).overshoot(e)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const r=i.velocity||0,s=-this.d*r-this.k*(t-e),o=t+r*n+s*n*n/2;return i.velocity=r+s*n,i.done=Math.abs(e-o)+Math.abs(r)<.002,i.done?e:o}},{duration:Me("_duration",De),overshoot:Me("_overshoot",De)});$(class extends Ne{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.01,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;super(),this.p(t).i(e).d(n).windup(i)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;const r=e-t;let s=(i.integral||0)+r*n;const o=(r-(i.error||0))/n,u=this._windup;return!1!==u&&(s=Math.max(-u,Math.min(s,u))),i.error=r,i.integral=s,i.done=Math.abs(r)<.001,i.done?e:t+(this.P*r+this.I*s+this.D*o)}},{windup:Me("_windup"),p:Me("P"),i:Me("I"),d:Me("D")});const Ae={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},je={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},Te="mlhvqtcsaz".split("");for(let xi=0,bi=Te.length;xi<bi;++xi)je[Te[xi]]=function(t){return function(e,n,i){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return je[t](e,n,i)}}(Te[xi].toUpperCase());function Ee(t){return t.segment.length&&t.segment.length-1===Ae[t.segment[0].toUpperCase()]}function Se(t,e){t.inNumber&&ke(t,!1);const n=dt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),i=e===n;t.segment=["m"===n?i?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function ke(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,Ee(t)&&Oe(t)}function Oe(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return je[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ze(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function Ce(t){return"E"===t.lastToken.toUpperCase()}const Le=new Set([" ",",","\t","\n","\r","\f"]);class Pe extends Zt{bbox(){return bt().path.setAttribute("d",this.toString()),new vt(bt.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let i,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]+=t,this[r][2]+=e):"H"===i?this[r][1]+=t:"V"===i?this[r][1]+=e:"C"===i||"S"===i||"Q"===i?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===i&&(this[r][5]+=t,this[r][6]+=e)):"A"===i&&(this[r][6]+=t,this[r][7]+=e);return this}parse(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"M0 0";return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t){let e=0,n="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:!(arguments.length>1&&void 0!==arguments[1])||arguments[1],p0:new yt,p:new yt};for(;i.lastToken=n,n=t.charAt(e++);)if(i.inSegment||!Se(i,n))if("."!==n)if(isNaN(parseInt(n)))if(Le.has(n))i.inNumber&&ke(i,!1);else if("-"!==n&&"+"!==n)if("E"!==n.toUpperCase()){if(dt.test(n)){if(i.inNumber)ke(i,!1);else{if(!Ee(i))throw new Error("parser Error");Oe(i)}--e}}else i.number+=n,i.hasExponent=!0;else{if(i.inNumber&&!Ce(i)){ke(i,!1),--e;continue}i.number+=n,i.inNumber=!0}else{if("0"===i.number||ze(i)){i.inNumber=!0,i.number=n,ke(i,!0);continue}i.inNumber=!0,i.number+=n}else{if(i.pointSeen||i.hasExponent){ke(i,!1),--e;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=n}return i.inNumber&&ke(i,!1),i.inSegment&&Ee(i)&&Oe(i),i.segments}(t)}size(t,e){const n=this.bbox();let i,r;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y):"H"===r?this[i][1]=(this[i][1]-n.x)*t/n.width+n.x:"V"===r?this[i][1]=(this[i][1]-n.y)*e/n.height+n.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y,this[i][3]=(this[i][3]-n.x)*t/n.width+n.x,this[i][4]=(this[i][4]-n.y)*e/n.height+n.y,"C"===r&&(this[i][5]=(this[i][5]-n.x)*t/n.width+n.x,this[i][6]=(this[i][6]-n.y)*e/n.height+n.y)):"A"===r&&(this[i][1]=this[i][1]*t/n.width,this[i][2]=this[i][2]*e/n.height,this[i][6]=(this[i][6]-n.x)*t/n.width+n.x,this[i][7]=(this[i][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,i=t.length;n<i;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const Be=t=>{const e=typeof t;return"number"===e?Rt:"string"===e?gt.isColor(t)?gt:ct.test(t)?dt.test(t)?Pe:Zt:tt.test(t)?Rt:Ze:He.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Zt:"object"===e?Ue:Ze};class Qe{constructor(t){this._stepper=t||new Ie("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(Be(t));let e=new this._type(t);return this._type===gt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Ue&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Ze{constructor(){this.init(...arguments)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Re{constructor(){this.init(...arguments)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Re.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Re.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Ye=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Ue{constructor(){this.init(...arguments)}align(t){const e=this.values;for(let n=0,i=e.length;n<i;++n){if(e[n+1]===t[n+1]){if(e[n+1]===gt&&t[n+7]!==e[n+7]){const e=t[n+7],i=new gt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...i)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const i=(new t[n+1]).toArray(),r=e[n+2]+3;e.splice(n,r,t[n],t[n+1],t[n+2],...i),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const i=Be(t[n]),r=new i(t[n]).toArray();e.push([n,i,r.length,...r])}return e.sort(Ye),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),i=e.shift(),r=e.shift(),s=e.splice(0,r);t[n]=new i(s)}return t}}const He=[Ze,Re,Ue];class Fe extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("path",t),e)}array(){return this._array||(this._array=new Pe(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new Pe(t))}size(t,e){const n=S(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Ge(){return this._array||(this._array=new fe(this.attr("points")))}function We(){return delete this._array,this}function Je(t,e){return this.attr("points",this.array().move(t,e))}function qe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new fe(t))}function Xe(t,e){const n=S(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Fe.prototype.MorphArray=Pe,N({Container:{path:K((function(t){return this.put(new Fe).plot(t||new Pe)}))}}),J(Fe,"Path");class Ve extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("polygon",t),e)}}N({Container:{polygon:K((function(t){return this.put(new Ve).plot(t||new fe)}))}}),$(Ve,s),$(Ve,o),J(Ve,"Polygon");class $e extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("polyline",t),e)}}N({Container:{polyline:K((function(t){return this.put(new $e).plot(t||new fe)}))}}),$($e,s),$($e,o),J($e,"Polyline");class Ke extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("rect",t),e)}}$(Ke,{rx:Xt,ry:Vt}),N({Container:{rect:K((function(t,e){return this.put(new Ke).size(t,e)}))}}),J(Ke,"Rect");class tn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const en={nextDraw:null,frames:new tn,timeouts:new tn,immediates:new tn,timer:()=>Q.window.performance||Q.window.Date,transforms:[],frame(t){const e=en.frames.push({run:t});return null===en.nextDraw&&(en.nextDraw=Q.window.requestAnimationFrame(en._draw)),e},timeout(t,e){e=e||0;const n=en.timer().now()+e,i=en.timeouts.push({run:t,time:n});return null===en.nextDraw&&(en.nextDraw=Q.window.requestAnimationFrame(en._draw)),i},immediate(t){const e=en.immediates.push(t);return null===en.nextDraw&&(en.nextDraw=Q.window.requestAnimationFrame(en._draw)),e},cancelFrame(t){null!=t&&en.frames.remove(t)},clearTimeout(t){null!=t&&en.timeouts.remove(t)},cancelImmediate(t){null!=t&&en.immediates.remove(t)},_draw(t){let e=null;const n=en.timeouts.last();for(;(e=en.timeouts.shift())&&(t>=e.time?e.run():en.timeouts.push(e),e!==n););let i=null;
1const r=en.frames.last();for(;i!==r&&(i=en.frames.shift());)i.run(t);let s=null;for(;s=en.immediates.shift();)s();en.nextDraw=en.timeouts.first()||en.frames.first()?Q.window.requestAnimationFrame(en._draw):null}};var nn=en;const rn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},sn=function(){const t=Q.window;return(t.performance||t.Date).now()};class on extends zt{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sn;super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(rn);let i=0;const r=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)i=r;else if("absolute"===n||"start"===n)i=e,e=0;else if("now"===n)i=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(i=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();i=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:i+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return nn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=nn.frame(this._step)),this)}_stepFn(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const i=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=i,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let s=this._runners.length;s--;){const t=this._runners[s],e=t.runner;this._time-t.start<=0&&e.reset()}let r=!1;for(let s=0,o=this._runners.length;s<o;s++){const t=this._runners[s],e=t.runner;let n=i;const u=this._time-t.start;if(u<=0){r=!0;continue}if(u<n&&(n=u),!e.active())continue;if(e.step(n).done){if(!0!==t.persist){e.duration()-e.time()+this._time+t.persist<this._time&&(e.unschedule(),--s,--o)}}else r=!0}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}N({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new on,this._timeline):(this._timeline=t,this)}}});class un extends zt{constructor(t){super(),this.id=un.id++,t="function"==typeof(t=null==t?Lt:t)?new Ne(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Ne,this._stepper=this._isDeclarative?t:new Ie,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new xt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){var i,r;let s=1,o=!1,u=0;var a,h,l,c,d;(t=null!==(i=t)&&void 0!==i?i:Lt,e=null!==(r=e)&&void 0!==r?r:Bt,n=n||"last","object"!=typeof t||t instanceof _e)||(e=null!==(a=t.delay)&&void 0!==a?a:e,n=null!==(h=t.when)&&void 0!==h?h:n,o=t.swing||o,s=null!==(l=t.times)&&void 0!==l?l:s,u=null!==(c=t.wait)&&void 0!==c?c:u,t=null!==(d=t.duration)&&void 0!==d?d:Lt);return{duration:t,delay:e,swing:o,times:s,wait:u,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}
vendor: 8,808 bytes, line 1
1animate(t,e,n){const i=un.sanitise(t,e,n),r=new un(i.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(i).schedule(i.delay,i.when)}clearTransform(){return this.transforms=new xt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Ie(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,i=e*Math.floor(t)+this._duration*n;return this.time(i)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,i=this._wait,r=this._times,s=this._swing,o=this._reverse;let u;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(i+n))/(i+n)),r=e&&!o||!e&&o,u=Math.pow(-1,r)*(t%(i+n))/n+r;return Math.max(Math.min(u,1),0)},a=r*(i+n)-i;return u=e<=0?Math.round(t(1e-5)):e<a?t(e):Math.round(t(a-1e-5)),u}const a=Math.floor(this.loops()),h=s&&a%2==0;return u=a+(h&&!o||o&&h?t:1-t),this.loops(u)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,i){this._queue.push({initialiser:t||Ct,runner:e||Ct,retarget:n,isTransform:i,initialised:!1,finished:!1});return this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof on||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const i=this.duration(),r=this._lastTime<=0&&this._time>0,s=this._lastTime<i&&this._time>=i;this._lastTime=this._time,r&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=i,this._reseted=!1;let u=!1;return(n||o)&&(this._initialise(n),this.transforms=new xt,u=this._run(o?t:e),this.fire("step",this)),this.done=this.done||u&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],i=this._isDeclarative||!n.initialised&&t;t=!n.finished,i&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,i=this._queue.length;n<i;++n){const i=this._queue[n],r=i.runner.call(this,t);i.finished=i.finished||!0===r,e=e&&i.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const i=this.timeline();return i&&i.play(),!0}return!1}}un.id=0;class an{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new xt,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}$([un,an],{mergeWith(t){return new an(t.transforms.lmultiply(this.transforms),t.id)}});const hn=(t,e)=>t.lmultiplyO(e),ln=t=>t.transforms;function cn(){const t=this._transformationRunners.runners.map(ln).reduce(hn,new xt);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class dn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new an).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(t&&n.done&&t.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(n.id);const i=n.mergeWith(t);this.edit(t.id,i),t=i,--e}else t=n}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}N({Element:{animate(t,e,n){const i=un.sanitise(t,e,n),r=this.timeline();return new un(i.duration).loop(i).element(this).timeline(r.play()).schedule(i.delay,i.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(ln).reduce(hn,new xt)},_addRunner(t){this._transformationRunners.add(t),nn.cancelImmediate(this._frameId),this._frameId=nn.immediate(cn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new dn).add(new an(new xt(this))))}}});$(un,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let i=e;if(this._tryRetarget(t,i))return this;let r=new Qe(this._stepper).to(i),s=Object.keys(i);return this.queue((function(){r=r.from(this.element()[t](s))}),(function(e){return this.element()[t](r.at(e).valueOf()),r.done()}),(function(e){const n=Object.keys(e),o=(u=s,n.filter((t=>!u.includes(t))));var u;if(o.length){const e=this.element()[t](o),n=new Ue(r.from()).valueOf();Object.assign(n,e),r.from(n)}const a=new Ue(r.to()).valueOf();Object.assign(a,e),r.to(a),s=n,i=e})),this._rememberMorpher(t,r),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new Qe(this._stepper).to(new Rt(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,i){e=i,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const i=xt.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!i;const r=new Qe(this._stepper).type(n?Re:xt);let s,o,u,a,h;return this.queue((function(){o=o||this.element(),s=s||k(t,o),h=new xt(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:d}=new yt(s).transform(o._currentTransform(this));let f=new xt({...t,origin:[c,d]}),m=this._isDeclarative&&u?u:h;if(n){f=f.decompose(c,d),m=m.decompose(c,d);const t=f.rotate,e=m.rotate,n=[t-360,t,t+360],i=n.map((t=>Math.abs(t-e))),r=Math.min(...i),s=i.indexOf(r);f.rotate=n[s]}e&&(i||(f.rotate=t.rotate||0),this._isDeclarative&&a&&(m.rotate=a)),r.from(m),r.to(f);const p=r.at(l);return a=p.rotate,u=new xt(p),this.addTransform(u),o._addRunner(this),r.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=k(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._queueNumberDelta("x",t)},dy(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Rt(e),this._tryRetarget(t,e))return this;const n=new Qe(this._stepper).to(e);let i=null;return this.queue((function(){i=this.element()[t](),n.from(i),n.to(i+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(i+new Rt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new Qe(this._stepper).to(e);
1return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Rt(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,i){if(4===arguments.length)return this.plot([t,e,n,i]);if(this._tryRetarget("plot",t))return this;const r=new Qe(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){r.from(this._element.array())}),(function(t){return this._element.plot(r.at(t)),r.done()})),this._rememberMorpher("plot",r),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,i){return this._queueObject("viewbox",new vt(t,e,n,i))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),$(un,{rx:Xt,ry:Vt,from:ae,to:he}),J(un,"Runner");class fn extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("svg",t),e),this.namespace()}defs(){return this.isRoot()?G(this.node.querySelector("defs"))||this.put(new Jt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Q.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:L,version:"1.1"}).attr("xmlns:xlink",B,P):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,P).attr("xmlns:svgjs",null,P)}root(){return this.isRoot()?this:super.root()}}N({Container:{nested:K((function(){return this.put(new fn)}))}}),J(fn,"Svg",!0);class mn extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("symbol",t),e)}}function pn(t){return!1===this._build&&this.clear(),this.node.appendChild(Q.document.createTextNode(t)),this}function gn(){return this.node.getComputedTextLength()}function yn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function wn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function xn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.bbox();return this.x(t,n).y(e,n)}function bn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function Mn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function vn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.bbox();return this.cx(t,n).cy(e,n)}function _n(t){return this.attr("x",t)}function In(t){return this.attr("y",t)}function Nn(t,e){return this.ax(t).ay(e)}function Dn(t){return this._build=!!t,this}N({Container:{symbol:K((function(){return this.put(new mn)}))}}),J(mn,"Symbol");class An extends qt{constructor(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("text",t),n),this.dom.leading=null!==(e=this.dom.leading)&&void 0!==e?e:new Rt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Rt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(i){if(z(this.node))return;const r=Q.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Rt(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",i?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Rt(t.leading||1.3),this}writeDataToDom(){return C(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let i=0,r=e.length;i<r;++i)"textPath"===e[i].nodeName||z(e[i])?0===i&&(n=i+1):(i!==n&&3!==e[i].nodeType&&!0===G(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}$(An,u),N({Container:{text:K((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.put(new An).text(t)})),plain:K((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.put(new An).plain(t)}))}}),J(An,"Text");class jn extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof An))return this;const e=t.index(this),n=Q.window.getComputedStyle(this.node).getPropertyValue("font-size"),i=t.dom.leading*new Rt(n);return this.dy(e?i:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}$(jn,u),N({Tspan:{tspan:K((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const e=new jn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.tspan(t).newLine()}}}),J(jn,"Tspan");class Tn extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Rt(t).divide(2))}}$(Tn,{x:$t,y:Kt,cx:te,cy:ee,width:ne,height:ie}),N({Container:{circle:K((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.put(new Tn).size(t).move(0,0)}
1))}}),J(Tn,"Circle");class En extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return At("svg [clip-path*="+this.id()+"]")}}N({Container:{clip:K((function(){return this.defs().put(new En)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof En?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),J(En,"ClipPath");class Sn extends Ft{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("foreignObject",t),e)}}function kn(t,e){return this.children().forEach((n=>{let i;try{i=n.bbox()}catch(u){return}const r=new xt(n),s=r.translate(t,e).transform(r.inverse()),o=new yt(i.x,i.y).transform(s);n.move(o.x,o.y)})),this}function On(t){return this.dmove(t,0)}function zn(t){return this.dmove(0,t)}function Cn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.height:this.size(e.width,t,e)}function Ln(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.bbox();const i=t-n.x,r=e-n.y;return this.dmove(i,r)}function Pn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.bbox();const i=S(this,t,e,n),r=i.width/n.width,s=i.height/n.height;
1return this.children().forEach((t=>{const e=new yt(n).transform(new xt(t).inverse());t.scale(r,s,e.x,e.y)})),this}function Bn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.width:this.size(t,e.height,e)}function Qn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.x:this.move(t,e.y,e)}function Zn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.bbox();return null==t?e.y:this.move(e.x,t,e)}N({Container:{foreignObject:K((function(t,e){return this.put(new Sn).size(t,e)}))}}),J(Sn,"ForeignObject");class Rn extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("g",t),e)}}$(Rn,a),N({Container:{group:K((function(){return this.put(new Rn)}))}}),J(Rn,"G");class Yn extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,B)}}$(Yn,a),N({Container:{link:K((function(t){return this.put(new Yn).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Yn,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),J(Yn,"A");class Un extends Wt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return At("svg [mask*="+this.id()+"]")}}N({Container:{mask:K((function(){return this.defs().put(new Un)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Un?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),J(Un,"Mask");class Hn extends Ft{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("stop",t),e)}update(t){return("number"==typeof t||t instanceof Rt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Rt(t.offset)),this}}N({Gradient:{stop:function(t,e,n){return this.put(new Hn).update(t,e,n)}}}),J(Hn,"Stop");class Fn extends Ft{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("style",t),e)}addText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.node.textContent+=t,this}font(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const i in e)n+=i.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[i]+";";return n+="}",n}(t,e))}}N("Dom",{style(t,e){return this.put(new Fn).rule(t,e)},fontface(t,e,n){return this.put(new Fn).font(t,e,n)}}),J(Fn,"Style");class Gn extends An{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}N({Container:{textPath:K((function(t,e){return t instanceof An||(t=this.text(t)),t.path(e)}))},Text:{path:K((function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=new Gn;let i;if(t instanceof Fe||(t=this.defs().path(t)),n.attr("href","#"+t,B),e)for(;i=this.node.firstChild;)n.node.appendChild(i);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:K((function(t){return t instanceof An||(t=(new An).addTo(this.parent()).text(t)),t.path(this)})),targets(){return At("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Gn.prototype.MorphArray=Pe,J(Gn,"TextPath");class Wn extends qt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;super(F("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,B)}}N({Container:{use:K((function(t,e){return this.put(new Wn).use(t,e)}))}}),J(Wn,"Use");const Jn=H;$([fn,mn,de,ce,be],D("viewbox")),$([xe,$e,Ve,Fe],D("marker")),$(An,D("Text")),$(Fe,D("Path")),$(Jt,D("Defs")),$([An,jn],D("Tspan")),$([Ke,re,le,un],D("radius")),$(zt,D("EventTarget")),$(Ht,D("Dom")),$(Ft,D("Element")),$(qt,D("Shape")),$([Wt,ue],D("Container")),$(le,D("Gradient")),$(un,D("Runner")),Nt.extend([...new Set(I)]),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];He.push(...[].concat(t))}([Rt,gt,vt,xt,Zt,fe,Pe,yt]),$(He,{to(t){return(new Qe).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,i,r){return this.fromArray(t.map((function(t,s){return i.step(t,e[s],n,r[s],r)})))}});var qn="VerticalCertificate-module--svgContainer--f19c2";const Xn=new Date,Vn=["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"],$n=String(Xn.getDate()).padStart(2,"0"),Kn=Vn[Xn.getMonth()],ti=Xn.getFullYear();var ei=function(t){var e;let{image:n,text:i,nameTo:r,nameFrom:s,sum:o,customDate:u}=t;const{customDay:a,customMonth:l,customYear:c}=null!=u?u:{};let d=Kn;l&&(d=Vn[l-1]);const f=null!=a?a:$n,m=null!==(e=d)&&void 0!==e?e:Kn,p=(null!=c?c:ti)+1,g=Jn(n),y=g.findOne("#text"),w=g.findOne("#name_from"),x=g.findOne("#name_to"),b=g.findOne("#sum"),M=g.findOne("#date_to"),v=i.replaceAll("\n","<br/>");return y&&(y.node.innerHTML=v),w&&(w.node.innerHTML=s||""),x&&(x.node.innerHTML=`${r}!`),b&&(b.node.innerHTML=`${o} â½`),M&&(M.node.innerHTML=`до ${f} ${m} ${p}
1`),h.createElement("div",{className:qn,dangerouslySetInnerHTML:{__html:g.svg()}})};var ni=function(t){let{image:e,text:n,nameTo:i="",nameFrom:r="",sum:s=0,customDate:o}=t;return h.createElement(ei,{image:e,text:n,nameTo:i,nameFrom:r,sum:s,customDate:o})},ii=n(62279),ri=n(7643),si=n(19508),oi=n(11367),ui=n(27064),ai=n(10876),hi=n(62030),li=n(96885),ci={h1:"GiftConfirmation-module--h1--f9f4b",s1:"GiftConfirmation-module--s1--c3fea",infoBlock:"GiftConfirmation-module--infoBlock--14486",contentBlock:"GiftConfirmation-module--contentBlock--0af9e",giftCard:"GiftConfirmation-module--giftCard--65f05",giftInfo:"GiftConfirmation-module--giftInfo--7bf9d",simpleBlock:"GiftConfirmation-module--simpleBlock--53c60",buttonWrapper:"GiftConfirmation-module--buttonWrapper--1a163",submitButton:"GiftConfirmation-module--submitButton--d3e85"};function di(t){let{image:e,description:n}=t;return h.createElement("div",{className:ci.infoBlock},h.createElement("img",{src:e,alt:"изобÑажение"}),h.createElement(x.fz,{size:"large"},n))}function fi(t){let{title:e,description:n}=t;return h.createElement("div",{className:ci.deliveryBlock},h.createElement(x.fz,{color:"secondary"},e),h.createElement(x.fz,{size:"large"},n))}const mi=(t,e)=>e>1?null:h.createElement(v,{photo:t.image,title:t.title,subtitle:t.description,key:t.id});var pi=function(){const t=(0,g.useLocation)(),{state:e}=t,{phoneTo:n,emailTo:i,nameFrom:r,email:s,nameTo:o,pattern:u,phone:a,sum:l,customSum:c,previewUrl:d,isDesignOn:f,client_newsletter_agreed:b,customTime:M,customDate:v,timezone:_,timezoneTitle:I,deliveryWay:N,deliveryRecipient:D}=null!=e?e:{};let A,j;const T=parseInt((null==l?void 0:l.sum)||c,10),E=f?T+w.h$:T,S=E+Math.round((0,hi.H)(E)*E);let k,O,z;if(v&&M&&_){const[t,e,n]=v.split(".");[k,O,z]=v.split(".").map(Number),A=`${n}-${e}-${t}T${M}`,j=`${t}.${e}.${n} в ${M}, ${I}`}const[C,L]=(0,h.useState)(!1),[P,B]=(0,h.useState)(ii.Uw);if(!u||!r||!a)return(0,y.navigate)("/products/gift"),null;const Q=D===li.Jj,Z=N===li.S7&&D===li.c3,R=N===li.ND&&D===li.c3,Y=Q?"Такой ÑеÑÑиÑÐ¸ÐºÐ°Ñ ÑÐ²Ð¸Ð´Ð¸Ñ Ð¿Ð¾Ð»ÑÑаÑÐµÐ»Ñ "+(N===li.S7?"в пиÑÑме":"по ÑÑÑлке в ÑмÑ"):"Так бÑÐ´ÐµÑ Ð²ÑглÑдеÑÑ ÑеÑÑиÑÐ¸ÐºÐ°Ñ "+(N===li.S7?"в пиÑÑме":"по ÑÑÑлке в ÑмÑ");return h.createElement(x.bc,null,h.createElement(si.B,{path:li.yZ}),h.createElement(ri.b,{width:"narrow"},h.createElement(x.DZ,{className:ci.h1},"ÐÑовеÑÑÑе Ð²Ð°Ñ Ð·Ð°ÐºÐ°Ð·"),h.createElement(x.fz,{size:"large",color:"secondary",className:ci.s1},Y),h.createElement("div",null,h.createElement("div",{className:m()([ci.contentBlock,ci.giftCard])},h.createElement(ni,{image:u.frontLayout,text:u.text,nameTo:o,nameFrom:r,sum:S,customDate:{customDay:k,customMonth:O,customYear:z}})),!!l&&h.createElement("div",{className:m()([ci.contentBlock,ci.simpleBlock])},h.createElement(x.DZ,{variant:"h3",customTag:"h2"},"Ðа ÑÑÐ¼Ð¼Ñ ÑеÑÑиÑикаÑа можно заказаÑÑ"),l.products.map(mi)),h.createElement("div",{className:m()([ci.contentBlock,ci.simpleBlock])},h.createElement(x.DZ,{variant:"h3",customTag:"h2"},"С ÑеÑÑиÑикаÑом можно"),h.createElement(di,{image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzMyODhfNDc0OSkiPgo8cGF0aCBkPSJNMTkgNkg1IiBzdHJva2U9IiMyNzQ3QUUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTcgM0gxNyIgc3Ryb2tlPSIjMjc0N0FFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xOS44OTU0IDlINC4xMDQ1NkMzLjQ5NDUzIDkgMyA5LjQ5NDUzIDMgMTAuMTA0NlYxOS44OTU0QzMgMjAuNTA1NSAzLjQ5NDUzIDIxIDQuMTA0NTYgMjFIMTkuODk1NEMyMC41MDU1IDIxIDIxIDIwLjUwNTUgMjEgMTkuODk1NFYxMC4xMDQ2QzIxIDkuNDk0NTMgMjAuNTA1NSA5IDE5Ljg5NTQgOVoiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzMyODhfNDc0OSI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hp
1dGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",description:"ÐаказаÑÑ Ð»ÑбÑе пÑодÑкÑÑ ÐеÑиодики"}),h.createElement(di,{image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuODk5MDUgMTQuMUwxNC4wOTkgOS44OTk5OSIgc3Ryb2tlPSIjMjc0N0FFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik05LjQ4MjAxIDE5Ljc0MUM5Ljc3NzAxIDE5LjcwMiAxMC4wNzUgMTkuNzgyIDEwLjMxIDE5Ljk2M0wxMS4zOTMgMjAuNzk0QzExLjc1MSAyMS4wNjkgMTIuMjQ5IDIxLjA2OSAxMi42MDYgMjAuNzk0TDEzLjczIDE5LjkzMUMxMy45NCAxOS43NyAxNC4yMDUgMTkuNjk5IDE0LjQ2NyAxOS43MzRMMTUuODczIDE5LjkxOUMxNi4zMiAxOS45NzggMTYuNzUxIDE5LjcyOSAxNi45MjQgMTkuMzEyTDE3LjQ2NSAxOC4wMDRDMTcuNTY2IDE3Ljc1OSAxNy43NiAxNy41NjUgMTguMDA1IDE3LjQ2NEwxOS4zMTMgMTYuOTIzQzE5LjczIDE2Ljc1MSAxOS45NzkgMTYuMzE5IDE5LjkyIDE1Ljg3MkwxOS43NDIgMTQuNTE3QzE5LjcwMyAxNC4yMjIgMTkuNzgzIDEzLjkyNCAxOS45NjQgMTMuNjg5TDIwLjc5NSAxMi42MDZDMjEuMDcgMTIuMjQ4IDIxLjA3IDExLjc1IDIwLjc5NSAxMS4zOTNMMTkuOTMyIDEwLjI2OUMxOS43NzEgMTAuMDU5IDE5LjcgOS43OTQwMSAxOS43MzUgOS41MzIwMUwxOS45MiA4LjEyNjAxQzE5Ljk3OSA3LjY3OTAxIDE5LjczIDcuMjQ4MDEgMTkuMzEzIDcuMDc1MDFMMTguMDA1IDYuNTM0MDFDMTcuNzYgNi40MzMwMSAxNy41NjYgNi4yMzkwMSAxNy40NjUgNS45OTQwMUwxNi45MjQgNC42ODYwMUMxNi43NTIgNC4yNjkwMSAxNi4zMiA0LjAyMDAxIDE1Ljg3MyA0LjA3OTAxTDE0LjQ2NyA0LjI2NDAxQzE0LjIwNSA0LjMwMDAxIDEzLjk0IDQuMjI5MDEgMTMuNzMxIDQuMDY5MDFMMTIuNjA3IDMuMjA2MDFDMTIuMjQ5IDIuOTMxMDEgMTEuNzUxIDIuOTMxMDEgMTEuMzk0IDMuMjA2MDFMMTAuMjcgNC4wNjkwMUMxMC4wNiA0LjIyOTAxIDkuNzk1MDEgNC4zMDAwMSA5LjUzMzAxIDQuMjY2MDFMOC4xMjcwMSA0LjA4MTAxQzcuNjgwMDEgNC4wMjIwMSA3LjI0OTAxIDQuMjcxMDEgNy4wNzYwMSA0LjY4ODAxTDYuNTM2MDEgNS45OTYwMUM2LjQzNDAxIDYuMjQwMDEgNi4yNDAwMSA2LjQzNDAxIDUuOTk2MDEgNi41MzYwMUw0LjY4ODAxIDcuMDc2MDFDNC4yNzEwMSA3LjI0OTAxIDQuMDIyMDEgNy42ODAwMSA0LjA4MTAxIDguMTI3MDFMNC4yNjYwMSA5LjUzMzAxQzQuMzAwMDEgOS43OTUwMSA0LjIyOTAxIDEwLjA2IDQuMDY5MDEgMTAuMjY5TDMuMjA2MDEgMTEuMzkzQzIuOTMxMDEgMTEuNzUxIDIuOTMxMDEgMTIuMjQ5IDMuMjA2MDEgMTIuNjA2TDQuMDY5MDEgMTMuNzNDNC4yMzAwMSAxMy45NCA0LjMwMTAxIDE0LjIwNSA0LjI2NjAxIDE0LjQ2N0w0LjA4MTAxIDE1Ljg3M0M0LjAyMjAxIDE2LjMyIDQuMjcxMDEgMTYuNzUxIDQuNjg4MDEgMTYuOTI0TDUuOTk2MDEgMTcuNDY1QzYuMjQxMDEgMTcuNTY2IDYuNDM1MDEgMTcuNzYgNi41MzYwMSAxOC4wMDVMNy4wNzcwMSAxOS4zMTNDNy4yNDkwMSAxOS43MyA3LjY4MTAxIDE5Ljk3OSA4LjEyODAxIDE5LjkyTDkuNDgyMDEgMTkuNzQxIiBzdHJva2U9IiMyNzQ3QUUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iMSIgZmlsbD0iIzI3NDdBRSIvPgo8Y2lyY2xlIGN4PSIxNCIgY3k9IjE0IiByPSIxIiBmaWxsPSIjMjc0N0FFIi8+Cjwvc3ZnPgo=",description:"ÐплаÑиÑÑ Ð·Ð°ÐºÐ°Ð· Ñеликом или его ÑаÑÑÑ"}),h.createElement(di,{image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDdIOCIgc3Ryb2tlPSIjMjc0N0FFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMSAxMUg4IiBzdHJva2U9IiMyNzQ3QUUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTkgMTVIOCIgc3Ryb2tlPSIjMjc0N0FFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xNyAyMkMxNC4yMzkgMjIgMTIgMTkuNzYyIDEyIDE3QzEyIDE0LjI5NiAxNC4zIDExLjk5NyAxNy4wMDQgMTJDMTkuNzY0IDEyLjAwMiAyMiAxNC4yNCAyMiAxN0MyMiAxOS43NjEgMTkuNzYyIDIyIDE3IDIyWiIgc3Ryb2tlPSIjMjc0N0FFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yMCAxMy4wMjJWNEMyMCAzLjQ0OCAxOS41NTIgMyAxOSAzSDVDNC40NDggMyA0IDMuNDQ4IDQgNFYxOS4xOTFDNCAxOS41NjMgNC4zOTEgMTkuODA0IDQuNzI0IDE5LjYzOEw2LjY2NyAxOC42NjZMOS4xMSAxOS44ODhDOS4yNTEgMTkuOTU4IDkuNDE2IDE5Ljk1OCA5LjU1NyAxOS44ODhMMTIgMTguNjY3TDEyLjM2MiAxOC44NDgiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTkgMTdIMTUiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTcgMTlWMTUiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",description:"ÐÑполÑзоваÑÑ Ð½ÐµÑколÑко Ñаз до иÑÑеÑÐ¿Ð°Ð½Ð¸Ñ Ð±Ð°Ð»Ð°Ð½Ñа"}),f&&h.createElement(di,{image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4Ljk1NCAyMUg1LjA0MDA0QzMuOTM1MDQgMjEgMy4wNDAwNCAyMC4xIDMuMDQwMDQgMTlWMTFDMy4wNDAwNCA5Ljg5IDMuOTM1MDQgOSA1LjA0MDA0IDlIMTguOTQ4QzIwLjA0OCA5IDIwLjk0OCA5Ljg5IDIwLjk0OCAxMVYxOUMyMC45NDggMjAuMSAyMC4wNDggMjEgMTguOTQ4IDIxSDE4Ljk1NFoiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTQuODgwNCAxM0wxMS4yNzU2IDE2Ljk3NEw5LjExMDM1IDE0LjU4MjEiIHN0cm9rZT0iIzI3NDdBRSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNNC43ODIyMyA5VjhDNC43ODIyMyA2Ljg5IDUuNjcyMjMgNiA2Ljc4MjIzIDZIMTcuMjEyMkMxOC4zMTIyIDYgMTkuMjEyMiA2Ljg5IDE5LjIxMjIgOFY5IiBzdHJva2U9IiMyNzQ3QUUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTYuNTE1NjIgNlY1QzYuNTE1NjIgMy44OTUgNy40MDU2MiAzIDguNTE1NjIgM0gxNS40NzU2QzE2LjU3NTYgMyAxNy4
10NzU2IDMuODk1IDE3LjQ3NTYgNVY2IiBzdHJva2U9IiMyNzQ3QUUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",description:"ÐплаÑиÑÑ ÑÑлÑÐ³Ñ Â«Ð¡Ð¾Ð±ÐµÑем ÑоÑÐ¾ÐºÐ½Ð¸Ð³Ñ Ð·Ð°Â Ð²Ð°Ñ»"})),h.createElement("div",{className:m()([ci.contentBlock,ci.simpleBlock])},h.createElement(x.DZ,{variant:"h3",customTag:"h2"},"ÐнÑоÑмаÑÐ¸Ñ Ð´Ð»Ñ Ð´Ð¾ÑÑавки"),h.createElement(fi,{title:"ÐÑÐµÐ¼Ñ Ð¾ÑпÑавки",description:j||"ÐÑпÑавим ÑÑÐ°Ð·Ñ Ð¿Ð¾Ñле оплаÑÑ"}),Q?h.createElement(fi,{title:i?"E-mail полÑÑаÑÐµÐ»Ñ (оÑпÑавим ÑÑда)":"ТелеÑон полÑÑаÑÐµÐ»Ñ (оÑпÑавим ÑÑда)",description:i||n}):h.createElement(fi,{title:"E-mail оÑпÑавиÑелÑ"+(Z?" (оÑпÑавим ÑÑда)":""),description:s}),h.createElement(fi,{title:"ТелеÑон оÑпÑавиÑелÑ"+(R?" (оÑпÑавим ÑÑда)":""),description:a})),h.createElement("div",{className:m()([ci.contentBlock,ci.simpleBlock])},h.createElement(x.DZ,{variant:"h3",customTag:"h2"},"СпоÑоб оплаÑÑ"),h.createElement(oi.Ys,{value:P,onChange:t=>{B(t),ui.A.logEvent({name:`e_site_gift_change_payment_type_${t}`})},onOpenModal:()=>{ui.A.logEvent({name:"e_site_gift_open_payment_modal"})},onSelectedClick:()=>{ui.A.logEvent({name:"e_site_gift_payment_selected_click"})},items:oi.q5})),h.createElement(hi.J,{sum:E,toPay:!0}),h.createElement("div",{className:m()([ci.contentBlock,ci.buttonWrapper])},h.createElement(x.$n,{type:"button",onClick:()=>{(0,y.navigate)("/products/gift/",{state:{...e}})},variant:"brandSecondary",size:"large"},"ÐзмениÑÑ Ð´Ð¸Ð·Ð°Ð¹Ð½ и даннÑе")),h.createElement(x.K$,{type:"button",size:"large",onClick:async()=>
1{try{L(!0);const t=await(0,ai.PR)(u.template_id,r,a,s,o,i||null,n||null,u.text,E,d,b,A,_,P,N,D);t.order_id&&ui.A.logGiftPurchase({orderId:t.order_id,sum:t.amount}),t.payment_url?(0,y.navigate)(t.payment_url):L(!1)}catch(t){console.error(t),(0,p.me)({text:"ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе еÑе Ñаз или ÑвÑжиÑеÑÑ Ñ Ð¿Ð¾Ð´Ð´ÐµÑжкой",type:"error"}),L(!1)}},className:ci.submitButton,loading:C},"РоплаÑе"))))};function gi(){return h.createElement(h.Fragment,null,h.createElement(c.A,{title:"СеÑÑиÑÐ¸ÐºÐ°Ñ Ð½Ð° ÑоÑокнигÑ: изгоÑовление и пеÑаÑÑ ÑоÑокниг в подаÑок",description:"ÐакажиÑе ÑнивеÑÑалÑнÑй подаÑок Ð´Ð»Ñ ÐºÐ¾Ð»Ð»ÐµÐ³, дÑÑзей и ÑоднÑÑ : ÑлекÑÑоннÑй ÑеÑÑиÑÐ¸ÐºÐ°Ñ Ð½Ð° ÑоÑокнигÑ! ÐоÑадÑйÑе Ð±Ð»Ð¸Ð·ÐºÐ¸Ñ ÑоÑоалÑбомом на заказ из ÑобÑÑвеннÑÑ ÑоÑогÑаÑий!"}),h.createElement(d.E,null))}function yi(t){let{children:e,fallback:n=null}=t;const[i,r]=h.useState(!1);return(0,h.useEffect)((()=>{r(!0)}),[]),i?e:n}function wi(){return h.createElement(l.A,null,h.createElement(yi,{fallback:h.createElement("div",{style:{height:400}},h.createElement(x.aH,null))},h.createElement(pi,null)))}}}]); 2//# sourceMappingURL=component---src-pages-products-gift-confirmation-tsx-a20ec8302c9b28dcb90b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.