If you want to know what to do with your money, to be rich and financially secure, this is the most ccomprehensive book out there to walk you step by step to success. It's not about getting rich quick. It's about creating many baskets and collecting many eggs. As your income increases and debt is paid, you will realize how much fun it is to watch your money grow. It's even more fun than spending money. You have to start somewhere, might as well start with this book.


For those of you who don’t want to come up with a $220,000 downpayment and a $900,000 mortgage to buy the median home in SF or NYC, who don’t want to deal with tenants or remodeling, and who wants to not do any work after the investment is made, check out RealtyShares. They are my favorite real estate crowdsourcing company based in San Francisco. I’ve met senior management multiple times as well as their chief risk officer and various members of their investment committee.
Nah you misunderstood me. I’m working 50 hours a week now to get residency and only taking a couple of classes. I’ll be working 10-20 hours a week when I go back to schoool full time a year from now. I tried working 35 hours and school full time but got burned out last year so no more of that. My grades are so-so. I got a 3.7gpa in all my GE’s and really on a conservative basis planning to remain around there which would mean 1 B for every 2 A’s. To get residency realistically I got to earn 300 dollars in taxable income a week for a year, and in the meantime am allowed to go to school part time given the fact that I can pay for school with the money I have earned within the period I began to establish residency, so no outside cash because my bank accounts will be audited at the end of the year.
The craziest part of this was I’d wake up in the morning and there would be more money in my bank account, from people who had bought my book overnight. When you think about it, an online store that sells something that’s digital is something that’s open 24 hours a day, 7 days a week, 365 days a year. Using tools, software and systems, you can automate the delivery process so you literally don’t have to do anything to serve that audience. That’s super powerful.

We have decided to invest in 2 ETFs, a multi asset allocation ETF (Fixed Inc, alts and div paying equities) and a preferred stock ETF. This will cover almost 45 percent of our deficit. We will be extremely diversified, can access the markets at a very low cost and the investments are liquid. On this pool of $, we have no plans to invade principal unless the investment grows by 20 percent, which we think is unlikely given the characteristics of the investments.

I’ve been researching a path to financial independence, and the wealth of knowledge here is amazing, but at times overwhelming. I’m honestly not quite sure where to start. Whether it be paying off debt (which I’ve always heard is priority 1), or sinking money into realtyshares or CDs for growth. I’d love to generate a passive income (in a few years time) to supplement some of my day job to have time to spend with my little one during her golden childhood years, but not sure if there’s even a right order to go about it.


However, under certain circumstances, payment for personal services performed in the United States is not considered income from sources within the United States. For example, personal services performed by an independent nonresident alien contractor specifically exempted by a tax treaty. For more examples, see the Pay for Personal Service section in Publication 515, Withholding of Tax on Nonresident Aliens and Foreign Entities.

I’ve built several businesses since 2008 using one or more of these models. I’ve been featured in magazines and articles across the globe, and since I started my journey I’ve generated over $5M in earnings from these businesses. All of my income and expenses for those businesses dating back to October 2008 have been tracked publicly on SPI.com. You can see 10 years of income reports here.
If live-streaming isn’t your thing you can still create informative or entertaining videos and upload them to YouTube. There are YouTube channels dedicated to the weirdest topics. Ryan, a 5-year-old kid who reviews toys on his channel is one of the newest and youngest YouTube stars. With advertising revenue alone, his channel is estimated to make over $1 million a month.
Investing is arguably the easiest way to make passive income.  The problem is most investments sound good in theory but don’t work out so well in practice.  And if you don’t have much experience or access to capital, let alone the time to work it all out, it can seem more or less impossible.  However, there is one smart way to invest that just might work.  Continue reading >
Passive income is earnings derived from a rental property, limited partnership or other enterprise in which a person is not actively involved. As with active income, passive income is usually taxable. However, it is often treated differently by the Internal Revenue Service (IRS). Portfolio income is considered passive income by some analysts, so dividends and interest would therefore be considered passive.
The second category of passive income is drawing on sources that do not require capital to start, maintain, and grow. These are far better choices for those who want to start out on their own and build a fortune from nothing. They include assets you can create, such as a book, song, patent, trademark, Internet site, recurring commissions, or businesses that earn nearly infinite returns on equity such as a drop-ship e-commerce retailer that has little or no money tied up in operations but still turns a profit.

