mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
48 KiB
JavaScript
1 line
48 KiB
JavaScript
(window["webpackJsonp_park-unit-web"]=window["webpackJsonp_park-unit-web"]||[]).push([["chunk-3450bf05"],{"0c47":function(t,e,r){var n=r("da84"),o=r("d44e");o(n.JSON,"JSON",!0)},"0e43":function(t,e,r){var n=r("a38c");t.exports=n},"0f59":function(t,e,r){var n=r("9717");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},"147b":function(t,e,r){"use strict";var n=r("a5eb"),o=r("dee0").filter,i=r("9c96"),a=r("302b"),s=i("filter"),c=a("filter");n({target:"Array",proto:!0,forced:!s||!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"14df":function(t,e,r){var n=r("9883"),o=r("0cf0"),i=r("a205"),a=r("6f8d");t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},"1d3a":function(t,e,r){"use strict";var n=r("a5eb"),o=r("dfdb"),i=r("6220"),a=r("4508"),s=r("6725"),c=r("a421"),u=r("6c15"),f=r("0363"),h=r("9c96"),l=r("302b"),p=h("slice"),d=l("slice",{ACCESSORS:!0,0:0,1:2}),v=f("species"),g=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!p||!d},{slice:function(t,e){var r,n,f,h=c(this),l=s(h.length),p=a(t,l),d=a(void 0===e?l:e,l);if(i(h)&&(r=h.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?o(r)&&(r=r[v],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return g.call(h,p,d);for(n=new(void 0===r?Array:r)(m(d-p,0)),f=0;p<d;p++,f++)p in h&&u(n,f,h[p]);return n.length=f,n}})},"1e75":function(t,e,r){t.exports=r("2d3f")},"21b8":function(t,e,r){var n=r("a5eb"),o=r("e9d9");n({target:"Function",proto:!0},{bind:o})},"23dc":function(t,e,r){var n=r("d44e");n(Math,"Math",!0)},"24b4":function(t,e,r){r("5145");var n=r("bc0d"),o=r("8f95"),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||a.hasOwnProperty(o(t))?n:e}},"2d3f":function(t,e,r){var n=r("930e");t.exports=n},"2d80":function(t,e,r){t.exports=r("0e43")},"2ec7":function(t,e,r){var n=r("716a");t.exports=n},3327:function(t,e,r){r("21b8");var n=r("a169");t.exports=n("Function").bind},"362a":function(t,e,r){"use strict";var n=r("a5eb"),o=r("7042"),i=r("f354"),a=r("06fa"),s=r("9883"),c=r("b0ea"),u=r("7ef9"),f=r("d666"),h=!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=c(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}}),o||"function"!=typeof i||i.prototype["finally"]||f(i.prototype,"finally",s("Promise").prototype["finally"])},3818:function(t,e,r){t.exports=r("2ec7")},3960:function(t,e,r){t.exports=r("a915")},"3e476":function(t,e,r){var n=r("a5eb"),o=r("c1b2"),i=r("4180");n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:i.f})},4035:function(t,e,r){var n=r("e332");t.exports=n},"408a":function(t,e,r){var n=r("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},4202:function(t,e,r){r("147b");var n=r("a169");t.exports=n("Array").filter},4573:function(t,e,r){t.exports=r("24b4")},"47da":function(t,e,r){r("5adb");var n=r("764b");t.exports=n.Object.getOwnPropertyDescriptors},"52da":function(t,e,r){t.exports=r("4035")},"55d0":function(t,e,r){var n=r("a5eb"),o=r("f44f");n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},"56c4":function(t,e,r){r("a8b3");var n=r("a169");t.exports=n("Array").forEach},"5adb":function(t,e,r){var n=r("a5eb"),o=r("c1b2"),i=r("14df"),a=r("a421"),s=r("44ba"),c=r("6c15");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,r,n=a(t),o=s.f,u=i(n),f={},h=0;while(u.length>h)r=o(n,e=u[h++]),void 0!==r&&c(f,e,r);return f}})},"5afb":function(t,e,r){var n,o,i,a=r("3ac6"),s=r("06fa"),c=r("fc48"),u=r("6414"),f=r("edbd"),h=r("7a37"),l=r("0f59"),p=a.location,d=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,w={},_="onreadystatechange",x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},E=function(t){return function(){x(t)}},A=function(t){x(t.data)},P=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&v||(d=function(t){var e=[],r=1;while(arguments.length>r)e.push(arguments[r++]);return w[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},v=function(t){delete w[t]},"process"==c(g)?n=function(t){g.nextTick(E(t))}:y&&y.now?n=function(t){y.now(E(t))}:m&&!l?(o=new m,i=o.port2,o.port1.onmessage=A,n=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(P)?n=_ in h("script")?function(t){f.appendChild(h("script"))[_]=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(E(t),0)}:(n=P,a.addEventListener("message",A,!1))),t.exports={set:d,clear:v}},"5f9e":function(t,e,r){var n=r("4202"),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||t instanceof Array&&e===o.filter?n:e}},"606e":function(t,e,r){var n=r("5f9e");t.exports=n},6813:function(t,e,r){"use strict";var n,o,i,a,s=r("a5eb"),c=r("7042"),u=r("3ac6"),f=r("9883"),h=r("f354"),l=r("d666"),p=r("0aea"),d=r("2874"),v=r("d383"),g=r("dfdb"),m=r("cc94"),y=r("5f7d"),b=r("fc48"),w=r("e899"),_=r("5b57"),x=r("7de79"),E=r("b0ea"),A=r("5afb").set,P=r("a0e6"),C=r("7ef9"),L=r("c2f0"),k=r("ad27"),D=r("9b8d"),T=r("2f5a"),O=r("a0e5"),B=r("0363"),M=r("4aa6"),N=B("species"),I="Promise",S=T.get,R=T.set,j=T.getterFor(I),F=h,U=u.TypeError,H=u.document,G=u.process,K=f("fetch"),z=k.f,X=z,J="process"==b(G),Q=!!(H&&H.createEvent&&u.dispatchEvent),Y="unhandledrejection",q="rejectionhandled",V=0,W=1,Z=2,$=1,tt=2,et=O(I,(function(){var t=w(F)!==String(F);if(!t){if(66===M)return!0;if(!J&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!F.prototype["finally"])return!0;if(M>=51&&/native code/.test(F))return!1;var e=F.resolve(1),r=function(t){t((function(){}),(function(){}))},n=e.constructor={};return n[N]=r,!(e.then((function(){}))instanceof r)})),rt=et||!x((function(t){F.all(t)["catch"]((function(){}))})),nt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;P((function(){var o=e.value,i=e.state==W,a=0;while(n.length>a){var s,c,u,f=n[a++],h=i?f.ok:f.fail,l=f.resolve,p=f.reject,d=f.domain;try{h?(i||(e.rejection===tt&&ct(t,e),e.rejection=$),!0===h?s=o:(d&&d.enter(),s=h(o),d&&(d.exit(),u=!0)),s===f.promise?p(U("Promise-chain cycle")):(c=nt(s))?c.call(s,l,p):l(s)):p(o)}catch(v){d&&!u&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&at(t,e)}))}},it=function(t,e,r){var n,o;Q?(n=H.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:r},(o=u["on"+t])?o(n):t===Y&&L("Unhandled promise rejection",r)},at=function(t,e){A.call(u,(function(){var r,n=e.value,o=st(e);if(o&&(r=D((function(){J?G.emit("unhandledRejection",n,t):it(Y,t,n)})),e.rejection=J||st(e)?tt:$,r.error))throw r.value}))},st=function(t){return t.rejection!==$&&!t.parent},ct=function(t,e){A.call(u,(function(){J?G.emit("rejectionHandled",t):it(q,t,e.value)}))},ut=function(t,e,r,n){return function(o){t(e,r,o,n)}},ft=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=Z,ot(t,e,!0))},ht=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw U("Promise can't be resolved itself");var o=nt(r);o?P((function(){var n={done:!1};try{o.call(r,ut(ht,t,n,e),ut(ft,t,n,e))}catch(i){ft(t,n,i,e)}})):(e.value=r,e.state=W,ot(t,e,!1))}catch(i){ft(t,{done:!1},i,e)}}};et&&(F=function(t){y(this,F,I),m(t),n.call(this);var e=S(this);try{t(ut(ht,this,e),ut(ft,this,e))}catch(r){ft(this,e,r)}},n=function(t){R(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:V,value:void 0})},n.prototype=p(F.prototype,{then:function(t,e){var r=j(this),n=z(E(this,F));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=J?G.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=V&&ot(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=S(t);this.promise=t,this.resolve=ut(ht,t,e),this.reject=ut(ft,t,e)},k.f=z=function(t){return t===F||t===i?new o(t):X(t)},c||"function"!=typeof h||(a=h.prototype.then,l(h.prototype,"then",(function(t,e){var r=this;return new F((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof K&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return C(F,K.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:F}),d(F,I,!1,!0),v(I),i=f(I),s({target:I,stat:!0,forced:et},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:c||et},{resolve:function(t){return C(c&&this===i?F:this,t)}}),s({target:I,stat:!0,forced:rt},{all:function(t){var e=this,r=z(e),n=r.resolve,o=r.reject,i=D((function(){var r=m(e.resolve),i=[],a=0,s=1;_(t,(function(t){var c=a++,u=!1;i.push(void 0),s++,r.call(e,t).then((function(t){u||(u=!0,i[c]=t,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=z(e),n=r.reject,o=D((function(){var o=m(e.resolve);_(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},"6b47":function(t,e,r){t.exports=r("d3f1")},"716a":function(t,e,r){r("6f89"),r("3e47"),r("5145"),r("6813"),r("84d2"),r("362a");var n=r("764b");t.exports=n.Promise},"78b2":function(t,e,r){t.exports=r("b5b3")},"7c78":function(t,e,r){t.exports=r("b83c")},"7de79":function(t,e,r){var n=r("0363"),o=n("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(c){}return r}},"7ef9":function(t,e,r){var n=r("6f8d"),o=r("dfdb"),i=r("ad27");t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t),a=r.resolve;return a(e),r.promise}},"801c":function(t,e,r){r("8b7b");var n=r("764b");t.exports=n.Object.getOwnPropertySymbols},"84d2":function(t,e,r){"use strict";var n=r("a5eb"),o=r("cc94"),i=r("ad27"),a=r("9b8d"),s=r("5b57");n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=i.f(e),n=r.resolve,c=r.reject,u=a((function(){var r=o(e.resolve),i=[],a=0,c=1;s(t,(function(t){var o=a++,s=!1;i.push(void 0),c++,r.call(e,t).then((function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--c||n(i))}),(function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--c||n(i))}))})),--c||n(i)}));return u.error&&c(u.value),r.promise}})},"857a":function(t,e,r){var n=r("1d80"),o=/"/g;t.exports=function(t,e,r,i){var a=String(n(t)),s="<"+e;return""!==r&&(s+=" "+r+'="'+String(i).replace(o,""")+'"'),s+">"+a+"</"+e+">"}},"85d3":function(t,e,r){t.exports=r("9a13")},"8cfd":function(t,e,r){var n=r("3327"),o=Function.prototype;t.exports=function(t){var e=t.bind;return t===o||t instanceof Function&&e===o.bind?n:e}},"904d":function(t,e,r){var n=r("b82f");t.exports=n},"92cd":function(t,e,r){r("1d3a");var n=r("a169");t.exports=n("Array").slice},"930e":function(t,e,r){r("9515");var n=r("764b"),o=n.Object,i=t.exports=function(t,e){return o.defineProperties(t,e)};o.defineProperties.sham&&(i.sham=!0)},"944a":function(t,e,r){var n=r("746f");n("toStringTag")},9515:function(t,e,r){var n=r("a5eb"),o=r("c1b2"),i=r("c230");n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:i})},9911:function(t,e,r){"use strict";var n=r("23e7"),o=r("857a"),i=r("af03");n({target:"String",proto:!0,forced:i("link")},{link:function(t){return o(this,"a","href",t)}})},"99a4":function(t,e,r){"use strict";var n=r("dee0").forEach,o=r("9f61"),i=r("302b"),a=o("forEach"),s=i("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"9a13":function(t,e,r){var n=r("a38c");t.exports=n},"9b8d":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"9bb8":function(t,e,r){var n=r("a5eb"),o=r("06fa"),i=r("a421"),a=r("44ba").f,s=r("c1b2"),c=o((function(){a(1)})),u=!s||c;n({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"9f61":function(t,e,r){"use strict";var n=r("06fa");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},a0e6:function(t,e,r){var n,o,i,a,s,c,u,f,h=r("3ac6"),l=r("44ba").f,p=r("fc48"),d=r("5afb").set,v=r("0f59"),g=h.MutationObserver||h.WebKitMutationObserver,m=h.process,y=h.Promise,b="process"==p(m),w=l(h,"queueMicrotask"),_=w&&w.value;_||(n=function(){var t,e;b&&(t=m.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(r){throw o?a():i=void 0,r}}i=void 0,t&&t.enter()},b?a=function(){m.nextTick(n)}:g&&!v?(s=!0,c=document.createTextNode(""),new g(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),f=u.then,a=function(){f.call(u,n)}):a=function(){d.call(h,n)}),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},a38c:function(t,e,r){r("3e476");var n=r("764b"),o=n.Object,i=t.exports=function(t,e,r){return o.defineProperty(t,e,r)};o.defineProperty.sham&&(i.sham=!0)},a8b3:function(t,e,r){"use strict";var n=r("a5eb"),o=r("99a4");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},a915:function(t,e,r){var n=r("801c");t.exports=n},aa3c:function(t,e,r){t.exports=r("dae3")},ad27:function(t,e,r){"use strict";var n=r("cc94"),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},af03:function(t,e,r){var n=r("d039");t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},b0ea:function(t,e,r){var n=r("6f8d"),o=r("cc94"),i=r("0363"),a=i("species");t.exports=function(t,e){var r,i=n(t).constructor;return void 0===i||void 0==(r=n(i)[a])?e:o(r)}},b5b3:function(t,e,r){var n=r("8cfd");t.exports=n},b636:function(t,e,r){var n=r("746f");n("asyncIterator")},b680:function(t,e,r){"use strict";var n=r("23e7"),o=r("a691"),i=r("408a"),a=r("1148"),s=r("d039"),c=1..toFixed,u=Math.floor,f=function(t,e,r){return 0===e?r:e%2===1?f(t,e-1,r*t):f(t*t,e/2,r)},h=function(t){var e=0,r=t;while(r>=4096)e+=12,r/=4096;while(r>=2)e+=1,r/=2;return e},l=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}));n({target:"Number",proto:!0,forced:l},{toFixed:function(t){var e,r,n,s,c=i(this),l=o(t),p=[0,0,0,0,0,0],d="",v="0",g=function(t,e){var r=-1,n=e;while(++r<6)n+=t*p[r],p[r]=n%1e7,n=u(n/1e7)},m=function(t){var e=6,r=0;while(--e>=0)r+=p[e],p[e]=u(r/t),r=r%t*1e7},y=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==p[t]){var r=String(p[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(e=h(c*f(2,69,1))-69,r=e<0?c*f(2,-e,1):c/f(2,e,1),r*=4503599627370496,e=52-e,e>0){g(0,r),n=l;while(n>=7)g(1e7,0),n-=7;g(f(10,n,1),0),n=e-1;while(n>=23)m(1<<23),n-=23;m(1<<n),g(1,1),m(2),v=y()}else g(0,r),g(1<<-e,0),v=y()+a.call("0",l);return l>0?(s=v.length,v=d+(s<=l?"0."+a.call("0",l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l))):v=d+v,v}})},b82f:function(t,e,r){r("55d0");var n=r("764b");t.exports=n.Object.assign},b83c:function(t,e,r){var n=r("b887");t.exports=n},b887:function(t,e,r){r("9bb8");var n=r("764b"),o=n.Object,i=t.exports=function(t,e){return o.getOwnPropertyDescriptor(t,e)};o.getOwnPropertyDescriptor.sham&&(i.sham=!0)},bc0d:function(t,e,r){var n=r("56c4");t.exports=n},c2f0:function(t,e,r){var n=r("3ac6");t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},d044:function(t,e,r){var n;(function(e,r){t.exports=r()})(0,(function(){function t(t){this.mode=r.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e<n;e++){var o=[],i=this.data.charCodeAt(e);i>65536?(o[0]=240|(1835008&i)>>>18,o[1]=128|(258048&i)>>>12,o[2]=128|(4032&i)>>>6,o[3]=128|63&i):i>2048?(o[0]=224|(61440&i)>>>12,o[1]=128|(4032&i)>>>6,o[2]=128|63&i):i>128?(o[0]=192|(1984&i)>>>6,o[1]=128|63&i):o[0]=i,this.parsedData.push(o)}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 e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}},e.prototype={addData:function(e){var r=new t(e);this.dataList.push(r),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]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,r){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 o=0;o<this.moduleCount;o++)this.modules[n][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,r),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,s=0;s<this.modules[i].length;s++){var c=s*o,u=this.modules[i][s];u&&(n.beginFill(0,100),n.moveTo(c,a),n.lineTo(c+o,a),n.lineTo(c+o,a+o),n.lineTo(c,a+o),n.endFill())}return n},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=a.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],o=t[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[n+i][o+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},setupTypeNumber:function(t){for(var e=a.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2){6==s&&s--;while(1){for(var c=0;c<2;c++)if(null==this.modules[n][s-c]){var u=!1;i<t.length&&(u=1==(t[i]>>>o&1));var f=a.getMask(e,n,s-c);f&&(u=!u),this.modules[n][s-c]=u,o--,-1==o&&(i++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,r,n){for(var o=f.getRSBlocks(t,r),i=new h,s=0;s<n.length;s++){var c=n[s];i.put(c.mode,4),i.put(c.getLength(),a.getLengthInBits(c.mode,t)),c.write(i)}var u=0;for(s=0;s<o.length;s++)u+=o[s].dataCount;if(i.getLengthInBits()>8*u)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*u+")");i.getLengthInBits()+4<=8*u&&i.put(0,4);while(i.getLengthInBits()%8!=0)i.putBit(!1);while(1){if(i.getLengthInBits()>=8*u)break;if(i.put(e.PAD0,8),i.getLengthInBits()>=8*u)break;i.put(e.PAD1,8)}return e.createBytes(i,o)},e.createBytes=function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),s=new Array(e.length),c=0;c<e.length;c++){var f=e[c].dataCount,h=e[c].totalCount-f;n=Math.max(n,f),o=Math.max(o,h),i[c]=new Array(f);for(var l=0;l<i[c].length;l++)i[c][l]=255&t.buffer[l+r];r+=f;var p=a.getErrorCorrectPolynomial(h),d=new u(i[c],p.getLength()-1),v=d.mod(p);s[c]=new Array(p.getLength()-1);for(l=0;l<s[c].length;l++){var g=l+v.getLength()-s[c].length;s[c][l]=g>=0?v.get(g):0}}var m=0;for(l=0;l<e.length;l++)m+=e[l].totalCount;var y=new Array(m),b=0;for(l=0;l<n;l++)for(c=0;c<e.length;c++)l<i[c].length&&(y[b++]=i[c][l]);for(l=0;l<o;l++)for(c=0;c<e.length;c++)l<s[c].length&&(y[b++]=s[c][l]);return y};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},i={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a={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){var e=t<<10;while(a.getBCHDigit(e)-a.getBCHDigit(a.G15)>=0)e^=a.G15<<a.getBCHDigit(e)-a.getBCHDigit(a.G15);return(t<<10|e)^a.G15_MASK},getBCHTypeNumber:function(t){var e=t<<12;while(a.getBCHDigit(e)-a.getBCHDigit(a.G18)>=0)e^=a.G18<<a.getBCHDigit(e)-a.getBCHDigit(a.G18);return t<<12|e},getBCHDigit:function(t){var e=0;while(0!=t)e++,t>>>=1;return e},getPatternPosition:function(t){return a.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case i.PATTERN000:return(e+r)%2==0;case i.PATTERN001:return e%2==0;case i.PATTERN010:return r%3==0;case i.PATTERN011:return(e+r)%3==0;case i.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case i.PATTERN101:return e*r%2+e*r%3==0;case i.PATTERN110:return(e*r%2+e*r%3)%2==0;case i.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new u([1],0),r=0;r<t;r++)e=e.multiply(new u([1,s.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||e<=n+s))for(var c=-1;c<=1;c++)o+c<0||e<=o+c||0==s&&0==c||a==t.isDark(n+s,o+c)&&i++;i>5&&(r+=3+i-5)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var u=0;t.isDark(n,o)&&u++,t.isDark(n+1,o)&&u++,t.isDark(n,o+1)&&u++,t.isDark(n+1,o+1)&&u++,0!=u&&4!=u||(r+=3)}for(n=0;n<e;n++)for(o=0;o<e-6;o++)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(o=0;o<e;o++)for(n=0;n<e-6;n++)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);var f=0;for(o=0;o<e;o++)for(n=0;n<e;n++)t.isDark(n,o)&&f++;var h=Math.abs(100*f/e/e-50)/5;return r+=10*h,r}},s={glog:function(t){if(t<1)throw new Error("glog("+t+")");return s.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return s.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)s.EXP_TABLE[c]=1<<c;for(c=8;c<256;c++)s.EXP_TABLE[c]=s.EXP_TABLE[c-4]^s.EXP_TABLE[c-5]^s.EXP_TABLE[c-6]^s.EXP_TABLE[c-8];for(c=0;c<255;c++)s.LOG_TABLE[s.EXP_TABLE[c]]=c;function u(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);var r=0;while(r<t.length&&0==t[r])r++;this.num=new Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}function f(t,e){this.totalCount=t,this.dataCount=e}function h(){this.buffer=[],this.length=0}u.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),r=0;r<this.getLength();r++)for(var n=0;n<t.getLength();n++)e[r+n]^=s.gexp(s.glog(this.get(r))+s.glog(t.get(n)));return new u(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=s.glog(this.get(0))-s.glog(t.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<t.getLength();n++)r[n]^=s.gexp(s.glog(t.get(n))+e);return new u(r,0).mod(t)}},f.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],[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]],f.getRSBlocks=function(t,e){var r=f.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,o=[],i=0;i<n;i++)for(var a=r[3*i+0],s=r[3*i+1],c=r[3*i+2],u=0;u<a;u++)o.push(new f(s,c));return o},f.getRsBlockTable=function(t,e){switch(e){case o.L:return f.RS_BLOCK_TABLE[4*(t-1)+0];case o.M:return f.RS_BLOCK_TABLE[4*(t-1)+1];case o.Q:return f.RS_BLOCK_TABLE[4*(t-1)+2];case o.H:return f.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},h.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 r=0;r<e;r++)this.putBit(1==(t>>>e-r-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 l=[[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]];function p(){return"undefined"!=typeof CanvasRenderingContext2D}function d(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var r=e.toString().match(/android ([0-9]\.[0-9])/i);r&&r[1]&&(t=parseFloat(r[1]))}return t}var v=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,r=this._el,n=t.getModuleCount();Math.floor(e.width/n),Math.floor(e.height/n);function o(t,e){var r=document.createElementNS("http://www.w3.org/2000/svg",t);for(var n in e)e.hasOwnProperty(n)&&r.setAttribute(n,e[n]);return r}this.clear();var i=o("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:e.colorLight});i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.appendChild(i),i.appendChild(o("rect",{fill:e.colorLight,width:"100%",height:"100%"})),i.appendChild(o("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<n;a++)for(var s=0;s<n;s++)if(t.isDark(a,s)){var c=o("use",{x:String(s),y:String(a)});c.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),i.appendChild(c)}},t.prototype.clear=function(){while(this._el.hasChildNodes())this._el.removeChild(this._el.lastChild)},t}(),g="svg"===document.documentElement.tagName.toLowerCase(),m=g?v:p()?function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var e=1/window.devicePixelRatio,r=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,n,o,i,a,s,c,u,f){if("nodeName"in t&&/img/i.test(t.nodeName))for(var h=arguments.length-1;h>=1;h--)arguments[h]=arguments[h]*e;else"undefined"==typeof u&&(arguments[1]*=e,arguments[2]*=e,arguments[3]*=e,arguments[4]*=e);r.apply(this,arguments)}}function n(t,e){var r=this;if(r._fFail=e,r._fSuccess=t,null===r._bSupportDataURI){var n=document.createElement("img"),o=function(){r._bSupportDataURI=!1,r._fFail&&r._fFail.call(r)},i=function(){r._bSupportDataURI=!0,r._fSuccess&&r._fSuccess.call(r)};return n.onabort=o,n.onerror=o,n.onload=i,void(n.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===r._bSupportDataURI&&r._fSuccess?r._fSuccess.call(r):!1===r._bSupportDataURI&&r._fFail&&r._fFail.call(r)}var o=function(t,e){this._bIsPainted=!1,this._android=d(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return o.prototype.draw=function(t){var e=this._elImage,r=this._oContext,n=this._htOption,o=t.getModuleCount(),i=n.width/o,a=n.height/o,s=Math.round(i),c=Math.round(a);e.style.display="none",this.clear();for(var u=0;u<o;u++)for(var f=0;f<o;f++){var h=t.isDark(u,f),l=f*i,p=u*a;r.strokeStyle=h?n.colorDark:n.colorLight,r.lineWidth=1,r.fillStyle=h?n.colorDark:n.colorLight,r.fillRect(l,p,i,a),r.strokeRect(Math.floor(l)+.5,Math.floor(p)+.5,s,c),r.strokeRect(Math.ceil(l)-.5,Math.ceil(p)-.5,s,c)}this._bIsPainted=!0},o.prototype.makeImage=function(){this._bIsPainted&&n.call(this,t)},o.prototype.isPainted=function(){return this._bIsPainted},o.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},o.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},o}():function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){for(var e=this._htOption,r=this._el,n=t.getModuleCount(),o=Math.floor(e.width/n),i=Math.floor(e.height/n),a=['<table style="border:0;border-collapse:collapse;">'],s=0;s<n;s++){a.push("<tr>");for(var c=0;c<n;c++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+o+"px;height:"+i+"px;background-color:"+(t.isDark(s,c)?e.colorDark:e.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),r.innerHTML=a.join("");var u=r.childNodes[0],f=(e.width-u.offsetWidth)/2,h=(e.height-u.offsetHeight)/2;f>0&&h>0&&(u.style.margin=h+"px "+f+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();function y(t,e){for(var r=1,n=b(t),i=0,a=l.length;i<=a;i++){var s=0;switch(e){case o.L:s=l[i][0];break;case o.M:s=l[i][1];break;case o.Q:s=l[i][2];break;case o.H:s=l[i][3];break}if(n<=s)break;r++}if(r>l.length)throw new Error("Too long data");return r}function b(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}return n=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:o.H},"string"===typeof e&&(e={text:e}),e)for(var r in e)this._htOption[r]=e[r];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(m=v),this._android=d(),this._el=t,this._oQRCode=null,this._oDrawing=new m(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},n.prototype.makeCode=function(t){this._oQRCode=new e(y(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},n.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},n.prototype.clear=function(){this._oDrawing.clear()},n.CorrectLevel=o,n}))},d3f1:function(t,e,r){(function(t){function e(t){return e="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},e(t)}r("a4d3"),r("e01a"),r("b636"),r("d28b"),r("944a"),r("4160"),r("e260"),r("fb6a"),r("b0c0"),r("0c47"),r("23dc"),r("3410"),r("131a"),r("d3b7"),r("e6cf"),r("25f0"),r("3ca3"),r("159b"),r("ddb0");var n=function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new D(n||[]);return i._invoke=P(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var h="suspendedStart",l="suspendedYield",p="executing",d="completed",v={};function g(){}function m(){}function y(){}var b={};b[a]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(T([])));_&&_!==n&&o.call(_,a)&&(b=_);var x=y.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function A(t){function r(n,i,a,s){var c=f(t[n],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"===e(h)&&o.call(h,"__await")?Promise.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):Promise.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var n;function i(t,e){function o(){return new Promise((function(n,o){r(t,e,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=i}function P(t,e,r){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:l,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}function C(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=r,C(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){while(++n<t.length)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:r,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,y[c]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(A.prototype),A.prototype[s]=function(){return this},t.AsyncIterator=A,t.async=function(e,r,n,o){var i=new A(u(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),x[c]="Generator",x[a]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}}).call(this,r("62e4")(t))},dae3:function(t,e,r){var n=r("47da");t.exports=n},e332:function(t,e,r){var n=r("92cd"),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?n:e}},e4f0:function(t,e,r){t.exports=r("606e")},e76e:function(t,e,r){t.exports=r("904d")},e9d9:function(t,e,r){"use strict";var n=r("cc94"),o=r("dfdb"),i=[].slice,a={},s=function(t,e,r){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=i.call(arguments,1),a=function(){var n=r.concat(i.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return o(e.prototype)&&(a.prototype=e.prototype),a}},f354:function(t,e,r){var n=r("3ac6");t.exports=n.Promise},f44f:function(t,e,r){"use strict";var n=r("c1b2"),o=r("06fa"),i=r("a016"),a=r("a205"),s=r("7043"),c=r("4fff"),u=r("638c"),f=Object.assign,h=Object.defineProperty;t.exports=!f||o((function(){if(n&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||i(f({},e)).join("")!=o}))?function(t,e){var r=c(t),o=arguments.length,f=1,h=a.f,l=s.f;while(o>f){var p,d=u(arguments[f++]),v=h?i(d).concat(h(d)):i(d),g=v.length,m=0;while(g>m)p=v[m++],n&&!l.call(d,p)||(r[p]=d[p])}return r}:f},f7ba:function(t,e,r){"use strict";var n=r("6b47"),o=r.n(n),i=r("78b2"),a=r.n(i),s=r("52da"),c=r.n(s),u=r("e76e"),f=r.n(u);function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var l=r("85d3"),p=r.n(l);function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),p()(t,n.key,n)}}function v(t,e,r){return e&&d(t.prototype,e),r&&d(t,r),t}function g(t,e,r){return e in t?p()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m=r("2d80"),y=r.n(m),b=r("1e75"),w=r.n(b),_=r("aa3c"),x=r.n(_),E=r("4573"),A=r.n(E),P=r("7c78"),C=r.n(P),L=r("e4f0"),k=r.n(L),D=r("3960"),T=r.n(D),O=r("fa81"),B=r.n(O),M=r("3818"),N=r.n(M),I=r("bc3a"),S=r.n(I);r.d(e,"a",(function(){return X}));var R,j={initUrl:"",appendUrl:"",finishUrl:"",timeOut:2e4,successCode:"00000000",chunkSize:50*Math.pow(1024,2),minSize:10*Math.pow(1024,2)};!function(t){t[t.init=0]="init",t[t.inited=1]="inited",t[t.pending=2]="pending",t[t.success=3]="success",t[t.failed=4]="failed",t[t.pause=5]="pause",t[t.stop=6]="stop"}(R||(R={}));var F=S.a.create({timeout:j.timeOut});function U(t,e){var r=B()(t);if(T.a){var n=T()(t);e&&(n=k()(n).call(n,(function(e){return C()(t,e).enumerable}))),r.push.apply(r,n)}return r}function H(t){return{headers:{"Content-type":arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"application/x-www-form-urlencoded":"application/json;charset=UTF-8",Authorization:"Basic ".concat(t)},onUploadProgress:function(t){}}}function G(t,e,r){var n;return o.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,o.a.awrap(F.post(t,{fileName:e},H(r)));case 2:return n=i.sent,i.abrupt("return",n);case 4:case"end":return i.stop()}}))}function K(t,e,r,n,o){var i=new FormData;return i.append("filePath",e.filePath),i.append("uploadId",e.uploadId),i.append("file",e.file),i.append("partNumber",String(e.partNumber)),F.post(t,i,function(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)A()(r=U(n,!0)).call(r,(function(e){g(t,e,n[e])}));else if(x.a)w()(t,x()(n));else{var o;A()(o=U(n)).call(o,(function(e){y()(t,e,C()(n,e))}))}}return t}({},o,{headers:{"Content-type":"application/x-www-form-urlencoded",Authorization:"Basic ".concat(r)},onUploadProgress:function(t){n(t.loaded/t.total)}}))}function z(t,e,r){var n;return o.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,o.a.awrap(F.post(t,e,H(r)));case 2:return n=i.sent,i.abrupt("return",n);case 4:case"end":return i.stop()}}))}F.interceptors.request.use((function(t){return t}),(function(t){N.a.reject(t)})),F.interceptors.response.use((function(t){var e=t.data;return e.code===j.successCode?N.a.resolve(e):N.a.reject(e.message||"未知异常")}),(function(t){return N.a.reject(t)}));var X=function(){function t(e){h(this,t),g(this,"status",void 0),g(this,"current",void 0),g(this,"total",void 0),g(this,"config",void 0),g(this,"initRes",void 0),this.status=R.init,this.config=f()({success:function(t){},faied:function(t){},progress:function(t){}},e),this.current=0;var r=this.config,n=r.file,o=r.minSize,i=void 0===o?j.minSize:o,a=r.chunkSize,s=void 0===a?j.chunkSize:a,c=n.size;this.total=c>i?Math.ceil(c/s):1,this.initRes={}}return v(t,[{key:"cb",value:function(t){this.config.progress((this.current+t)*(1/this.total))}},{key:"run",value:function(){var t,e,r,n,i,s,u,f,h,l,p,d,v,g,m,y,b,w,_,x;return o.a.async((function(E){for(;;)switch(E.prev=E.next){case 0:if(t=this.config,e=t.file,r=t.token,n=t.chunkSize,i=void 0===n?j.chunkSize:n,s=t.baseUrl,u=t.initUrl,f=t.finishUrl,h=t.appendUrl,l=e.name,p=e.size,this.status!==R.init){E.next=15;break}return E.prev=3,E.next=6,o.a.awrap(G(s+u,l,r));case 6:d=E.sent,this.initRes=d.data,this.status=R.inited,E.next=15;break;case 11:E.prev=11,E.t0=E.catch(3),this.status=R.failed,this.config.failed(E.t0.message);case 15:v=this.initRes,g=v.filePath,m=v.uploadId,this.status=R.pending,y=0;case 18:if(!(y<this.total)){E.next=35;break}if(this.status!==R.pending||y!==this.current){E.next=32;break}return b=y*i,w=c()(e).call(e,b,b+i),E.prev=22,E.next=25,o.a.awrap(K(s+h,{filePath:g,uploadId:m,file:w,partNumber:y+1},r,a()(_=this.cb).call(_,this),{timeout:this.config.timeout||j.timeOut}));case 25:this.current+=1,E.next=32;break;case 28:E.prev=28,E.t1=E.catch(22),this.status=R.failed,this.config.failed(E.t1.message);case 32:y++,E.next=18;break;case 35:return E.prev=35,E.next=38,o.a.awrap(z(s+f,{filePath:g,uploadId:m,fileSize:p},r));case 38:return x=E.sent,this.status=R.success,this.config.success({filePath:g,uploadId:m}),E.abrupt("return",x);case 44:E.prev=44,E.t2=E.catch(35),this.status=R.failed,this.config.failed(E.t2.message);case 48:case"end":return E.stop()}}),null,this,[[3,11],[22,28],[35,44]])}},{key:"pause",value:function(){this.status=R.pause}},{key:"continue",value:function(){this.status!==R.init&&this.status!==R.inited&&this.status!==R.pending||this.run()}},{key:"stop",value:function(){this.status=R.stop}}]),t}()}}]); |