UNPKG

v3hooks

Version:
9 lines 77.9 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).v3hooks={},t.Vue)}(this,(function(t,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function r(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function o(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}var l=function(t,e){var n=null;return function(){for(var i=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){t.call.apply(t,s([i],a(r)))}),e)}},u=function(t,e){var n=Date.now();return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=Date.now();o-n<e||(n=o,t.call.apply(t,s([this],a(i))))}},h={boolean:{read:function(t){return null!=t?"true"===t:null},write:function(t){return String(t)}},object:{read:function(t){return t?JSON.parse(t):null},write:function(t){return JSON.stringify(t)}},number:{read:function(t){return null!=t?Number.parseFloat(t):null},write:function(t){return String(t)}},any:{read:function(t){return null!=t&&"null"!==t?t:null},write:function(t){return String(t)}},string:{read:function(t){return null!=t?t:null},write:function(t){return String(t)}}},c=function(t){return null==t?"any":"boolean"==typeof t?"boolean":"string"==typeof t?"string":"object"==typeof t||Array.isArray(t)?"object":Number.isNaN(t)?"any":"number"},d=null,f=function(t){return p(),new Promise((function(e){d=setTimeout((function(){return e(d)}),Math.max(t,0))}))},p=function(){d&&clearTimeout(d)},g={method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer"};var v="argsKey",m=function(t,e,n){return r(void 0,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),e.length>0&&n.put(v,e),"[object Function]"!==Object.prototype.toString.call(t)?[3,2]:[4,t.apply(void 0,s([],a(e)))];case 1:return[2,o.sent()];case 2:return"[object Object]"!==Object.prototype.toString.call(t)?[3,4]:[4,(l=t,u=i(i({},g),l),fetch(u.url,u))];case 3:return[2,o.sent().json()];case 4:return[3,6];case 5:return r=o.sent(),[2,Promise.reject(r)];case 6:return[2]}var l,u}))}))},_=new(function(){function t(){this.isActive=!1,this.pollingInterval=0,this.pollingWhenHidden=!0}return t.prototype.run=function(t,e,n){this.isActive=!0,this.pollingInterval=e,this.pollingWhenHidden=n,this.task(t)},t.prototype.cancel=function(){this.isActive=!1},t.prototype.task=function(t){var e=this;setTimeout((function(){e.isActive&&(e.pollingWhenHidden?t():document.hidden||t(),e.task(t))}),this.pollingInterval)},t}()),y=function(t,e,n,i){if(n){if(e.has(n))return void e.put(n,t);e.put(n,t,i)}},w=function(){function t(t){this.memoryCache=new Map,this.timer={},this.maxCache=(null==t?void 0:t.maxCache)||1e3}return t.prototype.put=function(t,e,n,i){var r=this;if(!t||!e)throw new Error("key & value is required");this.size()>=this.maxCache&&this.del(s([],a(this.memoryCache))[0][0]),this.memoryCache.set(t,e),n&&"number"==typeof n&&n>0&&(this.timer[t]=setTimeout((function(){r.del(t),delete r.timer[t],i&&i()}),n))},t.prototype.get=function(t){return this.has(t)?this.memoryCache.get(t):null},t.prototype.has=function(t){return this.memoryCache.has(t)},t.prototype.del=function(t){this.has(t)&&(this.timer[t]&&(clearTimeout(this.timer[t]),delete this.timer[t]),this.memoryCache.delete(t))},t.prototype.clear=function(){if(!(this.size()<=0))for(var t in this.memoryCache.clear(),this.timer)clearTimeout(this.timer[t]),delete this.timer[t]},t.prototype.size=function(){return this.memoryCache.size},t}(),b=new w,C=new w,S={manual:!1,initialData:void 0,onSuccess:function(){},onError:function(){},formatResult:function(t){return t},defaultParams:[],pollingInterval:0,pollingWhenHidden:!0,ready:void 0,debounceInterval:void 0,throttleInterval:void 0,refreshOnWindowFocus:!1,focusTimespan:void 0,loadingDelay:0,refreshDeps:[],cacheTime:3e5,staleTime:0},A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x={exports:{}};!function(t,e){t.exports=function(){var t=1e3,e=6e4,i=36e5,r="millisecond",o="second",a="minute",s="hour",l="day",u="week",h="month",c="quarter",d="year",f="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},_=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+_(i,2,"0")+":"+_(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,h),o=n-r<0,a=e.clone().add(i+(o?-1:1),h);return+(-(i+(n-r)/(o?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:d,w:u,d:l,D:f,h:s,m:a,s:o,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=m;var C=function(t){return t instanceof T},S=function(t,e,n){var i;if(!t)return w;if("string"==typeof t)b[t]&&(i=t),e&&(b[t]=e,i=t);else{var r=t.name;b[r]=t,i=r}return!n&&i&&(w=i),i||!n&&w},A=function(t,e){if(C(t))return t.clone();var i="object"==n(e)?e:{};return i.date=t,i.args=arguments,new T(i)},x=y;x.l=S,x.i=C,x.w=function(t,e){return A(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function n(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=n.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var n=A(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return A(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<A(t)},m.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,i=!!x.u(e)||e,r=x.p(t),c=function(t,e){var r=x.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(l)},p=function(t,e){return x.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,v=this.$M,m=this.$D,_="set"+(this.$u?"UTC":"");switch(r){case d:return i?c(1,0):c(31,11);case h:return i?c(1,v):c(0,v+1);case u:var y=this.$locale().weekStart||0,w=(g<y?g+7:g)-y;return c(i?m-w:m+(6-w),v);case l:case f:return p(_+"Hours",0);case s:return p(_+"Minutes",1);case a:return p(_+"Seconds",2);case o:return p(_+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,i=x.p(t),u="set"+(this.$u?"UTC":""),c=(n={},n[l]=u+"Date",n[f]=u+"Date",n[h]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[a]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[i],p=i===l?this.$D+(e-this.$W):e;if(i===h||i===d){var g=this.clone().set(f,1);g.$d[c](p),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else c&&this.$d[c](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[x.p(t)]()},m.add=function(n,r){var c,f=this;n=Number(n);var p=x.p(r),g=function(t){var e=A(f);return x.w(e.date(e.date()+Math.round(t*n)),f)};if(p===h)return this.set(h,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===l)return g(1);if(p===u)return g(7);var v=(c={},c[a]=e,c[s]=i,c[o]=t,c)[p]||1,m=this.$d.getTime()+n*v;return x.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=x.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,h=function(t,n,r,o){return t&&(t[n]||t(e,i))||r[n].substr(0,o)},c=function(t){return x.s(o%12||12,t,"0")},d=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:x.s(s+1,2,"0"),MMM:h(n.monthsShort,s,u,3),MMMM:h(u,s),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,l,2),ddd:h(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:x.s(o,2,"0"),h:c(1),hh:c(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:x.s(a,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:r};return i.replace(v,(function(t,e){return e||f[t]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,r,f){var p,g=x.p(r),v=A(n),m=(v.utcOffset()-this.utcOffset())*e,_=this-v,y=x.m(this,v);return y=(p={},p[d]=y/12,p[h]=y,p[c]=y/3,p[u]=(_-m)/6048e5,p[l]=(_-m)/864e5,p[s]=_/i,p[a]=_/e,p[o]=_/t,p)[g]||_,f?y:x.a(y)},m.daysInMonth=function(){return this.endOf(h).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=S(t,e,!0);return i&&(n.$L=i),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},n}(),O=T.prototype;return A.prototype=O,[["$ms",r],["$s",o],["$m",a],["$H",s],["$W",l],["$M",h],["$y",d],["$D",f]].forEach((function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),A.extend=function(t,e){return t.$i||(t(e,T,A),t.$i=!0),A},A.locale=S,A.isDayjs=C,A.unix=function(t){return A(1e3*t)},A.en=b[w],A.Ls=b,A.p={},A}()}(x);var T=x.exports,O={format:"YYYY-MM-DD HH:mm:ss",method:"format"};var E=function(t,e){return{run:l(t,"number"==typeof e?e:1e3)}},k=function(t,e){return{run:u(t,"number"==typeof e?e:1e3)}};function D(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.map((function(t){return e.isRef(t)?t:e.ref(t)})),r=i[0].value,o=e.ref(r),l=i[0];e.watch([l],(function(){o.value=l.value}),{deep:!0});var u=0,h=t.length,c=function(n){if(void 0!==n&&t.includes(n))return o.value=e.isRef(n)?n.value:n,void(l=e.isRef(n)?n:e.ref(n));u=u+1>h-1?0:u+1,o.value=i[u].value,l=i[u]},d=function(){return i.map((function(t,e){return function(){o.value=t.value,l=t,u=e}}))},f=s([c],a(d()));return[o,f]}var M=localStorage,P={watch:!0},I=sessionStorage,L={watch:!0},R=function(){var t=navigator;return"object"!=typeof t?null:t.connection||t.mozConnection||t.webkitConnection},N=function(){var t=R();return{rtt:t.rtt,type:t.type,saveData:t.saveData,downlink:t.downlink,downlinkMax:t.downlinkMax,effectiveType:t.effectiveType}},B={exports:{}}; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ !function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function r(){}function o(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},r.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(t){}n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=e+"="+n+s}}function a(t,n){if("undefined"!=typeof document){for(var r={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=e(s[0]);if(l=(i.read||i)(l,u)||e(l),n)try{l=JSON.parse(l)}catch(t){}if(r[u]=l,t===u)break}catch(t){}}return t?r[t]:r}}return r.set=o,r.get=function(t){return a(t,!1)},r.getJSON=function(t){return a(t,!0)},r.remove=function(e,n){o(e,"",t(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))},t.exports=n()}(B);var H=B.exports,$={watch:!1,defaultValue:void 0};var q={onFull:function(){},onExitFull:function(){}},F={left:NaN,right:NaN,top:NaN,bottom:NaN,height:NaN,width:NaN},j={immediate:!1},U=function(t,n){var i=e.isRef(n)?n:e.ref(n),r=function(){void 0!==i.value&&null!==i.value&&t()};void 0!==i.value&&null!==i.value&&setTimeout(r,i.value),e.onUnmounted((function(){return null}))},Z={exports:{}};!function(t,e){!function(){function e(t,e){var n,i=Object.keys(e);for(n=0;n<i.length;n++)t=t.replace(new RegExp("\\{"+i[n]+"\\}","gi"),e[i[n]]);return t}function i(t){var e,n,i;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="";do{for(n="",i=0;i<12;i++)n+=e[Math.floor(Math.random()*e.length)]}while(t[n]);return n}function r(t){var e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function o(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}var a,s,l,u,h;h=function(t,e){var n,i,r,o={};for(t=t.split(","),e=e||10,n=0;n<t.length;n+=2)i="&"+t[n+1]+";",r=parseInt(t[n],e),o[i]="&#"+r+";";return o["\\xa0"]="&#160;",o}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),a={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(l=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,n){var i,r=this.__ctx.__createElement("stop");r.setAttribute("offset",t),-1!==n.indexOf("rgba")?(i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n),r.setAttribute("stop-color",e("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),r.setAttribute("stop-opacity",i[4])):r.setAttribute("stop-color",n),this.__root.appendChild(r)},u=function(t,e){this.__root=t,this.__ctx=e},(s=function(t){var e,n={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=n).width=arguments[0],e.height=arguments[1]):e=t||n,!(this instanceof s))return new s(e);this.width=e.width||n.width,this.height=e.height||n.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:n.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,n){void 0===e&&(e={});var i,r,o=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(n&&(o.setAttribute("fill","none"),o.setAttribute("stroke","none")),i=0;i<a.length;i++)r=a[i],o.setAttribute(r,e[r]);return o},s.prototype.__setDefaultStyles=function(){var t,e,n=Object.keys(a);for(t=0;t<n.length;t++)this[e=n[t]]=a[e].canvas},s.prototype.__applyStyleState=function(t){var e,n,i=Object.keys(t);for(e=0;e<i.length;e++)this[n=i[e]]=t[n]},s.prototype.__getStyleState=function(){var t,e,n={},i=Object.keys(a);for(t=0;t<i.length;t++)n[e=i[t]]=this[e];return n},s.prototype.__applyStyleToCurrentElement=function(t){var n=this.__currentElement,i=this.__currentElementsToStyle;i&&(n.setAttribute(t,""),n=i.element,i.children.forEach((function(e){e.setAttribute(t,"")})));var r,o,s,h,c,d=Object.keys(a);for(r=0;r<d.length;r++)if(o=a[d[r]],s=this[d[r]],o.apply)if(s instanceof u){if(s.__ctx)for(;s.__ctx.__defs.childNodes.length;)h=s.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[h]=h,this.__defs.appendChild(s.__ctx.__defs.childNodes[0]);n.setAttribute(o.apply,e("url(#{id})",{id:s.__root.getAttribute("id")}))}else if(s instanceof l)n.setAttribute(o.apply,e("url(#{id})",{id:s.__root.getAttribute("id")}));else if(-1!==o.apply.indexOf(t)&&o.svg!==s)if("stroke"!==o.svgAttr&&"fill"!==o.svgAttr||-1===s.indexOf("rgba")){var f=o.svgAttr;if("globalAlpha"===d[r]&&(f=t+"-"+o.svgAttr,n.getAttribute(f)))continue;n.setAttribute(f,s)}else{c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(s),n.setAttribute(o.svgAttr,e("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));var p=c[4],g=this.globalAlpha;null!=g&&(p*=g),n.setAttribute(o.svgAttr+"-opacity",p)}},s.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},s.prototype.getSerializedSvg=function(t){var e,n,i,r,o,a=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(a)&&(a=a.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t)for(e=Object.keys(h),n=0;n<e.length;n++)i=e[n],r=h[i],(o=new RegExp(i,"gi")).test(a)&&(a=a.replace(o,r));return a},s.prototype.getSvg=function(){return this.__root},s.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},s.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},s.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var n=this.__createElement("g");e.appendChild(n),this.__currentElement=n}var i=this.__currentElement.getAttribute("transform");i?i+=" ":i="",i+=t,this.__currentElement.setAttribute("transform",i)},s.prototype.scale=function(t,n){void 0===n&&(n=t),this.__addTransform(e("scale({x},{y})",{x:t,y:n}))},s.prototype.rotate=function(t){var n=180*t/Math.PI;this.__addTransform(e("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))},s.prototype.translate=function(t,n){this.__addTransform(e("translate({x},{y})",{x:t,y:n}))},s.prototype.transform=function(t,n,i,r,o,a){this.__addTransform(e("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:n,c:i,d:r,e:o,f:a}))},s.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},s.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},s.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},s.prototype.moveTo=function(t,n){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:n},this.__addPathCommand(e("M {x} {y}",{x:t,y:n}))},s.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},s.prototype.lineTo=function(t,n){this.__currentPosition={x:t,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(e("L {x} {y}",{x:t,y:n})):this.__addPathCommand(e("M {x} {y}",{x:t,y:n}))},s.prototype.bezierCurveTo=function(t,n,i,r,o,a){this.__currentPosition={x:o,y:a},this.__addPathCommand(e("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:n,cp2x:i,cp2y:r,x:o,y:a}))},s.prototype.quadraticCurveTo=function(t,n,i,r){this.__currentPosition={x:i,y:r},this.__addPathCommand(e("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:n,x:i,y:r}))};var c=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};s.prototype.arcTo=function(t,e,n,i,r){var o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==o&&void 0!==a){if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||0===r)return void this.lineTo(t,e);var s=c([o-t,a-e]),l=c([n-t,i-e]);if(s[0]*l[1]==s[1]*l[0])return void this.lineTo(t,e);var u=s[0]*l[0]+s[1]*l[1],h=Math.acos(Math.abs(u)),d=c([s[0]+l[0],s[1]+l[1]]),f=r/Math.sin(h/2),p=t+f*d[0],g=e+f*d[1],v=[-s[1],s[0]],m=[l[1],-l[0]],_=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},y=_(v),w=_(m);this.lineTo(p+v[0]*r,g+v[1]*r),this.arc(p,g,r,y,w)}},s.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},s.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},s.prototype.rect=function(t,e,n,i){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},s.prototype.fillRect=function(t,e,n,i){var r;r=this.__createElement("rect",{x:t,y:e,width:n,height:i,"shape-rendering":"crispEdges"},!0),this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")},s.prototype.strokeRect=function(t,e,n,i){var r;r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0),this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")},s.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],n=e.childNodes,i=n.length-1;i>=0;i--)n[i]&&e.removeChild(n[i]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},s.prototype.clearRect=function(t,e,n,i){if(0!==t||0!==e||n!==this.width||i!==this.height){var r,o=this.__closestGroupOrSvg();r=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0),o.appendChild(r)}else this.__clearCanvas()},s.prototype.createLinearGradient=function(t,e,n,r){var o=this.__createElement("linearGradient",{id:i(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new l(o,this)},s.prototype.createRadialGradient=function(t,e,n,r,o,a){var s=this.__createElement("radialGradient",{id:i(this.__ids),cx:r+"px",cy:o+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(s),new l(s,this)},s.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},s.prototype.__wrapTextLink=function(t,e){if(t.href){var n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e},s.prototype.__applyText=function(t,e,n,i){var a=this.__parseFont(),s=this.__closestGroupOrSvg(),l=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:n,"text-anchor":r(this.textAlign),"dominant-baseline":o(this.textBaseline)},!0);l.appendChild(this.__document.createTextNode(t)),this.__currentElement=l,this.__applyStyleToCurrentElement(i),s.appendChild(this.__wrapTextLink(a,l))},s.prototype.fillText=function(t,e,n){this.__applyText(t,e,n,"fill")},s.prototype.strokeText=function(t,e,n){this.__applyText(t,e,n,"stroke")},s.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},s.prototype.arc=function(t,n,i,r,o,a){if(r!==o){(r%=2*Math.PI)===(o%=2*Math.PI)&&(o=(o+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));var s,l=t+i*Math.cos(o),u=n+i*Math.sin(o),h=t+i*Math.cos(r),c=n+i*Math.sin(r),d=a?0:1,f=o-r;f<0&&(f+=2*Math.PI),s=a?f>Math.PI?0:1:f>Math.PI?1:0,this.lineTo(h,c),this.__addPathCommand(e("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:s,sweepFlag:d,endX:l,endY:u})),this.__currentPosition={x:l,y:u}}},s.prototype.clip=function(){var t=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),r=i(this.__ids),o=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),n.setAttribute("id",r),n.appendChild(this.__currentElement),this.__defs.appendChild(n),t.setAttribute("clip-path",e("url(#{id})",{id:r})),t.appendChild(o),this.__currentElement=o},s.prototype.drawImage=function(){var t,e,n,i,r,o,a,l,u,h,c,d,f,p=Array.prototype.slice.call(arguments),g=p[0],v=0,m=0;if(3===p.length)t=p[1],e=p[2],n=r=g.width,i=o=g.height;else if(5===p.length)t=p[1],e=p[2],n=p[3],i=p[4],r=g.width,o=g.height;else{if(9!==p.length)throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);v=p[1],m=p[2],r=p[3],o=p[4],t=p[5],e=p[6],n=p[7],i=p[8]}a=this.__closestGroupOrSvg(),this.__currentElement;var _="translate("+t+", "+e+")";if(g instanceof s){if((l=g.getSvg().cloneNode(!0)).childNodes&&l.childNodes.length>1){for(u=l.childNodes[0];u.childNodes.length;)f=u.childNodes[0].getAttribute("id"),this.__ids[f]=f,this.__defs.appendChild(u.childNodes[0]);if(h=l.childNodes[1]){var y,w=h.getAttribute("transform");y=w?w+" "+_:_,h.setAttribute("transform",y),a.appendChild(h)}}}else"CANVAS"!==g.nodeName&&"IMG"!==g.nodeName||((c=this.__createElement("image")).setAttribute("width",n),c.setAttribute("height",i),c.setAttribute("preserveAspectRatio","none"),c.setAttribute("opacity",this.globalAlpha),(v||m||r!==g.width||o!==g.height)&&((d=this.__document.createElement("canvas")).width=n,d.height=i,d.getContext("2d").drawImage(g,v,m,r,o,0,0,n,i),g=d),c.setAttribute("transform",_),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===g.nodeName?g.toDataURL():g.originalSrc),a.appendChild(c))},s.prototype.createPattern=function(t,e){var n,r=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),o=i(this.__ids);return r.setAttribute("id",o),r.setAttribute("width",t.width),r.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((n=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),n.setAttribute("height",t.height),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),r.appendChild(n),this.__defs.appendChild(r)):t instanceof s&&(r.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(r)),new u(r,this)},s.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},s.prototype.drawFocusRing=function(){},s.prototype.createImageData=function(){},s.prototype.getImageData=function(){},s.prototype.putImageData=function(){},s.prototype.globalCompositeOperation=function(){},s.prototype.setTransform=function(){},"object"==("undefined"==typeof window?"undefined":n(window))&&(window.C2S=s),t.exports=s}(),function(){function i(t,e){this.mode=_.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var n=0,i=this.data.length;n<i;n++){var r=[],o=this.data.charCodeAt(n);e?r[0]=o:o>65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function o(t,e){if(t.length==h)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function a(t,e){this.totalCount=t,this.dataCount=e}function s(){this.buffer=[],this.length=0}function l(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var n=e.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(t=parseFloat(n[1]))}return t}function u(t,e){for(var n=e.correctLevel,i=1,r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t.length?3:0)}(t),o=0,a=x.length;o<a;o++){var s=0;switch(n){case y.L:s=x[o][0];break;case y.M:s=x[o][1];break;case y.Q:s=x[o][2];break;case y.H:s=x[o][3]}if(r<=s)break;i++}if(i>x.length)throw new Error("Too long data. the CorrectLevel."+["M","L","H","Q"][n]+" limit length is "+s);return 0!=e.version&&(i<=e.version?(i=e.version,e.runVersion=i):(console.warn("QR Code version "+e.version+" too small, run version use "+i),e.runVersion=i)),i}var h,c,d="object"==n(A)&&A&&A.Object===Object&&A,f="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),g=e&&!e.nodeType&&e,v=g&&t&&!t.nodeType&&t,m=p.QRCode;i.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}},r.prototype={addData:function(t,e){var n=new i(t,e);this.dataList.push(n),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e][0]},getEye:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);var n=this.modules[t][e];if(n[1]){var i="P"+n[1]+"_"+n[2];return"A"==n[2]&&(i="A"+n[1]),{isDark:n[0],type:i}}return null},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=[]}this.setupPositionProbePattern(0,0,"TL"),this.setupPositionProbePattern(this.moduleCount-7,0,"BL"),this.setupPositionProbePattern(0,this.moduleCount-7,"TR"),this.setupPositionAdjustPattern("A"),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e,n){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4?(this.modules[t+i][e+r][0]=!0,this.modules[t+i][e+r][2]=n,this.modules[t+i][e+r][1]=-0==i||-0==r||6==i||6==r?"O":"I"):this.modules[t+i][e+r][0]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=b.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r<this.modules.length;r++)for(var o=1*r,a=0;a<this.modules[r].length;a++){var s=1*a;this.modules[r][a][0]&&(i.beginFill(0,100),i.moveTo(s,o),i.lineTo(s+1,o),i.lineTo(s+1,o+1),i.lineTo(s,o+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6][0]&&(this.modules[t][6][0]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e][0]&&(this.modules[6][e][0]=e%2==0)},setupPositionAdjustPattern:function(t){for(var e=b.getPatternPosition(this.typeNumber),n=0;n<e.length;n++)for(var i=0;i<e.length;i++){var r=e[n],o=e[i];if(null==this.modules[r][o][0])for(var a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2==a||2==a||-2==s||2==s||0==a&&0==s?(this.modules[r+a][o+s][0]=!0,this.modules[r+a][o+s][2]=t,this.modules[r+a][o+s][1]=-2==a||-2==s||2==a||2==s?"O":"I"):this.modules[r+a][o+s][0]=!1}},setupTypeNumber:function(t){for(var e=b.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3][0]=i}for(n=0;n<18;n++){i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)][0]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=b.getBCHTypeInfo(n),r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<6?this.modules[r][8][0]=o:r<8?this.modules[r+1][8][0]=o:this.modules[this.moduleCount-15+r][8][0]=o}for(r=0;r<15;r++){o=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1][0]=o:r<9?this.modules[8][15-r-1+1][0]=o:this.modules[8][15-r-1][0]=o}this.modules[this.moduleCount-8][8][0]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[i][a-s][0]){var l=!1;o<t.length&&(l=1==(t[o]>>>r&1)),b.getMask(e,i,a-s)&&(l=!l),this.modules[i][a-s][0]=l,-1==--r&&(o++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=a.getRSBlocks(t,e),o=new s,l=0;l<n.length;l++){var u=n[l];o.put(u.mode,4),o.put(u.getLength(),b.getLengthInBits(u.mode,t)),u.write(o)}var h=0;for(l=0;l<i.length;l++)h+=i[l].dataCount;if(o.getLengthInBits()>8*h)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*h+")");for(o.getLengthInBits()+4<=8*h&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*h)&&(o.put(r.PAD0,8),!(o.getLengthInBits()>=8*h));)o.put(r.PAD1,8);return r.createBytes(o,i)},r.createBytes=function(t,e){for(var n=0,i=0,r=0,a=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l++){var u=e[l].dataCount,h=e[l].totalCount-u;i=Math.max(i,u),r=Math.max(r,h),a[l]=new Array(u);for(var c=0;c<a[l].length;c++)a[l][c]=255&t.buffer[c+n];n+=u;var d=b.getErrorCorrectPolynomial(h),f=new o(a[l],d.getLength()-1).mod(d);s[l]=new Array(d.getLength()-1);for(c=0;c<s[l].length;c++){var p=c+f.getLength()-s[l].length;s[l][c]=p>=0?f.get(p):0}}var g=0;for(c=0;c<e.length;c++)g+=e[c].totalCount;var v=new Array(g),m=0;for(c=0;c<i;c++)for(l=0;l<e.length;l++)c<a[l].length&&(v[m++]=a[l][c]);for(c=0;c<r;c++)for(l=0;l<e.length;l++)c<s[l].length&&(v[m++]=s[l][c]);return v};for(var _={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},y={L:1,M:0,Q:3,H:2},w={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},b={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;b.getBCHDigit(e)-b.getBCHDigit(b.G15)>=0;)e^=b.G15<<b.getBCHDigit(e)-b.getBCHDigit(b.G15);return(t<<10|e)^b.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;b.getBCHDigit(e)-b.getBCHDigit(b.G18)>=0;)e^=b.G18<<b.getBCHDigit(e)-b.getBCHDigit(b.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return b.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case w.PATTERN000:return(e+n)%2==0;case w.PATTERN001:return e%2==0;case w.PATTERN010:return n%3==0;case w.PATTERN011:return(e+n)%3==0;case w.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case w.PATTERN101:return e*n%2+e*n%3==0;case w.PATTERN110:return(e*n%2+e*n%3)%2==0;case w.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new o([1],0),n=0;n<t;n++)e=e.multiply(new o([1,C.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case _.MODE_NUMBER:return 10;case _.MODE_ALPHA_NUM:return 9;case _.MODE_8BIT_BYTE:case _.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case _.MODE_NUMBER:return 12;case _.MODE_ALPHA_NUM:return 11;case _.MODE_8BIT_BYTE:return 16;case _.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case _.MODE_NUMBER:return 14;case _.MODE_ALPHA_NUM:return 13;case _.MODE_8BIT_BYTE:return 16;case _.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var o=0,a=t.isDark(i,r),s=-1;s<=1;s++)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l++)r+l<0||e<=r+l||0==s&&0==l||a==t.isDark(i+s,r+l)&&o++;o>5&&(n+=3+o-5)}for(i=0;i<e-1;i++)for(r=0;r<e-1;r++){var u=0;t.isDark(i,r)&&u++,t.isDark(i+1,r)&&u++,t.isDark(i,r+1)&&u++,t.isDark(i+1,r+1)&&u++,0!=u&&4!=u||(n+=3)}for(i=0;i<e;i++)for(r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(r=0;r<e;r++)for(i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);var h=0;for(r=0;r<e;r++)for(i=0;i<e;i++)t.isDark(i,r)&&h++;return n+Math.abs(100*h/e/e-50)/5*10}},C={glog:function(t){if(t<1)throw new Error("glog("+t+")");return C.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return C.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},S=0;S<8;S++)C.EXP_TABLE[S]=1<<S;for(S=8;S<256;S++)C.EXP_TABLE[S]=C.EXP_TABLE[S-4]^C.EXP_TABLE[S-5]^C.EXP_TABLE[S-6]^C.EXP_TABLE[S-8];for(S=0;S<255;S++)C.LOG_TABLE[C.EXP_TABLE[S]]=S;o.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)e[n+i]^=C.gexp(C.glog(this.get(n))+C.glog(t.get(i)));return new o(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=C.glog(this.get(0))-C.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<t.getLength();i++)n[i]^=C.gexp(C.glog(t.get(i))+e);return new o(n,0).mod(t)}},a.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],a.getRSBlocks=function(t,e){var n=a.getRsBlockTable(t,e);if(n==h)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=n.length/3,r=[],o=0;o<i;o++)for(var s=n[3*o+0],l=n[3*o+1],u=n[3*o+2],c=0;c<s;c++)r.push(new a(l,u));return r},a.getRsBlockTable=function(t,e){switch(e){case y.L:return a.RS_BLOCK_TABLE[4*(t-1)+0];case y.M:return a.RS_BLOCK_TABLE[4*(t-1)+1];case y.Q:return a.RS_BLOCK_TABLE[4*(t-1)+2];case y.H:return a.RS_BLOCK_TABLE[4*(t-1)+3];default:return h}},s.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var x=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],T="undefined"!=typeof CanvasRenderingContext2D?function(){function t(){if("svg"==this._htOption.drawer){var t=this._oContext.getSerializedSvg(!0);this.dataURL=t,this._el.innerH