I think it’s funny how 1500 is the amount of extra income you mention because that’s what I’m shooting for! If I can make that much more each month to supplement my regular income, I will have almost all of my school debt payed off in one year! I’m really motivated. I use Mechanical Turk with Amazon to perform menial task and get a few extra bucks. I also use Varolo which is a fairly new idea. I really think it has potential. If you don’t mind me promoting it, here it goes.
I cut back on medicolegal work to free up time and reduce stress. I spend most of my time on medical directorship work and clinical practice. Free time is spent on exercising, travel, time with family, and blogging. I spend virtually no time on the other income streams at this point. Getting the plate spinning can be tough but then the momentum keeps them turning.
Are you sitting at home and wondering how you can bring a little bit more money into your home? Well, you can keep a steady stream of reliable income flowing in with multiple streams of income.  It’s not hard to do, and just one idea can spark other income potential and generate multiple steams of income.  Diversifying your income is a great way to be able to set a little bit aside for a rainy day.
Remember, a successful business solves people’s problems. At first, you’re going to have to do the legwork and put in the time. But it’s about building something now so you can reap the benefits later, with the help of software, tools, automation, and people you hire. In this way, you can then turn this business that solves people’s problems into something that generates passive income for you!
I’ve built several businesses since 2008 using one or more of these models. I’ve been featured in magazines and articles across the globe, and since I started my journey I’ve generated over $5M in earnings from these businesses. All of my income and expenses for those businesses dating back to October 2008 have been tracked publicly on SPI.com. You can see 10 years of income reports here.
Nobody gets early FI investing in bonds, CD’s, or even stocks unless they make a huge income or are extremely frugal or a combination of both. Paper assets just don’t provide enough returns. Business income can be great but it is typically not as semi-passive as I would like and there is a relatively high failure rate. That is if you can monetize an ideal to begin with. RE investing needs to be higher ranked IMO as a way that the “average guy” can become FI.
State e-file available within the program. An additional fee applies for online. State e-file not available in NH. Additional state programs are extra. Most state programs are available in January. Release dates vary by state. Online AL, DC and TN do not support nonresident forms for state e-file. Software DE, HI, LA, ND and VT do not support part-year or nonresident forms.

Author Bio: Sam started Financial Samurai in 2009 to help people achieve financial freedom sooner, rather than later. He spent 13 years working in investment banking, earned his MBA from UC Berkeley, and retired at age 34 in San Francisco. Everything Sam writes is based on first-hand experience because money is too important to be left up to pontification.


He asked that newsreel cameras film the last portion of the address, concerning the Second Bill of Rights. This footage was believed lost until it was uncovered in 2008 in South Carolina by Michael Moore while researching the film Capitalism: A Love Story.[5] The footage shows Roosevelt's Second Bill of Rights address in its entirety as well as a shot of the eight rights printed on a sheet of paper.[6][7]
We had a very small interest income from our saving and reward checking accounts. The rate is low and I tend to invest rather than keep a lot of cash around. I also have some income from my P2P lending account at Prosper.com. The ROI of my Prosper account is much better than the rate at my bank, around 8%. Lastly, we have some interest income from our bond funds, but these are all in our retirement account so they are not taxed at this time.
eBay Store: It’s now easier than ever to run an online eBay store. You can, of course, acquire products to resell on eBay. But you can also create an online store to market products that others are selling on eBay and share in the commissions generated by the sales. Recently I interviewed a family friend who started her own eBay store and now makes five figures from home. Check out the interview here.
Editorial Disclosure: This content is not provided or commissioned by the bank, credit card issuer, or other advertiser. Opinions expressed here are author's alone, not those of the bank, credit card issuer, or other advertiser, and have not been reviewed, approved or otherwise endorsed by the advertiser. This site may be compensated through the bank, credit card issuer, or other advertiser Affiliate Program
Investing in bonds: Similarly, bonds are an attractive way to engage in passive income. Over a recent 45-year period, bonds funds, as measured by Vanguard Funds, returned 7.1%. Of course, there's no guarantee that investments in stocks or bonds will always work out well, investing in them is by far the surest way to generate money through passive income.
When I started building my architecture-related business in 2008, I made my first dollar through advertising. I’d spent a lot of time and money building the site and getting traffic. Then one day I threw an ad on the site one day, and I made $1.18. Sure, I could find that much under my couch cushions—but that’s not the point! The point is that I was able to build something online, put an ad up, and make money without having to do anything. I learned it was possible, and it motivated me to move forward.
This is the best post I’ve seen on passive income streams. I’m similar to you in that I worked in IBanking for a few years but wanted out. My approach is a little different, instead of starting with the CD’s, I’m trying to build up my net worth with riskier asset classes such as stocks and real estate to get the benefit of compounding. Then, as I approach my retirement year goal, I’ll start moving them into CD and bond ladders. In theory at least, it’s best to have the highest net worth just before retirement, then convert them to risk free passive income. You’re method is more patient and probably more practical than mine. I guess I’m willing to take more risks.

Thank for this extensive work. When you make extra money you need to think simple. First thing you should consider is whatever you do must be safe enough that you don’t lose your initial investment as well. Also, look at the ways you can reduce your costs. This could be car insurance savings or paying back expensive loans or card balances. Saving is making money as well.


Highly-paid professionals (like doctors) should definitely be looking into multiple streams of income. In fact, more than anyone, we are in the best position to accelerate our growth towards financial freedom. We’re able to earn the necessary capital and immediately throw that money into creating additional streams very quickly. We just have to be strategic about it. Keep your expenses in check, and be disciplined about moving your earned income from your day jobs and straight into the money-making machines. There is a balance to be had here. You just have to figure out exactly where it is for you.
There are many success stories you’ll run into of what it takes to generate multiple streams of income. However, one of the most important tips is to take on multiple clients. One client being your income source is bad news. They could voluntarily or involuntarily leave you high and dry. For instance, their business may begin to suffer and they no longer have the funds to pay you. Well, that is your income stream; gone without warning.

This is a buzzword I heard about through a few career coaches. Slowly more awareness is spreading that we can escape the rat race and find alternative ways of working, and indeed, the days of having to choose one particular career path are becoming outdated. The recession is forcing us to think of more imaginative ways to make a living and I am determined to use every skill and talent I have to start generating multiple income streams. Before I was racking my brain for YEARS because I just couldn’t choose one career path! I am only just beginning on a small scale and am not making any real money as yet, but this year I will dig out the toolboxes I’m not currently using and set up various things that will hopefully bring in the pounds. Thumbs up to multiple income streams.
A Risk Score of 10 means no risk. A Return Score of 1 means the returns are horrible compared to the risk-free rate. A Feasibility score of 10 means everybody can do it. A Liquidity Score of 1 means it’s very difficult to withdraw your money without a massive penalty. An Activity Score of 10 means you can kick back and do nothing to earn income. To make the ranking as realistic as possible, every score is relative to each other. Furthermore, the return criteria is based off trying to generate $10,000 a year in passive income.
Attention Artists and readers: As always, you should exercise personal responsibility when applying to contests, call for submissions and related events, especially when money is requested for participation. Since many opportunities/venues are listed which have no previous track record you should determine their legitimacy per your own satisfaction before committing time and work. If you become aware of any changes in a published event please let us know. The listings and news provided on this website do not constitute an endorsement. Thank you.
In Multiple Streams of Income, bestselling author Robert Allen presents ten revolutionary new methods for generating over $100,000 a year—on a part-time basis, working from your home, using little or none of your own money. For this book, Allen researched hundreds of income-producing opportunities and narrowed them down to ten surefire moneymakers anyone can profit from. This revised edition includes a new chapter on a cutting-edge investing technique.

You may think of a savings account as just that, savings. But it’s actually another form of income as the money in the account will draw interest. And while this interest may be small, it’s still better than $0. Eventually, you can invest this money whenever an opportunity presents itself in order to gain other income streams.  Look into Tax Free Savings Accounts if you are going this route.


Real-estate crowdfunding ($9,600 a year): Once I sold my SF rental, it was natural to reinvest some of the proceeds into real-estate crowdfunding to keep sector exposure. I didn't invest a lot in some of my favorite real-estate investment trusts because I felt a rising interest-rate environment would be a stronger headwind for REITs. But if I could be more surgical with my real-estate investments by identifying specific investments in stronger employment-growth markets, I thought I could do better.
Add Leverage (Mortgage) and you greatly increase the ROI especially from the perspective of using Rents (other peoples money) to pay down the mortgage and increase your equity in the property over time. At this point then yes price appreciation is secondary bonus and we have an arguement of how and why Real Estate can be better than Growth Stocks in some scenarios and for some investors.
This figure is based on purchasing power parity (PPP), which basically suggests that prices of goods in countries tend to equate under floating exchange rates and therefore people would be able to purchase the same quantity of goods in any country for a given sum of money. That is, the notion that a dollar should buy the same amount in all countries. Hence if a poor person in a poor country living on a dollar a day moved to the U.S. with no changes to their income, they would still be living on a dollar a day.

Investing in a local business can be a risky proposition but one with good returns if you're able to do it successfully. Becoming a silent partner is great because you don't need to do any work – it can be less great if the business doesn't do well. Sometimes you can become a silent partner in a business because they need cash and are unable to get financing from the bank – this was common during the last recession. A perfectly good business with cash flow issues is the ideal target for this type of investment.
^ Jump up to: a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs bt bu bv bw bx by bz ca cb cc cd ce cf cg ch ci cj ck cl cm cn co cp cq cr cs ct cu cv cw cx cy cz da db dc dd de df dg dh di dj dk dl dm dn do dp dq dr ds dt du dv dw dx dy dz ea eb ec ed ee ef eg eh ei ej ek el em en eo ep eq er es et eu ev ew ex ey ez fa fb fc fd fe ff fg fh fi fj fk fl fm fn fo fp fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge gf gg gh gi gj gk gl gm gn go gp gq gr gs gt gu gv gw gx gy gz ha hb hc hd he hf hg hh hi hj hk hl hm hn ho hp hq hr hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il Data unavailable.

One of the benefits of the time we live in is all the software and technology we have available. If you want to scale a business that’s bigger than yourself, you’re going to need systems in place to get you there. These systems should involve automating as much as you can. The less involvement of you in the day-to-day means you have time to focus on the big picture strategies that help your business grow. 
No one should turn down wind farming’s ultimate passive income for the next 30 or more years … even 60 years when there is a positive cash flow on the sum total of all base payments when computing inflation for the next 60 years based on the previous 60 years, as long as the next era’s energy resource is not perfected (at which time they would not renew the option for the second 30 years).
Investing in rental properties: Another form of real estate investment, rental investments (i.e. becoming a landlord) could steer you down the passive income path of steady monthly rent checks that you can use to pay off a mortgage loan on the rental property. After the mortgage is paid off, those monthly checks go right into your bank account -- potentially for years to come. 
If approved, you could be eligible for a credit limit between $350 and $1,000. H&R Block Emerald Advance® line of credit and H&R Block Emerald Savings® offered through Axos Bank™, Member FDIC. H&R Block Emerald Prepaid Mastercard® issued by Axos Bank pursuant to a license by Mastercard International Incorporated. All products subject to ID verification. Line of credit subject to credit and underwriting approval. Fees apply. Products offered at participating offices. Promotional period 11/16/2017 – 12/29/2017. Emerald Financial Services, LLC is a registered agent of Axos Bank. Mastercard is a registered trademark, and the circles design is a trademark of Mastercard International Incorporated. Emerald Advance is a tax refund-related credit product and Emerald Card is a tax refund-related deposit product. ©2017 HRB Tax Group, Inc.
Hi, it’s probably been brought up before, but the statement “you can’t touch pre-tax retirement accounts without a penalty until 59.5” is incorrect. You can touch the traditional 401k accounts with a SEPP (substantially equal payment plan), and not pay the 10 percent penalty. You can also touch a Roth without the 10 penalty using the same strategy, although I understand you will pay taxes so you lose the Roth’s advantage. When I found this out, I stopped contributing to Roths because I wanted to retire early. Who knows if they will even live to age 59.5? So many people don’t!
Increase in income Income per capita has been increasing steadily in almost every country.[5] Many factors contribute to people having a higher income such as education,[6] globalisation and favorable political circumstances such as economic freedom and peace. Increase in income also tends to lead to people choosing to work less hours. Developed countries (defined as countries with a "developed economy") have higher incomes as opposed to developing countries tending to have lower incomes.

Even if each patron only contributes a very small amount each month, it can still be a huge source of income. Take a look at the Patreon page for Kinda Funny, an internet video company. They have over 6,209 patrons which means an average of just $3 a month would be a monthly income of almost $19,000 – plus they get cheerleaders that are always happy to spread the word on their brand.


1) If your property is not under rent control, you have the ability to raise rent to market prices with proper warning. In SF, I have to give tenants a one month warning for up to a 10% increase and a two month warning for up to 60%. Rent control limits to an inflation index, usually around 2% a year, which is why initial pricing and tenant turnover is important for better profitability.

For those of you who don’t want to come up with a $220,000 downpayment and a $900,000 mortgage to buy the median home in SF or NYC, who don’t want to deal with tenants or remodeling, and who wants to not do any work after the investment is made, check out RealtyShares. They are my favorite real estate crowdsourcing company based in San Francisco. I’ve met senior management multiple times as well as their chief risk officer and various members of their investment committee.


If you have an empty house or room you can rent it out on AIRBNB and OYO Rooms. Many travelers are looking to spend one night at a place. You can always rent out your empty house or room to them. All you need to do is list your room or house online, explain the rules and you are good to go. Travelers will pay you online. This way you don’t have to search for clients. They will come to you.
Right now, I’ve got my day job, some index funds, a small income from my blog (about a penny a day so far – ha!), and some knitting patterns I designed and have for sale at various sites around the internet (not surprisingly, that doesn’t bring in much either). Eventually I’d like to write an ebook, although I have no idea what the topic would be yet. I’ll keep plugging away and hopefully it’ll become clearer in the future!

Thanks for writing this Mr. Samurai. I just got over the student loan hump but I feel pretty good about it at 27 having a graduate degree and being 100% debt free. Now that I’m on the other side it is good for my brain to absorb some of your knowledge regarding passive income investments. I love gleaning wisdom from older folks who have been there and done that. Mentors rock!


Sam…just read this article and I want to say that this is the best posting on passive income I have ever read…in a blog, article, or book. Thanks for making a difference and being an inspiration as to how it can all be accomplished. One of the great benefits of the internet is that people are willing to share their stories and experiences with each other online. If we had this when I was working professionally (20-40 years ago), it would have saved me from making some rather poor financial decisions that affected my retirement income. In a way, the internet is making up for the loss of financial security in the loss of The Defined Benefit Plan for retirement. Bravo!
Refinancing your mortgage is a passive income generator? Yup, it sure can be. If you're making monthly mortgage payments of $1,600 now, and you can reduce that to $1,300 per month by refinancing your home loan at a lower interest rate, you'll keep $300 in your pocket each month. Of course, refinancing isn't free -- there are closing costs. Still, if you plan to stay in your home long enough to more than break even, refinancing is well worth it. As an example, if your closing costs are $6,000 and you're saving $300 per month, you'll break even in 20 months -- less than two years!
Which all goes back to my point – since companies change in a lot of unpredictable ways, it makes more sense for passive income to just ride the market by investing in a Total Domestic Stock Market, Total Bond Market, and Total International index funds, with allocations that depend on your goals and time horizon. For income, withdraw 4% or less, depending on what research you believe, and you’ve got a pretty low risk strategy.
​Self Publishing is mainstream today. When you purchase an eBook off of Amazon there’s a pretty good chance you’re buying a self-published book. Self-publishing is also ridiculously easy. I tried this a few years ago and couldn’t believe how simple the process was. To self-publish a book you’ll first need to write and edit it, create a cover, and then upload to a program such as Amazon’s Kindle Direct Publishing. Don’t expect instant success though. There will need to be a lot of upfront marketing before you can turn this into a passive income stream.
Once you start to see some success, don’t be led astray by the money. While Flynn does use affiliate marketing to make money, he only ever recommends products that he has personally used and likes. He is inundated by offers to earn $50 per sale through commission on products he has never even tried. “I’m like, ‘I don’t even know you, I don’t know what this product can do, and I don’t know if this product will help my audience.’ I only use products I’ve used before, because that trust you have with your audience is the most important thing in the world.” He says if you do recommend a product for the incredible commission but your audience has a bad experience with it, your credibility will be shot.
You’re right Ed, it does require capital to get income from a rental property. However, I started hustling when I was a teen, baby-sitting, teaching younger kids the piano, doing homework with middle schoolers, being a French and Spanish tutor, none of which requires an initial investment. As do pet sitting, housekeeping, lawn mowing, house painting, and many gigs around.
If you can max out your 401k or max out your IRA and then save an additional 20%+ of your after-tax, after-retirement contribution, good things really start to happen. If one is looking for earlier financial independence, such as retiring in their 40s or early 50s, it may be a good idea to skew towards more after-tax savings and investments given one has to wait until 59.5 to withdraw from their 401k or IRA penalty-free.
To your point about Municipal Bonds, my concern is tax reform. While everything is mostly being worked behind closed doors (and likely wont ever see the light of day). There is still the chance they propose to limit the amount of the tax free nature of these bonds. While I dont sen panic in the streets, I do see a scenario where bond prices get additional pressure because municipalities have to increase rates due to people putting their money to work elsewhere.
During my first year as a financial advisor, I got a small base salary. After that, it was up to me to figure out how to find and retain new clients. Fortunately, I quickly learned how to market myself, meet new people, and set myself up for success. And over time, I made the connections I needed to grow my base of clients, earn a real income, and produce the type of results my clients wanted.
Author Bio: Sam started Financial Samurai in 2009 to help people achieve financial freedom sooner, rather than later. He spent 13 years working in investment banking, earned his MBA from UC Berkeley, and retired at age 34 in San Francisco. Everything Sam writes is based on first-hand experience because money is too important to be left up to pontification.
There are many success stories you’ll run into of what it takes to generate multiple streams of income. However, one of the most important tips is to take on multiple clients. One client being your income source is bad news. They could voluntarily or involuntarily leave you high and dry. For instance, their business may begin to suffer and they no longer have the funds to pay you. Well, that is your income stream; gone without warning.
​Affiliate marketing is the practice of partnering with a company (becoming their affiliate) to receive a commission on a product. This method of generating income works the best for those with blogs and websites. Even then, it takes a long time to build up before it becomes passive. If you want to get started with affiliate marketing check out this great list of affiliate marketing programs.
Leveraging the internet to create, connect, and sell is something every creative person should attempt to do. The only risk is lost time and a wounded ego. You can start a site like mine for as little as $2.95 a month with Bluehost and go from there. They give you a free domain name for a year. Forget all the add-ons. Not a day goes by that I’m not grateful for my site.

Offer valid for tax preparation fees for new clients only. A new client is an individual who did not use H&R Block office services to prepare his or her 2016 tax return. Valid receipt for 2016 tax preparation fees from a tax preparer other than H&R Block must be presented prior to completion of initial tax office interview. May not be combined with other offers. Offer period March 1 – 25, 2018 at participating offices only. To qualify, tax return must be paid for and filed during this period. Visit hrblock.com/halfoff to find the nearest participating office or to make an appointment. OBTP# B13696 ©2018 HRB Tax Group, Inc.
!function(n,t){function r(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function i(e){return void 0===e}if(n){var o={},s=n.TraceKit,a=[].slice,u="?";o.noConflict=function(){return n.TraceKit=s,o},o.wrap=function(e){function n(){try{return e.apply(this,arguments)}catch(e){throw o.report(e),e}}return n},o.report=function(){function e(e){u(),h.push(e)}function t(e){for(var n=h.length-1;n>=0;--n)h[n]===e&&h.splice(n,1)}function i(e,n){var t=null;if(!n||o.collectWindowErrors){for(var i in h)if(r(h,i))try{h[i].apply(null,[e].concat(a.call(arguments,2)))}catch(e){t=e}if(t)throw t}}function s(e,n,t,r,s){var a=null;if(w)o.computeStackTrace.augmentStackTraceWithInitialElement(w,n,t,e),l();else if(s)a=o.computeStackTrace(s),i(a,!0);else{var u={url:n,line:t,column:r};u.func=o.computeStackTrace.guessFunctionName(u.url,u.line),u.context=o.computeStackTrace.gatherContext(u.url,u.line),a={mode:"onerror",message:e,stack:[u]},i(a,!0)}return!!f&&f.apply(this,arguments)}function u(){!0!==d&&(f=n.onerror,n.onerror=s,d=!0)}function l(){var e=w,n=p;p=null,w=null,m=null,i.apply(null,[e,!1].concat(n))}function c(e){if(w){if(m===e)return;l()}var t=o.computeStackTrace(e);throw w=t,m=e,p=a.call(arguments,1),n.setTimeout(function(){m===e&&l()},t.incomplete?2e3:0),e}var f,d,h=[],p=null,m=null,w=null;return c.subscribe=e,c.unsubscribe=t,c}(),o.computeStackTrace=function(){function e(e){if(!o.remoteFetching)return"";try{var t=function(){try{return new n.XMLHttpRequest}catch(e){return new n.ActiveXObject("Microsoft.XMLHTTP")}},r=t();return r.open("GET",e,!1),r.send(""),r.responseText}catch(e){return""}}function t(t){if("string"!=typeof t)return[];if(!r(j,t)){var i="",o="";try{o=n.document.domain}catch(e){}var s=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);s&&s[2]===o&&(i=e(t)),j[t]=i?i.split("\n"):[]}return j[t]}function s(e,n){var r,o=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",l=10,c=t(e);if(!c.length)return u;for(var f=0;f0?s:null}function l(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function c(e){return l(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function f(e,n){for(var r,i,o=0,s=n.length;or&&(i=s.exec(o[r]))?i.index:null}function h(e){if(!i(n&&n.document)){for(var t,r,o,s,a=[n.location.href],u=n.document.getElementsByTagName("script"),d=""+e,h=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,m=0;m]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),u=[],l=0;l=0&&(v.line=g+x.substring(0,j).split("\n").length)}}}else if(o=d.exec(i[y])){var _=n.location.href.replace(/#.*$/,""),T=new RegExp(c(i[y+1])),E=f(T,[_]);v={url:_,func:"",args:[],line:E?E.line:o[1],column:null}}if(v){v.func||(v.func=s(v.url,v.line));var k=a(v.url,v.line),A=k?k[Math.floor(k.length/2)]:null;k&&A.replace(/^\s*/,"")===i[y+1].replace(/^\s*/,"")?v.context=k:v.context=[i[y+1]],h.push(v)}}return h.length?{mode:"multiline",name:e.name,message:i[0],stack:h}:null}function y(e,n,t,r){var i={url:n,line:t};if(i.url&&i.line){e.incomplete=!1,i.func||(i.func=s(i.url,i.line)),i.context||(i.context=a(i.url,i.line));var o=/ '([^']+)' /.exec(r);if(o&&(i.column=d(o[1],i.url,i.line)),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,e.stack[0].context=i.context,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function v(e,n){for(var t,r,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,l=[],c={},f=!1,p=v.caller;p&&!f;p=p.caller)if(p!==g&&p!==o.report){if(r={url:null,func:u,args:[],line:null,column:null},p.name?r.func=p.name:(t=a.exec(p.toString()))&&(r.func=t[1]),"undefined"==typeof r.func)try{r.func=t.input.substring(0,t.input.indexOf("{"))}catch(e){}if(i=h(p)){r.url=i.url,r.line=i.line,r.func===u&&(r.func=s(r.url,r.line));var m=/ '([^']+)' /.exec(e.message||e.description);m&&(r.column=d(m[1],i.url,i.line))}c[""+p]?f=!0:c[""+p]=!0,l.push(r)}n&&l.splice(0,n);var w={mode:"callers",name:e.name,message:e.message,stack:l};return y(w,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),w}function g(e,n){var t=null;n=null==n?0:+n;try{if(t=m(e))return t}catch(e){if(x)throw e}try{if(t=p(e))return t}catch(e){if(x)throw e}try{if(t=w(e))return t}catch(e){if(x)throw e}try{if(t=v(e,n+1))return t}catch(e){if(x)throw e}return{mode:"failed"}}function b(e){e=1+(null==e?0:+e);try{throw new Error}catch(n){return g(n,e+1)}}var x=!1,j={};return g.augmentStackTraceWithInitialElement=y,g.guessFunctionName=s,g.gatherContext=a,g.ofCaller=b,g.getSource=t,g}(),o.extendToAsynchronousCallbacks=function(){var e=function(e){var t=n[e];n[e]=function(){var e=a.call(arguments),n=e[0];return"function"==typeof n&&(e[0]=o.wrap(n)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},o.remoteFetching||(o.remoteFetching=!0),o.collectWindowErrors||(o.collectWindowErrors=!0),(!o.linesOfContext||o.linesOfContext<1)&&(o.linesOfContext=11),void 0!==e&&e.exports&&n.module!==e?e.exports=o:"function"==typeof define&&define.amd?define("TraceKit",[],o):n.TraceKit=o}}("undefined"!=typeof window?window:global)},"./webpack-loaders/expose-loader/index.js?require!./shared/require-global.js":function(e,n,t){(function(n){e.exports=n.require=t("./shared/require-global.js")}).call(n,t("../../../lib/node_modules/webpack/buildin/global.js"))}});
×